@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.98 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get policy.
*
* Uses Azure REST API version 2018-09-15.
*/
export declare function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyResult>;
export interface GetPolicyArgs {
/**
* Specify the $expand query. Example: 'properties($select=description)'
*/
expand?: string;
/**
* labs
*/
labName: string;
/**
* The name of the Schedule
*/
name: string;
/**
* policysets
*/
policySetName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
}
/**
* A Policy.
*/
export interface GetPolicyResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The creation date of the policy.
*/
readonly createdDate: string;
/**
* The description of the policy.
*/
readonly description?: string;
/**
* The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy).
*/
readonly evaluatorType?: string;
/**
* The fact data of the policy.
*/
readonly factData?: string;
/**
* The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc.
*/
readonly factName?: string;
/**
* The identifier of the resource.
*/
readonly id: string;
/**
* The location of the resource.
*/
readonly location?: string;
/**
* The name of the resource.
*/
readonly name: string;
/**
* The provisioning status of the resource.
*/
readonly provisioningState: string;
/**
* The status of the policy.
*/
readonly status?: string;
/**
* The tags of the resource.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
*/
readonly threshold?: string;
/**
* The type of the resource.
*/
readonly type: string;
/**
* The unique immutable identifier of a resource (Guid).
*/
readonly uniqueIdentifier: string;
}
/**
* Get policy.
*
* Uses Azure REST API version 2018-09-15.
*/
export declare function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyResult>;
export interface GetPolicyOutputArgs {
/**
* Specify the $expand query. Example: 'properties($select=description)'
*/
expand?: pulumi.Input<string>;
/**
* labs
*/
labName: pulumi.Input<string>;
/**
* The name of the Schedule
*/
name: pulumi.Input<string>;
/**
* policysets
*/
policySetName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}