CosmosDBSqlRoleAssignmentCollection.GetAllAsync(CancellationToken) Method

Definition

Retrieves the list of all Azure Cosmos DB SQL Role Assignments.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments
  • Operation Id: SqlResources_ListSqlRoleAssignments
  • Default Api Version: 2024-05-15-preview
  • Resource: CosmosDBSqlRoleAssignmentResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.CosmosDB.CosmosDBSqlRoleAssignmentResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CosmosDB.CosmosDBSqlRoleAssignmentResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CosmosDB.CosmosDBSqlRoleAssignmentResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CosmosDBSqlRoleAssignmentResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of CosmosDBSqlRoleAssignmentResource that may take multiple service requests to iterate over.

Applies to