UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

104 lines (103 loc) 3.79 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets a Kusto cluster database script. * * Uses Azure REST API version 2024-04-13. * * Other available API versions: 2021-01-01, 2021-08-27, 2022-02-01, 2022-07-07, 2022-11-11, 2022-12-29, 2023-05-02, 2023-08-15. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native kusto [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getScript(args: GetScriptArgs, opts?: pulumi.InvokeOptions): Promise<GetScriptResult>; export interface GetScriptArgs { /** * The name of the Kusto cluster. */ clusterName: string; /** * The name of the database in the Kusto cluster. */ databaseName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The name of the Kusto database script. */ scriptName: string; } /** * Class representing a database script. */ export interface GetScriptResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Flag that indicates whether to continue if one of the command fails. */ readonly continueOnErrors?: boolean; /** * A unique string. If changed the script will be applied again. */ readonly forceUpdateTag?: string; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * The name of the resource */ readonly name: string; /** * Indicates if the permissions for the script caller are kept following completion of the script. */ readonly principalPermissionsAction?: string; /** * The provisioned state of the resource. */ readonly provisioningState: string; /** * Differentiates between the type of script commands included - Database or Cluster. The default is Database. */ readonly scriptLevel?: string; /** * The url to the KQL script blob file. Must not be used together with scriptContent property */ readonly scriptUrl?: string; /** * Metadata pertaining to creation and last modification of the resource. */ readonly systemData: outputs.kusto.SystemDataResponse; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Gets a Kusto cluster database script. * * Uses Azure REST API version 2024-04-13. * * Other available API versions: 2021-01-01, 2021-08-27, 2022-02-01, 2022-07-07, 2022-11-11, 2022-12-29, 2023-05-02, 2023-08-15. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native kusto [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getScriptOutput(args: GetScriptOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScriptResult>; export interface GetScriptOutputArgs { /** * The name of the Kusto cluster. */ clusterName: pulumi.Input<string>; /** * The name of the database in the Kusto cluster. */ databaseName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * The name of the Kusto database script. */ scriptName: pulumi.Input<string>; }