Management Locks - List At Resource Level
Gets all the management locks for a resource or any level below resource.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks?api-version=2016-09-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks?$filter={$filter}&api-version=2016-09-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
parent
|
path | True |
string |
The parent resource identity. |
resource
|
path | True |
string |
The name of the resource group containing the locked resource. The name is case insensitive. Regex pattern: |
resource
|
path | True |
string |
The name of the locked resource. |
resource
|
path | True |
string |
The namespace of the resource provider. |
resource
|
path | True |
string |
The resource type of the locked resource. |
subscription
|
path | True |
string |
The ID of the target subscription. |
api-version
|
query | True |
string |
The API version to use for the operation. |
$filter
|
query |
string |
The filter to apply on the operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK - Returns an array of resource locks. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
List management locks at resource level
Sample request
GET https://management.azure.com/subscriptions/subscriptionId/resourcegroups/resourcegroupname/providers/Microsoft.Storage/parentResourcePath/storageAccounts/teststorageaccount/providers/Microsoft.Authorization/locks?api-version=2016-09-01
Sample response
{
"value": [
{
"properties": {
"level": "ReadOnly"
},
"id": "/providers/Microsoft.Authorization/locks/testlock",
"type": "Microsoft.Authorization/locks",
"name": "testlock"
}
]
}
Definitions
Name | Description |
---|---|
Lock |
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. |
Management |
The list of locks. |
Management |
The lock information. |
Management |
Lock owner properties. |
LockLevel
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.
Name | Type | Description |
---|---|---|
CanNotDelete |
string |
|
NotSpecified |
string |
|
ReadOnly |
string |
ManagementLockListResult
The list of locks.
Name | Type | Description |
---|---|---|
nextLink |
string |
The URL to use for getting the next set of results. |
value |
The list of locks. |
ManagementLockObject
The lock information.
Name | Type | Description |
---|---|---|
id |
string |
The resource ID of the lock. |
name |
string |
The name of the lock. |
properties.level |
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. |
|
properties.notes |
string |
Notes about the lock. Maximum of 512 characters. |
properties.owners |
The owners of the lock. |
|
type |
string |
The resource type of the lock - Microsoft.Authorization/locks. |
ManagementLockOwner
Lock owner properties.
Name | Type | Description |
---|---|---|
applicationId |
string |
The application ID of the lock owner. |