Create a RoleAssignments.
Reference to the service client.
Creates a role assignment.
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.
The name of the role assignment to create. It can be any valid GUID.
Role assignment properties.
Promise<Models.RoleAssignmentsCreateResponse>
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.
The name of the role assignment to create. It can be any valid GUID.
Role assignment properties.
The callback
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.
The name of the role assignment to create. It can be any valid GUID.
Role assignment properties.
The optional parameters
The callback
Creates a role assignment by ID.
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}.
Role assignment properties.
Promise<Models.RoleAssignmentsCreateByIdResponse>
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}.
Role assignment properties.
The callback
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}.
Role assignment properties.
The optional parameters
The callback
Deletes a role assignment.
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}.
Promise<Models.RoleAssignmentsDeleteByIdResponse>
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}.
The callback
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}.
The optional parameters
The callback
Deletes a role assignment.
The scope of the role assignment to delete.
The name of the role assignment to delete.
Promise<Models.RoleAssignmentsDeleteMethodResponse>
The scope of the role assignment to delete.
The name of the role assignment to delete.
The callback
The scope of the role assignment to delete.
The name of the role assignment to delete.
The optional parameters
The callback
Get the specified role assignment.
The scope of the role assignment.
The name of the role assignment to get.
Promise<Models.RoleAssignmentsGetResponse>
The scope of the role assignment.
The name of the role assignment to get.
The callback
The scope of the role assignment.
The name of the role assignment to get.
The optional parameters
The callback
Gets a role assignment by ID.
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}.
Promise<Models.RoleAssignmentsGetByIdResponse>
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}.
The callback
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}.
The optional parameters
The callback
Gets all role assignments for the subscription.
Promise<Models.RoleAssignmentsListResponse>
The callback
The optional parameters
The callback
Gets role assignments for a resource.
The name of the resource group.
The namespace of the resource provider.
The parent resource identity.
The resource type of the resource.
The name of the resource to get role assignments for.
Promise<Models.RoleAssignmentsListForResourceResponse>
The name of the resource group.
The namespace of the resource provider.
The parent resource identity.
The resource type of the resource.
The name of the resource to get role assignments for.
The callback
The name of the resource group.
The namespace of the resource provider.
The parent resource identity.
The resource type of the resource.
The name of the resource to get role assignments for.
The optional parameters
The callback
Gets role assignments for a resource group.
The name of the resource group.
Promise<Models.RoleAssignmentsListForResourceGroupResponse>
The name of the resource group.
The callback
The name of the resource group.
The optional parameters
The callback
Gets role assignments for a resource group.
The NextLink from the previous successful call to List operation.
Promise<Models.RoleAssignmentsListForResourceGroupNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Gets role assignments for a resource.
The NextLink from the previous successful call to List operation.
Promise<Models.RoleAssignmentsListForResourceNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Gets role assignments for a scope.
The scope of the role assignments.
Promise<Models.RoleAssignmentsListForScopeResponse>
The scope of the role assignments.
The callback
The scope of the role assignments.
The optional parameters
The callback
Gets role assignments for a scope.
The NextLink from the previous successful call to List operation.
Promise<Models.RoleAssignmentsListForScopeNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Gets all role assignments for the subscription.
The NextLink from the previous successful call to List operation.
Promise<Models.RoleAssignmentsListNextResponse>
The NextLink from the previous successful call to List operation.
The callback
The NextLink from the previous successful call to List operation.
The optional parameters
The callback
Generated using TypeDoc
Class representing a RoleAssignments.