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

64 lines (63 loc) 2.17 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets a management lock at the subscription level. * * Uses Azure REST API version 2020-05-01. */ export declare function getManagementLockAtSubscriptionLevel(args: GetManagementLockAtSubscriptionLevelArgs, opts?: pulumi.InvokeOptions): Promise<GetManagementLockAtSubscriptionLevelResult>; export interface GetManagementLockAtSubscriptionLevelArgs { /** * The name of the lock to get. */ lockName: string; } /** * The lock information. */ export interface GetManagementLockAtSubscriptionLevelResult { /** * 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; } /** * Gets a management lock at the subscription level. * * Uses Azure REST API version 2020-05-01. */ export declare function getManagementLockAtSubscriptionLevelOutput(args: GetManagementLockAtSubscriptionLevelOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagementLockAtSubscriptionLevelResult>; export interface GetManagementLockAtSubscriptionLevelOutputArgs { /** * The name of the lock to get. */ lockName: pulumi.Input<string>; }