次の方法で共有


ManagementLocksClient Interface

Implements

public interface ManagementLocksClient
extends InnerSupportsGet<ManagementLockObjectInner>, InnerSupportsListing<ManagementLockObjectInner>, InnerSupportsDelete<Void>

An instance of this class provides access to all the operations defined in ManagementLocksClient.

Method Summary

Modifier and Type Method and Description
abstract ManagementLockObjectInner createOrUpdateAtResourceGroupLevel(String resourceGroupName, String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the resource group level.

abstract Mono<ManagementLockObjectInner> createOrUpdateAtResourceGroupLevelAsync(String resourceGroupName, String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the resource group level.

abstract Response<ManagementLockObjectInner> createOrUpdateAtResourceGroupLevelWithResponse(String resourceGroupName, String lockName, ManagementLockObjectInner parameters, Context context)

Creates or updates a management lock at the resource group level.

abstract Mono<Response<ManagementLockObjectInner>> createOrUpdateAtResourceGroupLevelWithResponseAsync(String resourceGroupName, String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the resource group level.

abstract ManagementLockObjectInner createOrUpdateAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner parameters)

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

abstract Mono<ManagementLockObjectInner> createOrUpdateAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner parameters)

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

abstract Response<ManagementLockObjectInner> createOrUpdateAtResourceLevelWithResponse(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner parameters, Context context)

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

abstract Mono<Response<ManagementLockObjectInner>> createOrUpdateAtResourceLevelWithResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner parameters)

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

abstract ManagementLockObjectInner createOrUpdateAtSubscriptionLevel(String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the subscription level.

abstract Mono<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelAsync(String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the subscription level.

abstract Response<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelWithResponse(String lockName, ManagementLockObjectInner parameters, Context context)

Creates or updates a management lock at the subscription level.

abstract Mono<Response<ManagementLockObjectInner>> createOrUpdateAtSubscriptionLevelWithResponseAsync(String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the subscription level.

abstract ManagementLockObjectInner createOrUpdateByScope(String scope, String lockName, ManagementLockObjectInner parameters)

Create or update a management lock by scope.

abstract Mono<ManagementLockObjectInner> createOrUpdateByScopeAsync(String scope, String lockName, ManagementLockObjectInner parameters)

Create or update a management lock by scope.

abstract Response<ManagementLockObjectInner> createOrUpdateByScopeWithResponse(String scope, String lockName, ManagementLockObjectInner parameters, Context context)

Create or update a management lock by scope.

abstract Mono<Response<ManagementLockObjectInner>> createOrUpdateByScopeWithResponseAsync(String scope, String lockName, ManagementLockObjectInner parameters)

Create or update a management lock by scope.

abstract void delete(String resourceGroupName, String lockName)

Deletes a management lock at the resource group level.

abstract Mono<Void> deleteAsync(String resourceGroupName, String lockName)

Deletes a management lock at the resource group level.

abstract void deleteAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

abstract Mono<Void> deleteAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

abstract Response<Void> deleteAtResourceLevelWithResponse(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, Context context)

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

abstract Mono<Response<Void>> deleteAtResourceLevelWithResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

abstract void deleteAtSubscriptionLevel(String lockName)

Deletes the management lock at the subscription level.

abstract Mono<Void> deleteAtSubscriptionLevelAsync(String lockName)

Deletes the management lock at the subscription level.

abstract Response<Void> deleteAtSubscriptionLevelWithResponse(String lockName, Context context)

Deletes the management lock at the subscription level.

abstract Mono<Response<Void>> deleteAtSubscriptionLevelWithResponseAsync(String lockName)

Deletes the management lock at the subscription level.

abstract void deleteByScope(String scope, String lockName)

Delete a management lock by scope.

abstract Mono<Void> deleteByScopeAsync(String scope, String lockName)

Delete a management lock by scope.

abstract Response<Void> deleteByScopeWithResponse(String scope, String lockName, Context context)

Delete a management lock by scope.

abstract Mono<Response<Void>> deleteByScopeWithResponseAsync(String scope, String lockName)

Delete a management lock by scope.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String lockName, Context context)

Deletes a management lock at the resource group level.

abstract Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String lockName)

Deletes a management lock at the resource group level.

abstract ManagementLockObjectInner getAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

abstract Mono<ManagementLockObjectInner> getAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

abstract Response<ManagementLockObjectInner> getAtResourceLevelWithResponse(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, Context context)

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

abstract Mono<Response<ManagementLockObjectInner>> getAtResourceLevelWithResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

abstract ManagementLockObjectInner getAtSubscriptionLevel(String lockName)

Gets a management lock at the subscription level.

abstract Mono<ManagementLockObjectInner> getAtSubscriptionLevelAsync(String lockName)

Gets a management lock at the subscription level.

abstract Response<ManagementLockObjectInner> getAtSubscriptionLevelWithResponse(String lockName, Context context)

Gets a management lock at the subscription level.

abstract Mono<Response<ManagementLockObjectInner>> getAtSubscriptionLevelWithResponseAsync(String lockName)

Gets a management lock at the subscription level.

abstract ManagementLockObjectInner getByResourceGroup(String resourceGroupName, String lockName)

Gets a management lock at the resource group level.

abstract Mono<ManagementLockObjectInner> getByResourceGroupAsync(String resourceGroupName, String lockName)

Gets a management lock at the resource group level.

abstract Response<ManagementLockObjectInner> getByResourceGroupWithResponse(String resourceGroupName, String lockName, Context context)

Gets a management lock at the resource group level.

abstract Mono<Response<ManagementLockObjectInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String lockName)

Gets a management lock at the resource group level.

abstract ManagementLockObjectInner getByScope(String scope, String lockName)

Get a management lock by scope.

abstract Mono<ManagementLockObjectInner> getByScopeAsync(String scope, String lockName)

Get a management lock by scope.

abstract Response<ManagementLockObjectInner> getByScopeWithResponse(String scope, String lockName, Context context)

Get a management lock by scope.

abstract Mono<Response<ManagementLockObjectInner>> getByScopeWithResponseAsync(String scope, String lockName)

Get a management lock by scope.

abstract PagedIterable<ManagementLockObjectInner> list()

Gets all the management locks for a subscription.

abstract PagedIterable<ManagementLockObjectInner> list(String filter, Context context)

Gets all the management locks for a subscription.

abstract PagedFlux<ManagementLockObjectInner> listAsync()

Gets all the management locks for a subscription.

abstract PagedFlux<ManagementLockObjectInner> listAsync(String filter)

Gets all the management locks for a subscription.

abstract PagedIterable<ManagementLockObjectInner> listAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)

Gets all the management locks for a resource or any level below resource.

abstract PagedIterable<ManagementLockObjectInner> listAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter, Context context)

Gets all the management locks for a resource or any level below resource.

abstract PagedFlux<ManagementLockObjectInner> listAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)

Gets all the management locks for a resource or any level below resource.

abstract PagedFlux<ManagementLockObjectInner> listAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter)

Gets all the management locks for a resource or any level below resource.

abstract PagedIterable<ManagementLockObjectInner> listByResourceGroup(String resourceGroupName)

Gets all the management locks for a resource group.

abstract PagedIterable<ManagementLockObjectInner> listByResourceGroup(String resourceGroupName, String filter, Context context)

Gets all the management locks for a resource group.

abstract PagedFlux<ManagementLockObjectInner> listByResourceGroupAsync(String resourceGroupName)

Gets all the management locks for a resource group.

abstract PagedFlux<ManagementLockObjectInner> listByResourceGroupAsync(String resourceGroupName, String filter)

Gets all the management locks for a resource group.

abstract PagedIterable<ManagementLockObjectInner> listByScope(String scope)

Gets all the management locks for a scope.

abstract PagedIterable<ManagementLockObjectInner> listByScope(String scope, String filter, Context context)

Gets all the management locks for a scope.

abstract PagedFlux<ManagementLockObjectInner> listByScopeAsync(String scope)

Gets all the management locks for a scope.

abstract PagedFlux<ManagementLockObjectInner> listByScopeAsync(String scope, String filter)

Gets all the management locks for a scope.

Method Details

createOrUpdateAtResourceGroupLevel

public abstract ManagementLockObjectInner createOrUpdateAtResourceGroupLevel(String resourceGroupName, String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the resource group level.

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.

Parameters:

resourceGroupName - The name of the resource group to lock.
lockName - The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
parameters - The management lock parameters.

Returns:

the lock information.

createOrUpdateAtResourceGroupLevelAsync

public abstract Mono createOrUpdateAtResourceGroupLevelAsync(String resourceGroupName, String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the resource group level.

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.

Parameters:

resourceGroupName - The name of the resource group to lock.
lockName - The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
parameters - The management lock parameters.

Returns:

the lock information on successful completion of Mono.

createOrUpdateAtResourceGroupLevelWithResponse

public abstract Response createOrUpdateAtResourceGroupLevelWithResponse(String resourceGroupName, String lockName, ManagementLockObjectInner parameters, Context context)

Creates or updates a management lock at the resource group level.

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.

Parameters:

resourceGroupName - The name of the resource group to lock.
lockName - The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
parameters - The management lock parameters.
context - The context to associate with this operation.

Returns:

the lock information along with Response<T>.

createOrUpdateAtResourceGroupLevelWithResponseAsync

public abstract Mono<>> createOrUpdateAtResourceGroupLevelWithResponseAsync(String resourceGroupName, String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the resource group level.

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.

Parameters:

resourceGroupName - The name of the resource group to lock.
lockName - The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
parameters - The management lock parameters.

Returns:

the lock information along with Response<T> on successful completion of Mono.

createOrUpdateAtResourceLevel

public abstract ManagementLockObjectInner createOrUpdateAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner parameters)

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.

Parameters:

resourceGroupName - The name of the resource group containing the resource to lock.
resourceProviderNamespace - The resource provider namespace of the resource to lock.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the resource to lock.
resourceName - The name of the resource to lock.
lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
parameters - Parameters for creating or updating a management lock.

Returns:

the lock information.

createOrUpdateAtResourceLevelAsync

public abstract Mono createOrUpdateAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner parameters)

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.

Parameters:

resourceGroupName - The name of the resource group containing the resource to lock.
resourceProviderNamespace - The resource provider namespace of the resource to lock.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the resource to lock.
resourceName - The name of the resource to lock.
lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
parameters - Parameters for creating or updating a management lock.

Returns:

the lock information on successful completion of Mono.

createOrUpdateAtResourceLevelWithResponse

public abstract Response createOrUpdateAtResourceLevelWithResponse(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner parameters, Context context)

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.

Parameters:

resourceGroupName - The name of the resource group containing the resource to lock.
resourceProviderNamespace - The resource provider namespace of the resource to lock.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the resource to lock.
resourceName - The name of the resource to lock.
lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
parameters - Parameters for creating or updating a management lock.
context - The context to associate with this operation.

Returns:

the lock information along with Response<T>.

createOrUpdateAtResourceLevelWithResponseAsync

public abstract Mono<>> createOrUpdateAtResourceLevelWithResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner parameters)

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.

Parameters:

resourceGroupName - The name of the resource group containing the resource to lock.
resourceProviderNamespace - The resource provider namespace of the resource to lock.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the resource to lock.
resourceName - The name of the resource to lock.
lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
parameters - Parameters for creating or updating a management lock.

Returns:

the lock information along with Response<T> on successful completion of Mono.

createOrUpdateAtSubscriptionLevel

public abstract ManagementLockObjectInner createOrUpdateAtSubscriptionLevel(String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the subscription level.

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.

Parameters:

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

Returns:

the lock information.

createOrUpdateAtSubscriptionLevelAsync

public abstract Mono createOrUpdateAtSubscriptionLevelAsync(String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the subscription level.

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.

Parameters:

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

Returns:

the lock information on successful completion of Mono.

createOrUpdateAtSubscriptionLevelWithResponse

public abstract Response createOrUpdateAtSubscriptionLevelWithResponse(String lockName, ManagementLockObjectInner parameters, Context context)

Creates or updates a management lock at the subscription level.

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.

Parameters:

lockName - The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
parameters - The management lock parameters.
context - The context to associate with this operation.

Returns:

the lock information along with Response<T>.

createOrUpdateAtSubscriptionLevelWithResponseAsync

public abstract Mono<>> createOrUpdateAtSubscriptionLevelWithResponseAsync(String lockName, ManagementLockObjectInner parameters)

Creates or updates a management lock at the subscription level.

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.

Parameters:

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

Returns:

the lock information along with Response<T> on successful completion of Mono.

createOrUpdateByScope

public abstract ManagementLockObjectInner createOrUpdateByScope(String scope, String lockName, ManagementLockObjectInner parameters)

Create or update a management lock by scope.

Parameters:

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.
lockName - The name of lock.
parameters - Create or update management lock parameters.

Returns:

the lock information.

createOrUpdateByScopeAsync

public abstract Mono createOrUpdateByScopeAsync(String scope, String lockName, ManagementLockObjectInner parameters)

Create or update a management lock by scope.

Parameters:

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.
lockName - The name of lock.
parameters - Create or update management lock parameters.

Returns:

the lock information on successful completion of Mono.

createOrUpdateByScopeWithResponse

public abstract Response createOrUpdateByScopeWithResponse(String scope, String lockName, ManagementLockObjectInner parameters, Context context)

Create or update a management lock by scope.

Parameters:

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.
lockName - The name of lock.
parameters - Create or update management lock parameters.
context - The context to associate with this operation.

Returns:

the lock information along with Response<T>.

createOrUpdateByScopeWithResponseAsync

public abstract Mono<>> createOrUpdateByScopeWithResponseAsync(String scope, String lockName, ManagementLockObjectInner parameters)

Create or update a management lock by scope.

Parameters:

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.
lockName - The name of lock.
parameters - Create or update management lock parameters.

Returns:

the lock information along with Response<T> on successful completion of Mono.

delete

public abstract void delete(String resourceGroupName, String lockName)

Deletes a management lock at the resource group level.

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.

Parameters:

resourceGroupName - The name of the resource group containing the lock.
lockName - The name of lock to delete.

deleteAsync

public abstract Mono deleteAsync(String resourceGroupName, String lockName)

Deletes a management lock at the resource group level.

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.

Parameters:

resourceGroupName - The name of the resource group containing the lock.
lockName - The name of lock to delete.

Returns:

A Mono that completes when a successful response is received.

deleteAtResourceLevel

public abstract void deleteAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

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.

Parameters:

resourceGroupName - The name of the resource group containing the resource with the lock to delete.
resourceProviderNamespace - The resource provider namespace of the resource with the lock to delete.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the resource with the lock to delete.
resourceName - The name of the resource with the lock to delete.
lockName - The name of the lock to delete.

deleteAtResourceLevelAsync

public abstract Mono deleteAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

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.

Parameters:

resourceGroupName - The name of the resource group containing the resource with the lock to delete.
resourceProviderNamespace - The resource provider namespace of the resource with the lock to delete.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the resource with the lock to delete.
resourceName - The name of the resource with the lock to delete.
lockName - The name of the lock to delete.

Returns:

A Mono that completes when a successful response is received.

deleteAtResourceLevelWithResponse

public abstract Response deleteAtResourceLevelWithResponse(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, Context context)

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

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.

Parameters:

resourceGroupName - The name of the resource group containing the resource with the lock to delete.
resourceProviderNamespace - The resource provider namespace of the resource with the lock to delete.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the resource with the lock to delete.
resourceName - The name of the resource with the lock to delete.
lockName - The name of the lock to delete.
context - The context to associate with this operation.

Returns:

deleteAtResourceLevelWithResponseAsync

public abstract Mono<>> deleteAtResourceLevelWithResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

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.

Parameters:

resourceGroupName - The name of the resource group containing the resource with the lock to delete.
resourceProviderNamespace - The resource provider namespace of the resource with the lock to delete.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the resource with the lock to delete.
resourceName - The name of the resource with the lock to delete.
lockName - The name of the lock to delete.

Returns:

the Response<T> on successful completion of Mono.

deleteAtSubscriptionLevel

public abstract void deleteAtSubscriptionLevel(String lockName)

Deletes the management lock at the subscription level.

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.

Parameters:

lockName - The name of lock to delete.

deleteAtSubscriptionLevelAsync

public abstract Mono deleteAtSubscriptionLevelAsync(String lockName)

Deletes the management lock at the subscription level.

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.

Parameters:

lockName - The name of lock to delete.

Returns:

A Mono that completes when a successful response is received.

deleteAtSubscriptionLevelWithResponse

public abstract Response deleteAtSubscriptionLevelWithResponse(String lockName, Context context)

Deletes the management lock at the subscription level.

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.

Parameters:

lockName - The name of lock to delete.
context - The context to associate with this operation.

Returns:

deleteAtSubscriptionLevelWithResponseAsync

public abstract Mono<>> deleteAtSubscriptionLevelWithResponseAsync(String lockName)

Deletes the management lock at the subscription level.

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.

Parameters:

lockName - The name of lock to delete.

Returns:

the Response<T> on successful completion of Mono.

deleteByScope

public abstract void deleteByScope(String scope, String lockName)

Delete a management lock by scope.

Parameters:

scope - The scope for the lock.
lockName - The name of lock.

deleteByScopeAsync

public abstract Mono deleteByScopeAsync(String scope, String lockName)

Delete a management lock by scope.

Parameters:

scope - The scope for the lock.
lockName - The name of lock.

Returns:

A Mono that completes when a successful response is received.

deleteByScopeWithResponse

public abstract Response deleteByScopeWithResponse(String scope, String lockName, Context context)

Delete a management lock by scope.

Parameters:

scope - The scope for the lock.
lockName - The name of lock.
context - The context to associate with this operation.

Returns:

deleteByScopeWithResponseAsync

public abstract Mono<>> deleteByScopeWithResponseAsync(String scope, String lockName)

Delete a management lock by scope.

Parameters:

scope - The scope for the lock.
lockName - The name of lock.

Returns:

the Response<T> on successful completion of Mono.

deleteWithResponse

public abstract Response deleteWithResponse(String resourceGroupName, String lockName, Context context)

Deletes a management lock at the resource group level.

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.

Parameters:

resourceGroupName - The name of the resource group containing the lock.
lockName - The name of lock to delete.
context - The context to associate with this operation.

Returns:

deleteWithResponseAsync

public abstract Mono<>> deleteWithResponseAsync(String resourceGroupName, String lockName)

Deletes a management lock at the resource group level.

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.

Parameters:

resourceGroupName - The name of the resource group containing the lock.
lockName - The name of lock to delete.

Returns:

the Response<T> on successful completion of Mono.

getAtResourceLevel

public abstract ManagementLockObjectInner getAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

Parameters:

resourceGroupName - The name of the resource group.
resourceProviderNamespace - The namespace of the resource provider.
parentResourcePath - An extra path parameter needed in some services, like SQL Databases.
resourceType - The type of the resource.
resourceName - The name of the resource.
lockName - The name of lock.

Returns:

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

getAtResourceLevelAsync

public abstract Mono getAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

Parameters:

resourceGroupName - The name of the resource group.
resourceProviderNamespace - The namespace of the resource provider.
parentResourcePath - An extra path parameter needed in some services, like SQL Databases.
resourceType - The type of the resource.
resourceName - The name of the resource.
lockName - The name of lock.

Returns:

the management lock of a resource or any level below resource on successful completion of Mono.

getAtResourceLevelWithResponse

public abstract Response getAtResourceLevelWithResponse(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, Context context)

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

Parameters:

resourceGroupName - The name of the resource group.
resourceProviderNamespace - The namespace of the resource provider.
parentResourcePath - An extra path parameter needed in some services, like SQL Databases.
resourceType - The type of the resource.
resourceName - The name of the resource.
lockName - The name of lock.
context - The context to associate with this operation.

Returns:

the management lock of a resource or any level below resource along with Response<T>.

getAtResourceLevelWithResponseAsync

public abstract Mono<>> getAtResourceLevelWithResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)

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

Parameters:

resourceGroupName - The name of the resource group.
resourceProviderNamespace - The namespace of the resource provider.
parentResourcePath - An extra path parameter needed in some services, like SQL Databases.
resourceType - The type of the resource.
resourceName - The name of the resource.
lockName - The name of lock.

Returns:

the management lock of a resource or any level below resource along with Response<T> on successful completion of Mono.

getAtSubscriptionLevel

public abstract ManagementLockObjectInner getAtSubscriptionLevel(String lockName)

Gets a management lock at the subscription level.

Parameters:

lockName - The name of the lock to get.

Returns:

a management lock at the subscription level.

getAtSubscriptionLevelAsync

public abstract Mono getAtSubscriptionLevelAsync(String lockName)

Gets a management lock at the subscription level.

Parameters:

lockName - The name of the lock to get.

Returns:

a management lock at the subscription level on successful completion of Mono.

getAtSubscriptionLevelWithResponse

public abstract Response getAtSubscriptionLevelWithResponse(String lockName, Context context)

Gets a management lock at the subscription level.

Parameters:

lockName - The name of the lock to get.
context - The context to associate with this operation.

Returns:

a management lock at the subscription level along with Response<T>.

getAtSubscriptionLevelWithResponseAsync

public abstract Mono<>> getAtSubscriptionLevelWithResponseAsync(String lockName)

Gets a management lock at the subscription level.

Parameters:

lockName - The name of the lock to get.

Returns:

a management lock at the subscription level along with Response<T> on successful completion of Mono.

getByResourceGroup

public abstract ManagementLockObjectInner getByResourceGroup(String resourceGroupName, String lockName)

Gets a management lock at the resource group level.

Parameters:

resourceGroupName - The name of the locked resource group.
lockName - The name of the lock to get.

Returns:

a management lock at the resource group level.

getByResourceGroupAsync

public abstract Mono getByResourceGroupAsync(String resourceGroupName, String lockName)

Gets a management lock at the resource group level.

Parameters:

resourceGroupName - The name of the locked resource group.
lockName - The name of the lock to get.

Returns:

a management lock at the resource group level on successful completion of Mono.

getByResourceGroupWithResponse

public abstract Response getByResourceGroupWithResponse(String resourceGroupName, String lockName, Context context)

Gets a management lock at the resource group level.

Parameters:

resourceGroupName - The name of the locked resource group.
lockName - The name of the lock to get.
context - The context to associate with this operation.

Returns:

a management lock at the resource group level along with Response<T>.

getByResourceGroupWithResponseAsync

public abstract Mono<>> getByResourceGroupWithResponseAsync(String resourceGroupName, String lockName)

Gets a management lock at the resource group level.

Parameters:

resourceGroupName - The name of the locked resource group.
lockName - The name of the lock to get.

Returns:

a management lock at the resource group level along with Response<T> on successful completion of Mono.

getByScope

public abstract ManagementLockObjectInner getByScope(String scope, String lockName)

Get a management lock by scope.

Parameters:

scope - The scope for the lock.
lockName - The name of lock.

Returns:

a management lock by scope.

getByScopeAsync

public abstract Mono getByScopeAsync(String scope, String lockName)

Get a management lock by scope.

Parameters:

scope - The scope for the lock.
lockName - The name of lock.

Returns:

a management lock by scope on successful completion of Mono.

getByScopeWithResponse

public abstract Response getByScopeWithResponse(String scope, String lockName, Context context)

Get a management lock by scope.

Parameters:

scope - The scope for the lock.
lockName - The name of lock.
context - The context to associate with this operation.

Returns:

a management lock by scope along with Response<T>.

getByScopeWithResponseAsync

public abstract Mono<>> getByScopeWithResponseAsync(String scope, String lockName)

Get a management lock by scope.

Parameters:

scope - The scope for the lock.
lockName - The name of lock.

Returns:

a management lock by scope along with Response<T> on successful completion of Mono.

list

public abstract PagedIterable list()

Gets all the management locks for a subscription.

Returns:

all the management locks for a subscription as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(String filter, Context context)

Gets all the management locks for a subscription.

Parameters:

filter - The filter to apply on the operation.
context - The context to associate with this operation.

Returns:

all the management locks for a subscription as paginated response with PagedIterable<T>.

listAsync

public abstract PagedFlux listAsync()

Gets all the management locks for a subscription.

Returns:

all the management locks for a subscription as paginated response with PagedFlux<T>.

listAsync

public abstract PagedFlux listAsync(String filter)

Gets all the management locks for a subscription.

Parameters:

filter - The filter to apply on the operation.

Returns:

all the management locks for a subscription as paginated response with PagedFlux<T>.

listAtResourceLevel

public abstract PagedIterable listAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)

Gets all the management locks for a resource or any level below resource.

Parameters:

resourceGroupName - The name of the resource group containing the locked resource. The name is case insensitive.
resourceProviderNamespace - The namespace of the resource provider.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the locked resource.
resourceName - The name of the locked resource.

Returns:

all the management locks for a resource or any level below resource as paginated response with PagedIterable<T>.

listAtResourceLevel

public abstract PagedIterable listAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter, Context context)

Gets all the management locks for a resource or any level below resource.

Parameters:

resourceGroupName - The name of the resource group containing the locked resource. The name is case insensitive.
resourceProviderNamespace - The namespace of the resource provider.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the locked resource.
resourceName - The name of the locked resource.
filter - The filter to apply on the operation.
context - The context to associate with this operation.

Returns:

all the management locks for a resource or any level below resource as paginated response with PagedIterable<T>.

listAtResourceLevelAsync

public abstract PagedFlux listAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)

Gets all the management locks for a resource or any level below resource.

Parameters:

resourceGroupName - The name of the resource group containing the locked resource. The name is case insensitive.
resourceProviderNamespace - The namespace of the resource provider.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the locked resource.
resourceName - The name of the locked resource.

Returns:

all the management locks for a resource or any level below resource as paginated response with PagedFlux<T>.

listAtResourceLevelAsync

public abstract PagedFlux listAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter)

Gets all the management locks for a resource or any level below resource.

Parameters:

resourceGroupName - The name of the resource group containing the locked resource. The name is case insensitive.
resourceProviderNamespace - The namespace of the resource provider.
parentResourcePath - The parent resource identity.
resourceType - The resource type of the locked resource.
resourceName - The name of the locked resource.
filter - The filter to apply on the operation.

Returns:

all the management locks for a resource or any level below resource as paginated response with PagedFlux<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName)

Gets all the management locks for a resource group.

Parameters:

resourceGroupName - The name of the resource group containing the locks to get.

Returns:

all the management locks for a resource group as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context)

Gets all the management locks for a resource group.

Parameters:

resourceGroupName - The name of the resource group containing the locks to get.
filter - The filter to apply on the operation.
context - The context to associate with this operation.

Returns:

all the management locks for a resource group as paginated response with PagedIterable<T>.

listByResourceGroupAsync

public abstract PagedFlux listByResourceGroupAsync(String resourceGroupName)

Gets all the management locks for a resource group.

Parameters:

resourceGroupName - The name of the resource group containing the locks to get.

Returns:

all the management locks for a resource group as paginated response with PagedFlux<T>.

listByResourceGroupAsync

public abstract PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter)

Gets all the management locks for a resource group.

Parameters:

resourceGroupName - The name of the resource group containing the locks to get.
filter - The filter to apply on the operation.

Returns:

all the management locks for a resource group as paginated response with PagedFlux<T>.

listByScope

public abstract PagedIterable listByScope(String scope)

Gets all the management locks for a scope.

Parameters:

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.

Returns:

all the management locks for a scope as paginated response with PagedIterable<T>.

listByScope

public abstract PagedIterable listByScope(String scope, String filter, Context context)

Gets all the management locks for a scope.

Parameters:

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.
filter - The filter to apply on the operation.
context - The context to associate with this operation.

Returns:

all the management locks for a scope as paginated response with PagedIterable<T>.

listByScopeAsync

public abstract PagedFlux listByScopeAsync(String scope)

Gets all the management locks for a scope.

Parameters:

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.

Returns:

all the management locks for a scope as paginated response with PagedFlux<T>.

listByScopeAsync

public abstract PagedFlux listByScopeAsync(String scope, String filter)

Gets all the management locks for a scope.

Parameters:

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.
filter - The filter to apply on the operation.

Returns:

all the management locks for a scope as paginated response with PagedFlux<T>.

Applies to