Megosztás a következőn keresztül:


ApiManagementServiceResource.GetRegions(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.Pageable<Azure.ResourceManager.ApiManagement.Models.RegionContract> GetRegions (System.Threading.CancellationToken cancellationToken = default);
abstract member GetRegions : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiManagement.Models.RegionContract>
override this.GetRegions : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiManagement.Models.RegionContract>
Public Overridable Function GetRegions (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RegionContract)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to