共用方式為


PolicySetDefinitionsOperationsExtensions.ListByManagementGroupAsync 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
String

The ID of the management group.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

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

Applies to