@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.27 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* This operation retrieves a single variable, given its name and the subscription it was created at.
*
* Uses Azure REST API version 2022-08-01-preview.
*
* Other available API versions: 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native authorization [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getVariable(args: GetVariableArgs, opts?: pulumi.InvokeOptions): Promise<GetVariableResult>;
export interface GetVariableArgs {
/**
* The name of the variable to operate on.
*/
variableName: string;
}
/**
* The variable.
*/
export interface GetVariableResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Variable column definitions.
*/
readonly columns: outputs.authorization.PolicyVariableColumnResponse[];
/**
* The ID of the variable.
*/
readonly id: string;
/**
* The name of the variable.
*/
readonly name: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.authorization.SystemDataResponse;
/**
* The type of the resource (Microsoft.Authorization/variables).
*/
readonly type: string;
}
/**
* This operation retrieves a single variable, given its name and the subscription it was created at.
*
* Uses Azure REST API version 2022-08-01-preview.
*
* Other available API versions: 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native authorization [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getVariableOutput(args: GetVariableOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVariableResult>;
export interface GetVariableOutputArgs {
/**
* The name of the variable to operate on.
*/
variableName: pulumi.Input<string>;
}