CosmosDBSqlContainerCollection.GetAllAsync(CancellationToken) Method

Definition

Lists the SQL container under an existing Azure Cosmos DB database account.

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to