Share via


MongoDBRoleDefinitionCollection.GetAllAsync(CancellationToken) Method

Definition

Retrieves the list of all Azure Cosmos DB Mongo Role Definitions.

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to