Delen via


ApiManagementServiceResource.GetRegionsAsync(CancellationToken) Method

Definition

Lists all azure regions in which the service exists.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions
  • Operation Id: Region_ListByService
  • Default Api Version: 2023-03-01-preview
public virtual Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.RegionContract> GetRegionsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetRegionsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.RegionContract>
override this.GetRegionsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.RegionContract>
Public Overridable Function GetRegionsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of RegionContract)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to