PolicySetDefinitionsOperationsExtensions.ListByManagementGroupAsync(IPolicySetDefinitionsOperations, String, CancellationToken) Method

Definition

Retrieves all policy set definitions in management group.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicySetDefinitionInner>> ListByManagementGroupAsync (this Microsoft.Azure.Management.ResourceManager.Fluent.IPolicySetDefinitionsOperations operations, string managementGroupId, System.Threading.CancellationToken cancellationToken = default);
static member ListByManagementGroupAsync : Microsoft.Azure.Management.ResourceManager.Fluent.IPolicySetDefinitionsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicySetDefinitionInner>>
<Extension()>
Public Function ListByManagementGroupAsync (operations As IPolicySetDefinitionsOperations, managementGroupId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of PolicySetDefinitionInner))

Parameters

operations
IPolicySetDefinitionsOperations

The operations group for this extension method.

managementGroupId
System.String

The ID of the management group.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<IPage<PolicySetDefinitionInner>>

Remarks

This operation retrieves a list of all the a policy set definition in the given management group.

Applies to