v7

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

Create or update a management lock by scope.

put/{scope}/providers/Microsoft.Authorization/locks/{lockName}

Path parameters

scopestring required

The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.

lockNamestring required

The name of lock.

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

idstring

The resource ID of the lock.

typestring

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

namestring

The name of the lock.