Interface ManagementLocksClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<ManagementLockObjectInner>,InnerSupportsListing<ManagementLockObjectInner>
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 TypeMethodDescriptioncreateOrUpdateAtResourceGroupLevel(String resourceGroupName, String lockName, ManagementLockObjectInner parameters) Creates or updates a management lock at the resource group level.createOrUpdateAtResourceGroupLevelAsync(String resourceGroupName, String lockName, ManagementLockObjectInner parameters) Creates or updates a management lock at the resource group level.com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtResourceGroupLevelWithResponse(String resourceGroupName, String lockName, ManagementLockObjectInner parameters, com.azure.core.util.Context context) Creates or updates a management lock at the resource group level.Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateAtResourceGroupLevelWithResponseAsync(String resourceGroupName, String lockName, ManagementLockObjectInner parameters) Creates or updates a management lock at the resource group level.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.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.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) Creates or updates a management lock at the resource level or any level below the resource.Mono<com.azure.core.http.rest.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.createOrUpdateAtSubscriptionLevel(String lockName, ManagementLockObjectInner parameters) Creates or updates a management lock at the subscription level.createOrUpdateAtSubscriptionLevelAsync(String lockName, ManagementLockObjectInner parameters) Creates or updates a management lock at the subscription level.com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelWithResponse(String lockName, ManagementLockObjectInner parameters, com.azure.core.util.Context context) Creates or updates a management lock at the subscription level.Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> createOrUpdateAtSubscriptionLevelWithResponseAsync(String lockName, ManagementLockObjectInner parameters) Creates or updates a management lock at the subscription level.createOrUpdateByScope(String scope, String lockName, ManagementLockObjectInner parameters) Create or update a management lock by scope.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.voidDeletes a management lock at the resource group level.deleteAsync(String resourceGroupName, String lockName) Deletes a management lock at the resource group level.voiddeleteAtResourceLevel(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.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.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) Deletes the management lock of a resource or any level below the resource.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.voiddeleteAtSubscriptionLevel(String lockName) Deletes the management lock at the subscription level.deleteAtSubscriptionLevelAsync(String lockName) Deletes the management lock at the subscription level.com.azure.core.http.rest.Response<Void> deleteAtSubscriptionLevelWithResponse(String lockName, com.azure.core.util.Context context) Deletes the management lock at the subscription level.Deletes the management lock at the subscription level.voiddeleteByScope(String scope, String lockName) Delete a management lock by scope.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.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) Deletes a management lock at the resource group level.deleteWithResponseAsync(String resourceGroupName, String lockName) Deletes a management lock at the resource group level.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.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.getAtSubscriptionLevel(String lockName) Gets a management lock at the subscription level.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>> Gets a management lock at the subscription level.getByResourceGroup(String resourceGroupName, String lockName) Gets a management lock at the resource group level.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.getByScope(String scope, String lockName) Get a management lock by scope.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> Gets all the management locks for a subscription.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> Gets all the management locks for a subscription.com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> 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.
-
Method Details
-
createOrUpdateAtResourceGroupLevelWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> 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
Responseon successful completion ofMono. - Throws:
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.
-
createOrUpdateAtResourceGroupLevelAsync
Mono<ManagementLockObjectInner> 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. - Throws:
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.
-
createOrUpdateAtResourceGroupLevelWithResponse
com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtResourceGroupLevelWithResponse(String resourceGroupName, String lockName, ManagementLockObjectInner parameters, com.azure.core.util.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. - Throws:
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.
-
createOrUpdateAtResourceGroupLevel
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.
- Throws:
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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> 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
Responseon successful completion ofMono. - Throws:
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.
-
deleteAsync
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.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group containing the lock.lockName- The name of lock to delete.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String lockName, com.azure.core.util.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:
- the
Response. - Throws:
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.
-
delete
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.- Throws:
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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> 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
Responseon successful completion ofMono. - Throws:
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.
-
getByResourceGroupAsync
Gets a management lock at the resource group level.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<ManagementLockObjectInner>- 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. - Throws:
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.
-
getByResourceGroupWithResponse
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.- 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. - Throws:
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.
-
getByResourceGroup
Gets a management lock at the resource group level.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<ManagementLockObjectInner>- 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.
- Throws:
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.
-
createOrUpdateByScopeWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> 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
Responseon successful completion ofMono. - Throws:
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.
-
createOrUpdateByScopeAsync
Mono<ManagementLockObjectInner> 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. - Throws:
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.
-
createOrUpdateByScopeWithResponse
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.- 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. - Throws:
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.
-
createOrUpdateByScope
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.
- Throws:
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.
-
deleteByScopeWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> 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
Responseon successful completion ofMono. - Throws:
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.
-
deleteByScopeAsync
Delete a management lock by scope.- Parameters:
scope- The scope for the lock.lockName- The name of lock.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
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.
-
deleteByScopeWithResponse
com.azure.core.http.rest.Response<Void> deleteByScopeWithResponse(String scope, String lockName, com.azure.core.util.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:
- the
Response. - Throws:
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.
-
deleteByScope
Delete a management lock by scope.- Parameters:
scope- The scope for the lock.lockName- The name of lock.- Throws:
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.
-
getByScopeWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> 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
Responseon successful completion ofMono. - Throws:
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.
-
getByScopeAsync
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. - Throws:
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.
-
getByScopeWithResponse
com.azure.core.http.rest.Response<ManagementLockObjectInner> getByScopeWithResponse(String scope, String lockName, com.azure.core.util.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. - Throws:
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.
-
getByScope
Get a management lock by scope.- Parameters:
scope- The scope for the lock.lockName- The name of lock.- Returns:
- a management lock by scope.
- Throws:
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.
-
createOrUpdateAtResourceLevelWithResponseAsync
Mono<com.azure.core.http.rest.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. 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
Responseon successful completion ofMono. - Throws:
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.
-
createOrUpdateAtResourceLevelAsync
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. 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. - Throws:
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.
-
createOrUpdateAtResourceLevelWithResponse
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) 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. - Throws:
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.
-
createOrUpdateAtResourceLevel
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.
- Throws:
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.
-
deleteAtResourceLevelWithResponseAsync
Mono<com.azure.core.http.rest.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. 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
Responseon successful completion ofMono. - Throws:
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.
-
deleteAtResourceLevelAsync
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. 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
Monothat completes when a successful response is received. - Throws:
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.
-
deleteAtResourceLevelWithResponse
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) 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:
- the
Response. - Throws:
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.
-
deleteAtResourceLevel
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.- Throws:
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.
-
getAtResourceLevelWithResponseAsync
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.- 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
Responseon successful completion ofMono. - Throws:
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.
-
getAtResourceLevelAsync
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.- 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. - Throws:
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.
-
getAtResourceLevelWithResponse
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.- 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. - Throws:
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.
-
getAtResourceLevel
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.
- Throws:
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.
-
createOrUpdateAtSubscriptionLevelWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> 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
Responseon successful completion ofMono. - Throws:
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.
-
createOrUpdateAtSubscriptionLevelAsync
Mono<ManagementLockObjectInner> 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. - Throws:
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.
-
createOrUpdateAtSubscriptionLevelWithResponse
com.azure.core.http.rest.Response<ManagementLockObjectInner> createOrUpdateAtSubscriptionLevelWithResponse(String lockName, ManagementLockObjectInner parameters, com.azure.core.util.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. - Throws:
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.
-
createOrUpdateAtSubscriptionLevel
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.
- Throws:
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.
-
deleteAtSubscriptionLevelWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> 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
Responseon successful completion ofMono. - Throws:
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.
-
deleteAtSubscriptionLevelAsync
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
Monothat completes when a successful response is received. - Throws:
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.
-
deleteAtSubscriptionLevelWithResponse
com.azure.core.http.rest.Response<Void> deleteAtSubscriptionLevelWithResponse(String lockName, com.azure.core.util.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:
- the
Response. - Throws:
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.
-
deleteAtSubscriptionLevel
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.- Throws:
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.
-
getAtSubscriptionLevelWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagementLockObjectInner>> 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
Responseon successful completion ofMono. - Throws:
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.
-
getAtSubscriptionLevelAsync
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. - Throws:
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.
-
getAtSubscriptionLevelWithResponse
com.azure.core.http.rest.Response<ManagementLockObjectInner> getAtSubscriptionLevelWithResponse(String lockName, com.azure.core.util.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. - Throws:
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.
-
getAtSubscriptionLevel
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.
- Throws:
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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> 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. - Throws:
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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listByResourceGroupAsync(String resourceGroupName) Gets all the management locks for a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<ManagementLockObjectInner>- 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. - Throws:
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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> listByResourceGroup(String resourceGroupName) Gets all the management locks for a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<ManagementLockObjectInner>- 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. - Throws:
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.
-
listByResourceGroup
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.- 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. - Throws:
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.
-
listAtResourceLevelAsync
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.- 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. - Throws:
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.
-
listAtResourceLevelAsync
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.- 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. - Throws:
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.
-
listAtResourceLevel
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.- 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. - Throws:
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.
-
listAtResourceLevel
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.- 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. - Throws:
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.
-
listAsync
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. - Throws:
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.
-
listAsync
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> listAsync()Gets all the management locks for a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<ManagementLockObjectInner>- Returns:
- all the management locks for a subscription as paginated response with
PagedFlux. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> list()Gets all the management locks for a subscription.- Specified by:
listin interfaceInnerSupportsListing<ManagementLockObjectInner>- Returns:
- all the management locks for a subscription as paginated response with
PagedIterable. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<ManagementLockObjectInner> list(String filter, com.azure.core.util.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. - Throws:
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.
-
listByScopeAsync
com.azure.core.http.rest.PagedFlux<ManagementLockObjectInner> 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. - Throws:
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.
-
listByScopeAsync
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. - Throws:
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.
-
listByScope
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. - Throws:
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.
-
listByScope
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.- 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. - Throws:
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.
-