PolicySetDefinitionsOperationsExtensions.ListByManagementGroupAsync メソッド

定義

管理グループ内のすべてのポリシー セット定義を取得します。

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

パラメーター

operations
IPolicySetDefinitionsOperations

この拡張メソッドの操作グループ。

managementGroupId
String

管理グループの ID。

filter
String

操作に適用するフィルター。 $filterの有効な値は、'atExactScope()'、'policyType -eq {value}' または 'category eq '{value}' です。 $filterが指定されていない場合、フィルター処理は実行されません。 $filter=atExactScope() が指定されている場合、返されるリストには、指定されたスコープにあるすべてのポリシー セット定義のみが含まれます。 $filter='policyType -eq {value}' が指定されている場合、返されるリストには、型が {value} と一致するすべてのポリシー セット定義のみが含まれます。 使用可能な policyType 値は、NotSpecified、BuiltIn、Custom、Static です。 $filter='category -eq {value}' が指定されている場合、返されるリストには、カテゴリが {value} と一致するすべてのポリシー セット定義のみが含まれます。

top
Nullable<Int32>

返されるレコードの最大数。 $top フィルターが指定されていない場合、500 レコードが返されます。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

この操作により、指定された管理グループ内のすべてのポリシー セット定義の一覧が取得され、オプションの指定された$filterに一致します。 $filterの有効な値は、'atExactScope()'、'policyType -eq {value}' または 'category eq '{value}' です。 $filterが指定されていない場合、フィルター処理されていないリストには、直接適用されるものや、特定の管理グループを含む管理グループから適用されるものも含め、管理グループに関連付けられているすべてのポリシー セット定義が含まれます。 $filter=atExactScope() が指定されている場合、返されるリストには、指定された管理グループにあるすべてのポリシー セット定義のみが含まれます。 $filter='policyType -eq {value}' が指定されている場合、返されるリストには、型が {value} と一致するすべてのポリシー セット定義のみが含まれます。 使用可能な policyType 値は、NotSpecified、BuiltIn、Custom です。 $filter='category -eq {value}' が指定されている場合、返されるリストには、カテゴリが {value} と一致するすべてのポリシー セット定義のみが含まれます。

適用対象