PolicySetDefinitionsOperationsExtensions.ListAsync(IPolicySetDefinitionsOperations, CancellationToken) PolicySetDefinitionsOperationsExtensions.ListAsync(IPolicySetDefinitionsOperations, CancellationToken) Method

Definition

Retrieves the policy set definitions for a subscription.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.PolicySetDefinition>> ListAsync (this Microsoft.Azure.Management.ResourceManager.IPolicySetDefinitionsOperations operations, System.Threading.CancellationToken cancellationToken = null);
static member ListAsync : Microsoft.Azure.Management.ResourceManager.IPolicySetDefinitionsOperations * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.PolicySetDefinition>>

Parameters

operations
IPolicySetDefinitionsOperations IPolicySetDefinitionsOperations

The operations group for this extension method.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Task<Microsoft.Rest.Azure.IPage<PolicySetDefinition>>

Remarks

This operation retrieves a list of all the policy set definitions in the

given subscription.

Applies to