Share via


ManagementLocksOperationsExtensions.GetAtResourceLevelAsync Method

Definition

Get the management lock of a resource or any level below resource.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject> GetAtResourceLevelAsync (this Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, System.Threading.CancellationToken cancellationToken = default);
static member GetAtResourceLevelAsync : Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations * string * string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Models.ManagementLockObject>
<Extension()>
Public Function GetAtResourceLevelAsync (operations As IManagementLocksOperations, resourceGroupName As String, resourceProviderNamespace As String, parentResourcePath As String, resourceType As String, resourceName As String, lockName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ManagementLockObject)

Parameters

operations
IManagementLocksOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

resourceProviderNamespace
String

The namespace of the resource provider.

parentResourcePath
String

An extra path parameter needed in some services, like SQL Databases.

resourceType
String

The type of the resource.

resourceName
String

The name of the resource.

lockName
String

The name of lock.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to