@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.48 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieves an existing access policy resource with the given name.
*
* Uses Azure REST API version 2021-11-01-preview.
*/
export declare function getAccessPolicy(args: GetAccessPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetAccessPolicyResult>;
export interface GetAccessPolicyArgs {
/**
* The Access Policy name.
*/
accessPolicyName: string;
/**
* The Azure Video Analyzer account name.
*/
accountName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
}
/**
* Access policies help define the authentication rules, and control access to specific video resources.
*/
export interface GetAccessPolicyResult {
/**
* Authentication method to be used when validating client API access.
*/
readonly authentication?: outputs.videoanalyzer.JwtAuthenticationResponse;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: 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;
/**
* Defines the access level granted by this policy.
*/
readonly role?: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.videoanalyzer.SystemDataResponse;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Retrieves an existing access policy resource with the given name.
*
* Uses Azure REST API version 2021-11-01-preview.
*/
export declare function getAccessPolicyOutput(args: GetAccessPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccessPolicyResult>;
export interface GetAccessPolicyOutputArgs {
/**
* The Access Policy name.
*/
accessPolicyName: pulumi.Input<string>;
/**
* The Azure Video Analyzer account name.
*/
accountName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}