v7

latestSwagger 2.0raw.githubusercontent.com2021-03-1717635.0 KB
ManagementLocks

Creates or updates a management lock at the resource level or any level below the resource.

When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.

put/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}

Path parameters

resourceGroupNamestring required

The name of the resource group containing the resource to lock.

resourceProviderNamespacestring required

The resource provider namespace of the resource to lock.

parentResourcePathstring required

The parent resource identity.

resourceTypestring required

The resource type of the resource to lock.

resourceNamestring required

The name of the resource to lock.

lockNamestring required

The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.

subscriptionIdstring required

The ID of the target subscription.

Query parameters

api-versionstring required

The API version to use for the operation.

Request body

idstring

The resource ID of the lock.

typestring

The resource type of the lock - Microsoft.Authorization/locks.

namestring

The name of the lock.

Response

OK - Returns information about the lock.

idstring

The resource ID of the lock.

typestring

The resource type of the lock - Microsoft.Authorization/locks.

namestring

The name of the lock.