Udostępnij za pośrednictwem


CosmosDBLocationCollection.GetAllAsync(CancellationToken) Method

Definition

List Cosmos DB locations and their properties

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to