public interface ManagementLocksClient extends InnerSupportsGet<ManagementLockObjectInner>, InnerSupportsListing<ManagementLockObjectInner>, InnerSupportsDelete<Void>
| Modifier and Type | Method and Description |
|---|---|
ManagementLockObjectInner |
createOrUpdateAtResourceGroupLevel(String resourceGroupName,
String lockName,
ManagementLockObjectInner parameters)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
Mono<ManagementLockObjectInner> |
createOrUpdateAtResourceGroupLevelAsync(String resourceGroupName,
String lockName,
ManagementLockObjectInner parameters)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
com.azure.core.http.rest.Response<ManagementLockObjectInner> |
createOrUpdateAtResourceGroupLevelWithResponse(String resourceGroupName,
String lockName,
ManagementLockObjectInner parameters,
com.azure.core.util.Context context)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> |
createOrUpdateAtResourceGroupLevelWithResponseAsync(String resourceGroupName,
String lockName,
ManagementLockObjectInner parameters)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
ManagementLockObjectInner |
createOrUpdateAtResourceLevel(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String lockName,
ManagementLockObjectInner parameters)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
Mono<ManagementLockObjectInner> |
createOrUpdateAtResourceLevelAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String lockName,
ManagementLockObjectInner parameters)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
com.azure.core.http.rest.Response<ManagementLockObjectInner> |
createOrUpdateAtResourceLevelWithResponse(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String lockName,
ManagementLockObjectInner parameters,
com.azure.core.util.Context context)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> |
createOrUpdateAtResourceLevelWithResponseAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String lockName,
ManagementLockObjectInner parameters)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
ManagementLockObjectInner |
createOrUpdateAtSubscriptionLevel(String lockName,
ManagementLockObjectInner parameters)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
Mono<ManagementLockObjectInner> |
createOrUpdateAtSubscriptionLevelAsync(String lockName,
ManagementLockObjectInner parameters)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
com.azure.core.http.rest.Response<ManagementLockObjectInner> |
createOrUpdateAtSubscriptionLevelWithResponse(String lockName,
ManagementLockObjectInner parameters,
com.azure.core.util.Context context)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> |
createOrUpdateAtSubscriptionLevelWithResponseAsync(String lockName,
ManagementLockObjectInner parameters)
When you apply a lock at a parent scope, all child resources inherit the same lock.
|
ManagementLockObjectInner |
createOrUpdateByScope(String scope,
String lockName,
ManagementLockObjectInner parameters)
Create or update a management lock by scope.
|
Mono<ManagementLockObjectInner> |
createOrUpdateByScopeAsync(String scope,
String lockName,
ManagementLockObjectInner parameters)
Create or update a management lock by scope.
|
com.azure.core.http.rest.Response<ManagementLockObjectInner> |
createOrUpdateByScopeWithResponse(String scope,
String lockName,
ManagementLockObjectInner parameters,
com.azure.core.util.Context context)
Create or update a management lock by scope.
|
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> |
createOrUpdateByScopeWithResponseAsync(String scope,
String lockName,
ManagementLockObjectInner parameters)
Create or update a management lock by scope.
|
void |
delete(String resourceGroupName,
String lockName)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
Mono<Void> |
deleteAsync(String resourceGroupName,
String lockName)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
void |
deleteAtResourceLevel(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String lockName)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
Mono<Void> |
deleteAtResourceLevelAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String lockName)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
com.azure.core.http.rest.Response<Void> |
deleteAtResourceLevelWithResponse(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String lockName,
com.azure.core.util.Context context)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteAtResourceLevelWithResponseAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String lockName)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
void |
deleteAtSubscriptionLevel(String lockName)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
Mono<Void> |
deleteAtSubscriptionLevelAsync(String lockName)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
com.azure.core.http.rest.Response<Void> |
deleteAtSubscriptionLevelWithResponse(String lockName,
com.azure.core.util.Context context)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteAtSubscriptionLevelWithResponseAsync(String lockName)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
void |
deleteByScope(String scope,
String lockName)
Delete a management lock by scope.
|
Mono<Void> |
deleteByScopeAsync(String scope,
String lockName)
Delete a management lock by scope.
|
com.azure.core.http.rest.Response<Void> |
deleteByScopeWithResponse(String scope,
String lockName,
com.azure.core.util.Context context)
Delete a management lock by scope.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteByScopeWithResponseAsync(String scope,
String lockName)
Delete a management lock by scope.
|
com.azure.core.http.rest.Response<Void> |
deleteWithResponse(String resourceGroupName,
String lockName,
com.azure.core.util.Context context)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteWithResponseAsync(String resourceGroupName,
String lockName)
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/*
actions.
|
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.
|
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.
|
com.azure.core.http.rest.Response<ManagementLockObjectInner> |
getAtResourceLevelWithResponse(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String lockName,
com.azure.core.util.Context context)
Get the management lock of a resource or any level below resource.
|
Mono<com.azure.core.http.rest.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.
|
ManagementLockObjectInner |
getAtSubscriptionLevel(String lockName)
Gets a management lock at the subscription level.
|
Mono<ManagementLockObjectInner> |
getAtSubscriptionLevelAsync(String lockName)
Gets a management lock at the subscription level.
|
com.azure.core.http.rest.Response<ManagementLockObjectInner> |
getAtSubscriptionLevelWithResponse(String lockName,
com.azure.core.util.Context context)
Gets a management lock at the subscription level.
|
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> |
getAtSubscriptionLevelWithResponseAsync(String lockName)
Gets a management lock at the subscription level.
|
ManagementLockObjectInner |
getByResourceGroup(String resourceGroupName,
String lockName)
Gets a management lock at the resource group level.
|
Mono<ManagementLockObjectInner> |
getByResourceGroupAsync(String resourceGroupName,
String lockName)
Gets a management lock at the resource group level.
|
com.azure.core.http.rest.Response<ManagementLockObjectInner> |
getByResourceGroupWithResponse(String resourceGroupName,
String lockName,
com.azure.core.util.Context context)
Gets a management lock at the resource group level.
|
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> |
getByResourceGroupWithResponseAsync(String resourceGroupName,
String lockName)
Gets a management lock at the resource group level.
|
ManagementLockObjectInner |
getByScope(String scope,
String lockName)
Get a management lock by scope.
|
Mono<ManagementLockObjectInner> |
getByScopeAsync(String scope,
String lockName)
Get a management lock by scope.
|
com.azure.core.http.rest.Response<ManagementLockObjectInner> |
getByScopeWithResponse(String scope,
String lockName,
com.azure.core.util.Context context)
Get a management lock by scope.
|
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> |
getByScopeWithResponseAsync(String scope,
String lockName)
Get a management lock by scope.
|
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> |
list()
Gets all the management locks for a subscription.
|
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> |
list(String filter,
com.azure.core.util.Context context)
Gets all the management locks for a subscription.
|
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> |
listAsync()
Gets all the management locks for a subscription.
|
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> |
listAsync(String filter)
Gets all the management locks for a subscription.
|
com.azure.core.http.rest.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.
|
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> |
listAtResourceLevel(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String filter,
com.azure.core.util.Context context)
Gets all the management locks for a resource or any level below resource.
|
com.azure.core.http.rest.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.
|
com.azure.core.http.rest.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.
|
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> |
listByResourceGroup(String resourceGroupName)
Gets all the management locks for a resource group.
|
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> |
listByResourceGroup(String resourceGroupName,
String filter,
com.azure.core.util.Context context)
Gets all the management locks for a resource group.
|
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> |
listByResourceGroupAsync(String resourceGroupName)
Gets all the management locks for a resource group.
|
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> |
listByResourceGroupAsync(String resourceGroupName,
String filter)
Gets all the management locks for a resource group.
|
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> |
listByScope(String scope)
Gets all the management locks for a scope.
|
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> |
listByScope(String scope,
String filter,
com.azure.core.util.Context context)
Gets all the management locks for a scope.
|
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> |
listByScopeAsync(String scope)
Gets all the management locks for a scope.
|
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> |
listByScopeAsync(String scope,
String filter)
Gets all the management locks for a scope.
|
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateAtResourceGroupLevelWithResponseAsync(String resourceGroupName, String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ManagementLockObjectInner> createOrUpdateAtResourceGroupLevelAsync(String resourceGroupName, String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.ManagementLockObjectInner createOrUpdateAtResourceGroupLevel(String resourceGroupName, String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtResourceGroupLevelWithResponse(String resourceGroupName, String lockName, ManagementLockObjectInner parameters, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String lockName)
resourceGroupName - The name of the resource group containing the lock.lockName - The name of lock to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<Void> deleteAsync(String resourceGroupName, String lockName)
deleteAsync in interface InnerSupportsDelete<Void>resourceGroupName - The name of the resource group containing the lock.lockName - The name of lock to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void delete(String resourceGroupName, String lockName)
resourceGroupName - The name of the resource group containing the lock.lockName - The name of lock to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String lockName, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String lockName)
resourceGroupName - The name of the locked resource group.lockName - The name of the lock to get.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ManagementLockObjectInner> getByResourceGroupAsync(String resourceGroupName, String lockName)
getByResourceGroupAsync in interface InnerSupportsGet<ManagementLockObjectInner>resourceGroupName - The name of the locked resource group.lockName - The name of the lock to get.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.ManagementLockObjectInner getByResourceGroup(String resourceGroupName, String lockName)
getByResourceGroup in interface InnerSupportsGet<ManagementLockObjectInner>resourceGroupName - The name of the locked resource group.lockName - The name of the lock to get.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ManagementLockObjectInner> getByResourceGroupWithResponse(String resourceGroupName, String lockName, com.azure.core.util.Context context)
resourceGroupName - The name of the locked resource group.lockName - The name of the lock to get.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateByScopeWithResponseAsync(String scope, String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ManagementLockObjectInner> createOrUpdateByScopeAsync(String scope, String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.ManagementLockObjectInner createOrUpdateByScope(String scope, String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateByScopeWithResponse(String scope, String lockName, ManagementLockObjectInner parameters, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<Void>> deleteByScopeWithResponseAsync(String scope, String lockName)
scope - The scope for the lock.lockName - The name of lock.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<Void> deleteByScopeAsync(String scope, String lockName)
scope - The scope for the lock.lockName - The name of lock.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void deleteByScope(String scope, String lockName)
scope - The scope for the lock.lockName - The name of lock.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<Void> deleteByScopeWithResponse(String scope, String lockName, com.azure.core.util.Context context)
scope - The scope for the lock.lockName - The name of lock.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> getByScopeWithResponseAsync(String scope, String lockName)
scope - The scope for the lock.lockName - The name of lock.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ManagementLockObjectInner> getByScopeAsync(String scope, String lockName)
scope - The scope for the lock.lockName - The name of lock.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.ManagementLockObjectInner getByScope(String scope, String lockName)
scope - The scope for the lock.lockName - The name of lock.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ManagementLockObjectInner> getByScopeWithResponse(String scope, String lockName, com.azure.core.util.Context context)
scope - The scope for the lock.lockName - The name of lock.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateAtResourceLevelWithResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ManagementLockObjectInner> createOrUpdateAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.ManagementLockObjectInner createOrUpdateAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtResourceLevelWithResponse(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, ManagementLockObjectInner parameters, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<Void>> deleteAtResourceLevelWithResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<Void> deleteAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void deleteAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<Void> deleteAtResourceLevelWithResponse(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> getAtResourceLevelWithResponseAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ManagementLockObjectInner> getAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.ManagementLockObjectInner getAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ManagementLockObjectInner> getAtResourceLevelWithResponse(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String lockName, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateAtSubscriptionLevelWithResponseAsync(String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelAsync(String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.ManagementLockObjectInner createOrUpdateAtSubscriptionLevel(String lockName, ManagementLockObjectInner 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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelWithResponse(String lockName, ManagementLockObjectInner parameters, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<Void>> deleteAtSubscriptionLevelWithResponseAsync(String lockName)
lockName - The name of lock to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<Void> deleteAtSubscriptionLevelAsync(String lockName)
lockName - The name of lock to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.void deleteAtSubscriptionLevel(String lockName)
lockName - The name of lock to delete.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<Void> deleteAtSubscriptionLevelWithResponse(String lockName, com.azure.core.util.Context context)
lockName - The name of lock to delete.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> getAtSubscriptionLevelWithResponseAsync(String lockName)
lockName - The name of the lock to get.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Mono<ManagementLockObjectInner> getAtSubscriptionLevelAsync(String lockName)
lockName - The name of the lock to get.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.ManagementLockObjectInner getAtSubscriptionLevel(String lockName)
lockName - The name of the lock to get.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<ManagementLockObjectInner> getAtSubscriptionLevelWithResponse(String lockName, com.azure.core.util.Context context)
lockName - The name of the lock to get.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listByResourceGroupAsync(String resourceGroupName, String filter)
resourceGroupName - The name of the resource group containing the locks to get.filter - The filter to apply on the operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listByResourceGroupAsync(String resourceGroupName)
listByResourceGroupAsync in interface InnerSupportsListing<ManagementLockObjectInner>resourceGroupName - The name of the resource group containing the locks to get.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listByResourceGroup(String resourceGroupName)
listByResourceGroup in interface InnerSupportsListing<ManagementLockObjectInner>resourceGroupName - The name of the resource group containing the locks to get.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listByResourceGroup(String resourceGroupName, String filter, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listAtResourceLevelAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listAtResourceLevel(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listAsync(String filter)
filter - The filter to apply on the operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listAsync()
listAsync in interface InnerSupportsListing<ManagementLockObjectInner>com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> list()
list in interface InnerSupportsListing<ManagementLockObjectInner>com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> list(String filter, com.azure.core.util.Context context)
filter - The filter to apply on the operation.context - The context to associate with this operation.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listByScopeAsync(String scope, String filter)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listByScopeAsync(String scope)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listByScope(String scope)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listByScope(String scope, String filter, com.azure.core.util.Context context)
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.IllegalArgumentException - thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.RuntimeException - all other wrapped checked exceptions if the request fails to be sent.Copyright © 2021 Microsoft Corporation. All rights reserved.