PolicyDefinitionsOperationsExtensions.ListByManagementGroup メソッド

定義

管理グループ内のポリシー定義を取得する

public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.PolicyDefinition> ListByManagementGroup (this Microsoft.Azure.Management.ResourceManager.IPolicyDefinitionsOperations operations, string managementGroupId, string filter = default, int? top = default);
static member ListByManagementGroup : Microsoft.Azure.Management.ResourceManager.IPolicyDefinitionsOperations * string * string * Nullable<int> -> Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.PolicyDefinition>
<Extension()>
Public Function ListByManagementGroup (operations As IPolicyDefinitionsOperations, managementGroupId As String, Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing) As IPage(Of PolicyDefinition)

パラメーター

operations
IPolicyDefinitionsOperations

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

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 レコードが返されます。

戻り値

注釈

この操作により、指定された管理グループ内のすべてのポリシー定義の一覧が取得され、オプションの指定された$filterに一致します。 $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} と一致するすべてのポリシー定義のみが含まれます。

適用対象