PolicyDefinitionsOperationsExtensions.ListByManagementGroupAsync Method

Definition

Retrieve policy definitions in a management group

C#
public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Fluent.Models.PolicyDefinitionInner>> ListByManagementGroupAsync(this Microsoft.Azure.Management.ResourceManager.Fluent.IPolicyDefinitionsOperations operations, string managementGroupId, System.Threading.CancellationToken cancellationToken = default);

Parameters

operations
IPolicyDefinitionsOperations

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 policy definitions in a given management group.

Applies to

Продукт Версії
Azure SDK for .NET Legacy