ApiManagementServiceResource.GetAllPoliciesByServiceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Status of all policies of API Management services.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/allPolicies
- Operation Id: AllPolicies_ListByService
- Default Api Version: 2024-05-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.AllPoliciesContract> GetAllPoliciesByServiceAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllPoliciesByServiceAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.AllPoliciesContract>
override this.GetAllPoliciesByServiceAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.AllPoliciesContract>
Public Overridable Function GetAllPoliciesByServiceAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AllPoliciesContract)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of AllPoliciesContract that may take multiple service requests to iterate over.