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) Creates a role assignment.createAsync(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Creates a role assignment.createById(String roleAssignmentId, RoleAssignmentCreateParameters parameters) Creates a role assignment by ID.createByIdAsync(String roleAssignmentId, RoleAssignmentCreateParameters parameters) Creates a role assignment by ID.com.azure.core.http.rest.Response<RoleAssignmentInner>createByIdWithResponse(String roleAssignmentId, RoleAssignmentCreateParameters parameters, com.azure.core.util.Context context) Creates a role assignment by ID.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>createByIdWithResponseAsync(String roleAssignmentId, RoleAssignmentCreateParameters parameters) Creates 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) Creates a role assignment.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>createWithResponseAsync(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Creates a role assignment.Deletes a role assignment.deleteAsync(String scope, String roleAssignmentName) Deletes a role assignment.deleteById(String roleAssignmentId) Deletes a role assignment.deleteByIdAsync(String roleAssignmentId) Deletes a role assignment.com.azure.core.http.rest.Response<RoleAssignmentInner>deleteByIdWithResponse(String roleAssignmentId, com.azure.core.util.Context context) Deletes a role assignment.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>deleteByIdWithResponseAsync(String roleAssignmentId) Deletes a role assignment.com.azure.core.http.rest.Response<RoleAssignmentInner>deleteWithResponse(String scope, String roleAssignmentName, com.azure.core.util.Context context) Deletes a role assignment.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>deleteWithResponseAsync(String scope, String roleAssignmentName) Deletes a role assignment.Get the specified role assignment.Get the specified role assignment.Gets a role assignment by ID.getByIdAsync(String roleAssignmentId) Gets a role assignment by ID.com.azure.core.http.rest.Response<RoleAssignmentInner>getByIdWithResponse(String roleAssignmentId, com.azure.core.util.Context context) Gets a role assignment by ID.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>getByIdWithResponseAsync(String roleAssignmentId) Gets a role assignment by ID.com.azure.core.http.rest.Response<RoleAssignmentInner>getWithResponse(String scope, String roleAssignmentName, com.azure.core.util.Context context) Get the specified role assignment.Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>>getWithResponseAsync(String scope, String roleAssignmentName) Get the specified role assignment.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>list()Gets all role assignments for the subscription.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>Gets all role assignments for the subscription.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>Gets all role assignments for the subscription.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>Gets all role assignments for the subscription.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listByResourceGroup(String resourceGroupName) Gets role assignments for a resource group.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listByResourceGroup(String resourceGroupName, String filter, com.azure.core.util.Context context) Gets role assignments for a resource group.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listByResourceGroupAsync(String resourceGroupName) Gets role assignments for a resource group.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listByResourceGroupAsync(String resourceGroupName, String filter) Gets role assignments for a resource group.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName) Gets role assignments for a resource.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter, com.azure.core.util.Context context) Gets role assignments for a resource.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName) Gets role assignments for a resource.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter) Gets role assignments for a resource.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listForScope(String scope) Gets role assignments for a scope.com.azure.core.http.rest.PagedIterable<RoleAssignmentInner>listForScope(String scope, String filter, com.azure.core.util.Context context) Gets role assignments for a scope.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listForScopeAsync(String scope) Gets role assignments for a scope.com.azure.core.http.rest.PagedFlux<RoleAssignmentInner>listForScopeAsync(String scope, String filter) Gets role assignments for a scope.
-
Method Details
-
listForResourceAsync
com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter) Gets role assignments for a resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceProviderNamespace- The namespace of the resource provider.parentResourcePath- The parent resource identity.resourceType- The resource type of the resource.resourceName- The name of the resource to get role assignments for.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.- Returns:
- role assignments for a 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.
-
listForResourceAsync
com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForResourceAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName) Gets role assignments for a resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceProviderNamespace- The namespace of the resource provider.parentResourcePath- The parent resource identity.resourceType- The resource type of the resource.resourceName- The name of the resource to get role assignments for.- Returns:
- role assignments for a 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.
-
listForResource
com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName) Gets role assignments for a resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceProviderNamespace- The namespace of the resource provider.parentResourcePath- The parent resource identity.resourceType- The resource type of the resource.resourceName- The name of the resource to get role assignments for.- Returns:
- role assignments for a 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.
-
listForResource
com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listForResource(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String filter, com.azure.core.util.Context context) Gets role assignments for a resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.resourceProviderNamespace- The namespace of the resource provider.parentResourcePath- The parent resource identity.resourceType- The resource type of the resource.resourceName- The name of the resource to get role assignments for.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.context- The context to associate with this operation.- Returns:
- role assignments for a 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listByResourceGroupAsync(String resourceGroupName, String filter) Gets role assignments for 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.- Returns:
- role assignments 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<RoleAssignmentInner> listByResourceGroupAsync(String resourceGroupName) Gets role assignments for a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<RoleAssignmentInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- role assignments 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<RoleAssignmentInner> listByResourceGroup(String resourceGroupName) Gets role assignments for a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<RoleAssignmentInner>- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- role assignments 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<RoleAssignmentInner> listByResourceGroup(String resourceGroupName, String filter, com.azure.core.util.Context context) Gets role assignments for 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.context- The context to associate with this operation.- Returns:
- role assignments 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> deleteWithResponseAsync(String scope, String roleAssignmentName) Deletes a role assignment.- Parameters:
scope- The scope of the role assignment to delete.roleAssignmentName- The name of the role assignment to delete.- 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
Deletes a role assignment.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<RoleAssignmentInner>- Parameters:
scope- The scope of the role assignment to delete.roleAssignmentName- The name of the role assignment to delete.- 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.
-
delete
Deletes a role assignment.- Parameters:
scope- The scope of the role assignment to delete.roleAssignmentName- The name of the role assignment to delete.- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> deleteWithResponse(String scope, String roleAssignmentName, com.azure.core.util.Context context) Deletes a role assignment.- Parameters:
scope- The scope of the role assignment to delete.roleAssignmentName- The name of the role assignment to delete.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.
-
createWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> createWithResponseAsync(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Creates a role assignment.- Parameters:
scope- The scope of the role assignment to create. The scope can be any REST resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.roleAssignmentName- A GUID for the role assignment to create. The name must be unique and different for each role assignment.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) Creates a role assignment.- Parameters:
scope- The scope of the role assignment to create. The scope can be any REST resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.roleAssignmentName- A GUID for the role assignment to create. The name must be unique and different for each role assignment.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.
-
create
RoleAssignmentInner create(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters) Creates a role assignment.- Parameters:
scope- The scope of the role assignment to create. The scope can be any REST resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.roleAssignmentName- A GUID for the role assignment to create. The name must be unique and different for each role assignment.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.
-
createWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> createWithResponse(String scope, String roleAssignmentName, RoleAssignmentCreateParameters parameters, com.azure.core.util.Context context) Creates a role assignment.- Parameters:
scope- The scope of the role assignment to create. The scope can be any REST resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.roleAssignmentName- A GUID for the role assignment to create. The name must be unique and different for each role assignment.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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> getWithResponseAsync(String scope, String roleAssignmentName) Get the specified role assignment.- Parameters:
scope- The scope of the role assignment.roleAssignmentName- The name of the role assignment to get.- Returns:
- the specified role assignment 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 the specified role assignment.- Parameters:
scope- The scope of the role assignment.roleAssignmentName- The name of the role assignment to get.- Returns:
- the specified role assignment 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.
-
get
Get the specified role assignment.- Parameters:
scope- The scope of the role assignment.roleAssignmentName- The name of the role assignment to get.- Returns:
- the specified role assignment.
- 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, com.azure.core.util.Context context) Get the specified role assignment.- Parameters:
scope- The scope of the role assignment.roleAssignmentName- The name of the role assignment to get.context- The context to associate with this operation.- Returns:
- the specified role assignment 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.
-
deleteByIdWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> deleteByIdWithResponseAsync(String roleAssignmentId) Deletes a role assignment.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.- 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
Deletes a role assignment.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.- 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.
-
deleteById
Deletes a role assignment.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.- 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> deleteByIdWithResponse(String roleAssignmentId, com.azure.core.util.Context context) Deletes a role assignment.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.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.
-
createByIdWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> createByIdWithResponseAsync(String roleAssignmentId, RoleAssignmentCreateParameters parameters) Creates a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.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) Creates a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.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.
-
createById
Creates a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.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.
-
createByIdWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> createByIdWithResponse(String roleAssignmentId, RoleAssignmentCreateParameters parameters, com.azure.core.util.Context context) Creates a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.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.
-
getByIdWithResponseAsync
Mono<com.azure.core.http.rest.Response<RoleAssignmentInner>> getByIdWithResponseAsync(String roleAssignmentId) Gets a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.- 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
Gets a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.- 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.
-
getById
Gets a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<RoleAssignmentInner> getByIdWithResponse(String roleAssignmentId, com.azure.core.util.Context context) Gets a role assignment by ID.- Parameters:
roleAssignmentId- The fully qualified ID of the role assignment, including the scope, resource name and resource type. Use the format, /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/{subId}/resourcegroups/{rgname}//providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}.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.
-
listAsync
Gets all role assignments for the 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.- Returns:
- all role assignments for the 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<RoleAssignmentInner> listAsync()Gets all role assignments for the subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<RoleAssignmentInner>- Returns:
- all role assignments for the 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<RoleAssignmentInner> list()Gets all role assignments for the subscription.- Specified by:
listin interfaceInnerSupportsListing<RoleAssignmentInner>- Returns:
- all role assignments for the 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<RoleAssignmentInner> list(String filter, com.azure.core.util.Context context) Gets all role assignments for the 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.context- The context to associate with this operation.- Returns:
- all role assignments for the 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.
-
listForScopeAsync
com.azure.core.http.rest.PagedFlux<RoleAssignmentInner> listForScopeAsync(String scope, String filter) Gets role assignments for a scope.- Parameters:
scope- The scope of the role assignments.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.- Returns:
- role assignments 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.
-
listForScopeAsync
Gets role assignments for a scope.- Parameters:
scope- The scope of the role assignments.- Returns:
- role assignments 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.
-
listForScope
Gets role assignments for a scope.- Parameters:
scope- The scope of the role assignments.- Returns:
- role assignments 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.
-
listForScope
com.azure.core.http.rest.PagedIterable<RoleAssignmentInner> listForScope(String scope, String filter, com.azure.core.util.Context context) Gets role assignments for a scope.- Parameters:
scope- The scope of the role assignments.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.context- The context to associate with this operation.- Returns:
- role assignments 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.
-