@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get the management lock of a resource or any level below resource.
*
* Uses Azure REST API version 2020-05-01.
*/
export declare function getManagementLockAtResourceLevel(args: GetManagementLockAtResourceLevelArgs, opts?: pulumi.InvokeOptions): Promise<GetManagementLockAtResourceLevelResult>;
export interface GetManagementLockAtResourceLevelArgs {
/**
* The API version to use for this operation.
*/
apiVersion: string;
/**
* The name of lock.
*/
lockName: string;
/**
* An extra path parameter needed in some services, like SQL Databases.
*/
parentResourcePath: string;
/**
* The name of the resource group.
*/
resourceGroupName: string;
/**
* The name of the resource.
*/
resourceName: string;
/**
* The namespace of the resource provider.
*/
resourceProviderNamespace: string;
/**
* The type of the resource.
*/
resourceType: string;
}
/**
* The lock information.
*/
export interface GetManagementLockAtResourceLevelResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The resource ID of the lock.
*/
readonly id: string;
/**
* The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.
*/
readonly level: string;
/**
* The name of the lock.
*/
readonly name: string;
/**
* Notes about the lock. Maximum of 512 characters.
*/
readonly notes?: string;
/**
* The owners of the lock.
*/
readonly owners?: outputs.authorization.ManagementLockOwnerResponse[];
/**
* Metadata pertaining to creation and last modification of the resource.
*/
readonly systemData: outputs.authorization.SystemDataResponse;
/**
* The resource type of the lock - Microsoft.Authorization/locks.
*/
readonly type: string;
}
/**
* Get the management lock of a resource or any level below resource.
*
* Uses Azure REST API version 2020-05-01.
*/
export declare function getManagementLockAtResourceLevelOutput(args: GetManagementLockAtResourceLevelOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagementLockAtResourceLevelResult>;
export interface GetManagementLockAtResourceLevelOutputArgs {
/**
* The API version to use for this operation.
*/
apiVersion: pulumi.Input<string>;
/**
* The name of lock.
*/
lockName: pulumi.Input<string>;
/**
* An extra path parameter needed in some services, like SQL Databases.
*/
parentResourcePath: pulumi.Input<string>;
/**
* The name of the resource group.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the resource.
*/
resourceName: pulumi.Input<string>;
/**
* The namespace of the resource provider.
*/
resourceProviderNamespace: pulumi.Input<string>;
/**
* The type of the resource.
*/
resourceType: pulumi.Input<string>;
}