Create a ManagementLocks.
Reference to the service client.
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.
The name of the resource group to lock.
The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
The management lock parameters.
Promise<Models.ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse>
The name of the resource group to lock.
The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
The management lock parameters.
The callback
The name of the resource group to lock.
The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
The management lock parameters.
The optional parameters
The callback
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.
The name of the resource group containing the resource to lock.
The resource provider namespace of the resource to lock.
The parent resource identity.
The resource type of the resource to lock.
The name of the resource to lock.
The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
Parameters for creating or updating a management lock.
Promise<Models.ManagementLocksCreateOrUpdateAtResourceLevelResponse>
The name of the resource group containing the resource to lock.
The resource provider namespace of the resource to lock.
The parent resource identity.
The resource type of the resource to lock.
The name of the resource to lock.
The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
Parameters for creating or updating a management lock.
The callback
The name of the resource group containing the resource to lock.
The resource provider namespace of the resource to lock.
The parent resource identity.
The resource type of the resource to lock.
The name of the resource to lock.
The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
Parameters for creating or updating a management lock.
The optional parameters
The callback
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.
The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
The management lock parameters.
Promise<Models.ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse>
The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
The management lock parameters.
The callback
The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
The management lock parameters.
The optional parameters
The callback
Create or update a management lock by scope.
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.
The name of lock.
Create or update management lock parameters.
Promise<Models.ManagementLocksCreateOrUpdateByScopeResponse>
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.
The name of lock.
Create or update management lock parameters.
The callback
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.
The name of lock.
Create or update management lock parameters.
The optional parameters
The callback
To delete 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.
The name of the resource group containing the lock.
The name of lock to delete.
Promise<msRest.RestResponse>
The name of the resource group containing the lock.
The name of lock to delete.
The callback
The name of the resource group containing the lock.
The name of lock to delete.
The optional parameters
The callback
To delete 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.
The name of the resource group containing the resource with the lock to delete.
The resource provider namespace of the resource with the lock to delete.
The parent resource identity.
The resource type of the resource with the lock to delete.
The name of the resource with the lock to delete.
The name of the lock to delete.
Promise<msRest.RestResponse>
The name of the resource group containing the resource with the lock to delete.
The resource provider namespace of the resource with the lock to delete.
The parent resource identity.
The resource type of the resource with the lock to delete.
The name of the resource with the lock to delete.
The name of the lock to delete.
The callback
The name of the resource group containing the resource with the lock to delete.
The resource provider namespace of the resource with the lock to delete.
The parent resource identity.
The resource type of the resource with the lock to delete.
The name of the resource with the lock to delete.
The name of the lock to delete.
The optional parameters
The callback
To delete 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.
The name of lock to delete.
Promise<msRest.RestResponse>
The name of lock to delete.
The callback
The name of lock to delete.
The optional parameters
The callback
Delete a management lock by scope.
The scope for the lock.
The name of lock.
Promise<msRest.RestResponse>
The scope for the lock.
The name of lock.
The callback
The scope for the lock.
The name of lock.
The optional parameters
The callback
Gets a management lock at the resource group level.
The name of the locked resource group.
The name of the lock to get.
Promise<Models.ManagementLocksGetAtResourceGroupLevelResponse>
The name of the locked resource group.
The name of the lock to get.
The callback
The name of the locked resource group.
The name of the lock to get.
The optional parameters
The callback
Get the management lock of a resource or any level below resource.
The name of the resource group.
The namespace of the resource provider.
An extra path parameter needed in some services, like SQL Databases.
The type of the resource.
The name of the resource.
The name of lock.
Promise<Models.ManagementLocksGetAtResourceLevelResponse>
The name of the resource group.
The namespace of the resource provider.
An extra path parameter needed in some services, like SQL Databases.
The type of the resource.
The name of the resource.
The name of lock.
The callback
The name of the resource group.
The namespace of the resource provider.
An extra path parameter needed in some services, like SQL Databases.
The type of the resource.
The name of the resource.
The name of lock.
The optional parameters
The callback
Gets a management lock at the subscription level.
The name of the lock to get.
Promise<Models.ManagementLocksGetAtSubscriptionLevelResponse>
The name of the lock to get.
The callback
The name of the lock to get.
The optional parameters
The callback
Get a management lock by scope.
The scope for the lock.
The name of lock.
Promise<Models.ManagementLocksGetByScopeResponse>
The scope for the lock.
The name of lock.
The callback
The scope for the lock.
The name of lock.
The optional parameters
The callback
Gets all the management locks for a resource group.
The name of the resource group containing the locks to get.
Promise<Models.ManagementLocksListAtResourceGroupLevelResponse>
The name of the resource group containing the locks to get.
The callback
The name of the resource group containing the locks to get.
The optional parameters
The callback
Gets all the management locks for a resource group.
The NextLink from the previous successful call to List operation.
Promise<Models.ManagementLocksListAtResourceGroupLevelNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Gets all the management locks for a resource or any level below resource.
The name of the resource group containing the locked resource. The name is case insensitive.
The namespace of the resource provider.
The parent resource identity.
The resource type of the locked resource.
The name of the locked resource.
Promise<Models.ManagementLocksListAtResourceLevelResponse>
The name of the resource group containing the locked resource. The name is case insensitive.
The namespace of the resource provider.
The parent resource identity.
The resource type of the locked resource.
The name of the locked resource.
The callback
The name of the resource group containing the locked resource. The name is case insensitive.
The namespace of the resource provider.
The parent resource identity.
The resource type of the locked resource.
The name of the locked resource.
The optional parameters
The callback
Gets all the management locks for a resource or any level below resource.
The NextLink from the previous successful call to List operation.
Promise<Models.ManagementLocksListAtResourceLevelNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Gets all the management locks for a subscription.
Promise<Models.ManagementLocksListAtSubscriptionLevelResponse>
The callback
The optional parameters
The callback
Gets all the management locks for a subscription.
The NextLink from the previous successful call to List operation.
Promise<Models.ManagementLocksListAtSubscriptionLevelNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Generated using TypeDoc
Class representing a ManagementLocks.