Interface RoleAssignmentsClient
- All Superinterfaces:
InnerSupportsDelete<RoleAssignmentInner>,InnerSupportsListing<RoleAssignmentInner>
public interface RoleAssignmentsClient
extends InnerSupportsListing<RoleAssignmentInner>, InnerSupportsDelete<RoleAssignmentInner>
An instance of this class provides access to all the operations defined in RoleAssignmentsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Create or update a role assignment by scope and name.createAsync(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Create or update a role assignment by scope and name.createById(String roleAssignmentId, RoleAssignmentCreateParameters parameters) Create or update a role assignment by ID.createByIdAsync(String roleAssignmentId, RoleAssignmentCreateParameters parameters) Create or update a role assignment by ID.com.azure.core.http.rest.Response<RoleAssignmentInner>createByIdWithResponse(String roleAssignmentId, RoleAssignmentCreateParameters parameters, com.azure.core.util.Context context) Create or update a role assignment by ID.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>createByIdWithResponseAsync(String roleAssignmentId, RoleAssignmentCreateParameters parameters) Create or update a role assignment by ID.com.azure.core.http.rest.Response<RoleAssignmentInner>createWithResponse(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters, com.azure.core.util.Context context) Create or update a role assignment by scope and name.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>createWithResponseAsync(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Create or update a role assignment by scope and name.Delete a role assignment by scope and name.deleteAsync(String scope, String roleAssignmentName) Delete a role assignment by scope and name.deleteById(String roleAssignmentId) Delete a role assignment by ID.deleteByIdAsync(String roleAssignmentId) Delete a role assignment by ID.com.azure.core.http.rest.Response<RoleAssignmentInner>deleteByIdWithResponse(String roleAssignmentId, String tenantId, com.azure.core.util.Context context) Delete a role assignment by ID.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>deleteByIdWithResponseAsync(String roleAssignmentId, String tenantId) Delete a role assignment by ID.com.azure.core.http.rest.Response<RoleAssignmentInner>deleteWithResponse(String scope, String roleAssignmentName, String tenantId, com.azure.core.util.Context context) Delete a role assignment by scope and name.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>deleteWithResponseAsync(String scope, String roleAssignmentName, String tenantId) Delete a role assignment by scope and name.Get a role assignment by scope and name.Get a role assignment by scope and name.Get a role assignment by ID.getByIdAsync(String roleAssignmentId) Get a role assignment by ID.com.azure.core.http.rest.Response<RoleAssignmentInner>getByIdWithResponse(String roleAssignmentId, String tenantId, com.azure.core.util.Context context) Get a role assignment by ID.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>getByIdWithResponseAsync(String roleAssignmentId, String tenantId) Get a role assignment by ID.com.azure.core.http.rest.Response<RoleAssignmentInner>getWithResponse(String scope, String roleAssignmentName, String tenantId, com.azure.core.util.Context context) Get a role assignment by scope and name.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>getWithResponseAsync(String scope, String roleAssignmentName, String tenantId) Get a role assignment by scope and name.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>list()List all role assignments that apply to a subscription.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>List all role assignments that apply to a subscription.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>List all role assignments that apply to a subscription.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>List all role assignments that apply to a subscription.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listByResourceGroup(String resourceGroupName) List all role assignments that apply to a resource group.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listByResourceGroup(String resourceGroupName, String filter, String tenantId, com.azure.core.util.Context context) List all role assignments that apply to a resource group.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listByResourceGroupAsync(String resourceGroupName) List all role assignments that apply to a resource group.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listByResourceGroupAsync(String resourceGroupName, String filter, String tenantId) List all role assignments that apply to a resource group.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listForResource(String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName) List all role assignments that apply to a resource.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listForResource(String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName, String filter, String tenantId, com.azure.core.util.Context context) List all role assignments that apply to a resource.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName) List all role assignments that apply to a resource.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName, String filter, String tenantId) List all role assignments that apply to a resource.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listForScope(String scope) List all role assignments that apply to a scope.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listForScope(String scope, String filter, String tenantId, String skipToken, com.azure.core.util.Context context) List all role assignments that apply to a scope.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listForScopeAsync(String scope) List all role assignments that apply to a scope.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listForScopeAsync(String scope, String filter, String tenantId, String skipToken) List all role assignments that apply to a scope.
-
Method Details
-
listAsync
List all role assignments that apply to a subscription.- Parameters:
filter- The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.tenantId- Tenant ID for cross-tenant request.- Returns:
- role assignment list operation result 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<RoleAssignmentInner> listAsync()List all role assignments that apply to a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<RoleAssignmentInner>- Returns:
- role assignment list operation result 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<RoleAssignmentInner> list()List all role assignments that apply to a subscription.- Specified by:
listin interfaceInnerSupportsListing<RoleAssignmentInner>- Returns:
- role assignment list operation result 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<RoleAssignmentInner> list(String filter, String tenantId, com.azure.core.util.Context context) List all role assignments that apply to a subscription.- Parameters:
filter- The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.tenantId- Tenant ID for cross-tenant request.context- The context to associate with this operation.- Returns:
- role assignment list operation result 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listByResourceGroupAsync(String resourceGroupName, String filter, String tenantId) List all role assignments that apply to a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.filter- The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.tenantId- Tenant ID for cross-tenant request.- Returns:
- role assignment list operation result 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<RoleAssignmentInner> listByResourceGroupAsync(String resourceGroupName) List all role assignments that apply to a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<RoleAssignmentInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- role assignment list operation result 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<RoleAssignmentInner> listByResourceGroup(String resourceGroupName) List all role assignments that apply to a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<RoleAssignmentInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- role assignment list operation result 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<RoleAssignmentInner> listByResourceGroup(String resourceGroupName, String filter, String tenantId, com.azure.core.util.Context context) List all role assignments that apply to a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.filter- The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.tenantId- Tenant ID for cross-tenant request.context- The context to associate with this operation.- Returns:
- role assignment list operation result 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.
-
listForResourceAsync
com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName, String filter, String tenantId) List all role assignments that apply to a resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceProviderNamespace- The namespace of the resource provider.resourceType- The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).resourceName- The resource name.filter- The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.tenantId- Tenant ID for cross-tenant request.- Returns:
- role assignment list operation result 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.
-
listForResourceAsync
com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName) List all role assignments that apply to a resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceProviderNamespace- The namespace of the resource provider.resourceType- The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).resourceName- The resource name.- Returns:
- role assignment list operation result 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.
-
listForResource
com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName) List all role assignments that apply to a resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceProviderNamespace- The namespace of the resource provider.resourceType- The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).resourceName- The resource name.- Returns:
- role assignment list operation result 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.
-
listForResource
com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String resourceType, String resourceName, String filter, String tenantId, com.azure.core.util.Context context) List all role assignments that apply to a resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceProviderNamespace- The namespace of the resource provider.resourceType- The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).resourceName- The resource name.filter- The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.tenantId- Tenant ID for cross-tenant request.context- The context to associate with this operation.- Returns:
- role assignment list operation result 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> getWithResponseAsync(String scope, String roleAssignmentName, String tenantId) Get a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.tenantId- Tenant ID for cross-tenant request.- Returns:
- a role assignment by scope and name 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.
-
getAsync
Get a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.- Returns:
- a role assignment by scope and name 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.
-
getWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> getWithResponse(String scope, String roleAssignmentName, String tenantId, com.azure.core.util.Context context) Get a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.tenantId- Tenant ID for cross-tenant request.context- The context to associate with this operation.- Returns:
- a role assignment by scope and name 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.
-
get
Get a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.- Returns:
- a role assignment by scope and name.
- 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.
-
createWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> createWithResponseAsync(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Create or update a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.parameters- Parameters for the role assignment.- Returns:
- role Assignments 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.
-
createAsync
Mono<RoleAssignmentInner> createAsync(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Create or update a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.parameters- Parameters for the role assignment.- Returns:
- role Assignments 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.
-
createWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> createWithResponse(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters, com.azure.core.util.Context context) Create or update a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.parameters- Parameters for the role assignment.context- The context to associate with this operation.- Returns:
- role Assignments 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.
-
create
RoleAssignmentInner create(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Create or update a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.parameters- Parameters for the role assignment.- Returns:
- role Assignments.
- 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<RoleAssignmentInner>> deleteWithResponseAsync(String scope, String roleAssignmentName, String tenantId) Delete a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.tenantId- Tenant ID for cross-tenant request.- Returns:
- role Assignments 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.
-
deleteAsync
Delete a role assignment by scope and name.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<RoleAssignmentInner>- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.- Returns:
- role Assignments 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> deleteWithResponse(String scope, String roleAssignmentName, String tenantId, com.azure.core.util.Context context) Delete a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.tenantId- Tenant ID for cross-tenant request.context- The context to associate with this operation.- Returns:
- role Assignments 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.
-
delete
Delete a role assignment by scope and name.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.roleAssignmentName- The name of the role assignment. It can be any valid GUID.- Returns:
- role Assignments.
- 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.
-
listForScopeAsync
com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForScopeAsync(String scope, String filter, String tenantId, String skipToken) List all role assignments that apply to a scope.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.filter- The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.tenantId- Tenant ID for cross-tenant request.skipToken- The skipToken to apply on the operation. Use $skipToken={skiptoken} to return paged role assignments following the skipToken passed. Only supported on provider level calls.- Returns:
- role assignment list operation result 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.
-
listForScopeAsync
List all role assignments that apply to a scope.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.- Returns:
- role assignment list operation result 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.
-
listForScope
List all role assignments that apply to a scope.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.- Returns:
- role assignment list operation result 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.
-
listForScope
com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listForScope(String scope, String filter, String tenantId, String skipToken, com.azure.core.util.Context context) List all role assignments that apply to a scope.- Parameters:
scope- The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.filter- The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.tenantId- Tenant ID for cross-tenant request.skipToken- The skipToken to apply on the operation. Use $skipToken={skiptoken} to return paged role assignments following the skipToken passed. Only supported on provider level calls.context- The context to associate with this operation.- Returns:
- role assignment list operation result 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.
-
getByIdWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> getByIdWithResponseAsync(String roleAssignmentId, String tenantId) Get a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.tenantId- Tenant ID for cross-tenant request.- Returns:
- a role assignment by ID 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.
-
getByIdAsync
Get a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.- Returns:
- a role assignment by ID 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> getByIdWithResponse(String roleAssignmentId, String tenantId, com.azure.core.util.Context context) Get a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.tenantId- Tenant ID for cross-tenant request.context- The context to associate with this operation.- Returns:
- a role assignment by ID 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.
-
getById
Get a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.- Returns:
- a role assignment by ID.
- 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.
-
createByIdWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> createByIdWithResponseAsync(String roleAssignmentId, RoleAssignmentCreateParameters parameters) Create or update a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.parameters- Parameters for the role assignment.- Returns:
- role Assignments 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.
-
createByIdAsync
Mono<RoleAssignmentInner> createByIdAsync(String roleAssignmentId, RoleAssignmentCreateParameters parameters) Create or update a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.parameters- Parameters for the role assignment.- Returns:
- role Assignments 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.
-
createByIdWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> createByIdWithResponse(String roleAssignmentId, RoleAssignmentCreateParameters parameters, com.azure.core.util.Context context) Create or update a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.parameters- Parameters for the role assignment.context- The context to associate with this operation.- Returns:
- role Assignments 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.
-
createById
Create or update a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.parameters- Parameters for the role assignment.- Returns:
- role Assignments.
- 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.
-
deleteByIdWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> deleteByIdWithResponseAsync(String roleAssignmentId, String tenantId) Delete a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.tenantId- Tenant ID for cross-tenant request.- Returns:
- role Assignments 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.
-
deleteByIdAsync
Delete a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.- Returns:
- role Assignments 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> deleteByIdWithResponse(String roleAssignmentId, String tenantId, com.azure.core.util.Context context) Delete a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.tenantId- Tenant ID for cross-tenant request.context- The context to associate with this operation.- Returns:
- role Assignments 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.
-
deleteById
Delete a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>.- Returns:
- role Assignments.
- 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.
-