다음을 통해 공유


ApiManagementPolicyCollection.GetAllAsync(CancellationToken) Method

Definition

Lists all the Global Policy definitions of the Api Management service.

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to