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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to