你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PolicyInsightsExtensions 类

定义

一个类,用于将扩展方法添加到 Azure.ResourceManager.PolicyInsights。

public static class PolicyInsightsExtensions
type PolicyInsightsExtensions = class
Public Module PolicyInsightsExtensions
继承
PolicyInsightsExtensions

方法

CheckPolicyRestrictions(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

检查Azure Policy将对管理组中的资源施加哪些限制。

  • 请求路径/提供程序/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtManagementGroupScope
CheckPolicyRestrictions(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

检查Azure Policy将对资源组中的资源施加哪些限制。 当将在中创建资源的资源组已知时,请使用此选项。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtResourceGroupScope
CheckPolicyRestrictions(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

检查Azure Policy将对订阅中的资源施加哪些限制。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtSubscriptionScope
CheckPolicyRestrictionsAsync(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

检查Azure Policy将对管理组中的资源施加哪些限制。

  • 请求路径/提供程序/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtManagementGroupScope
CheckPolicyRestrictionsAsync(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

检查Azure Policy将对资源组中的资源施加哪些限制。 当将在中创建资源的资源组已知时,请使用此选项。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtResourceGroupScope
CheckPolicyRestrictionsAsync(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

检查Azure Policy将对订阅中的资源施加哪些限制。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • 操作IdPolicyRestrictions_CheckAtSubscriptionScope
GetAllPolicyMetadata(TenantResource)

获取 TenantResource 中 PolicyMetadataResources 的集合。

GetPolicyAttestation(ArmClient, ResourceIdentifier, String, CancellationToken)

获取资源范围内的现有证明。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • 操作IdAttestations_GetAtResource
GetPolicyAttestationAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

获取资源范围内的现有证明。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • 操作IdAttestations_GetAtResource
GetPolicyAttestationResource(ArmClient, ResourceIdentifier)

获取一个 对象,该 PolicyAttestationResource 对象表示 ,以及可对它执行但没有数据的实例操作。 可以使用 CreateResourceIdentifier(String, String) 从其组件创建 PolicyAttestationResourceResourceIdentifier

GetPolicyAttestations(ArmClient, ResourceIdentifier)

获取 ArmResource 中 PolicyAttestationResources 的集合。

GetPolicyEventQueryResults(ArmClient, ResourceIdentifier, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询资源的策略事件。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForResource
GetPolicyEventQueryResults(ManagementGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询管理组下资源的策略事件。

  • 请求路径/提供程序/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForManagementGroup
GetPolicyEventQueryResults(PolicyAssignmentResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询订阅级别或资源组级别策略分配的策略事件。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForResourceGroupLevelPolicyAssignment
GetPolicyEventQueryResults(ResourceGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询资源组下资源的策略事件。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForResourceGroup
GetPolicyEventQueryResults(SubscriptionPolicyDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询订阅级别策略定义的策略事件。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForPolicyDefinition
GetPolicyEventQueryResults(SubscriptionPolicySetDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询订阅级别策略集定义的策略事件。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForPolicySetDefinition
GetPolicyEventQueryResults(SubscriptionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询订阅下资源的策略事件。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForSubscription
GetPolicyEventQueryResultsAsync(ArmClient, ResourceIdentifier, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询资源的策略事件。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForResource
GetPolicyEventQueryResultsAsync(ManagementGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询管理组下资源的策略事件。

  • 请求路径/提供程序/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForManagementGroup
GetPolicyEventQueryResultsAsync(PolicyAssignmentResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询订阅级别或资源组级别策略分配的策略事件。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForResourceGroupLevelPolicyAssignment
GetPolicyEventQueryResultsAsync(ResourceGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询资源组下资源的策略事件。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForResourceGroup
GetPolicyEventQueryResultsAsync(SubscriptionPolicyDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询订阅级别策略定义的策略事件。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForPolicyDefinition
GetPolicyEventQueryResultsAsync(SubscriptionPolicySetDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询订阅级别策略集定义的策略事件。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForPolicySetDefinition
GetPolicyEventQueryResultsAsync(SubscriptionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

查询订阅下资源的策略事件。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • 操作IdPolicyEvents_ListQueryResultsForSubscription
GetPolicyMetadata(TenantResource, String, CancellationToken)

获取策略元数据资源。

  • 请求路径/提供程序/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • 操作IdPolicyMetadata_GetResource
GetPolicyMetadataAsync(TenantResource, String, CancellationToken)

获取策略元数据资源。

  • 请求路径/提供程序/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • 操作IdPolicyMetadata_GetResource
GetPolicyMetadataResource(ArmClient, ResourceIdentifier)

获取一个 对象,该 PolicyMetadataResource 对象表示 ,以及可对它执行但没有数据的实例操作。 可以使用 CreateResourceIdentifier(String) 从其组件创建 PolicyMetadataResourceResourceIdentifier

GetPolicyRemediation(ArmClient, ResourceIdentifier, String, CancellationToken)

获取资源范围内的现有修正。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}
  • 操作IdRemediations_GetAtResource
GetPolicyRemediationAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

获取资源范围内的现有修正。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}
  • 操作IdRemediations_GetAtResource
GetPolicyRemediationResource(ArmClient, ResourceIdentifier)

获取一个 对象,该 PolicyRemediationResource 对象表示 ,以及可对它执行但没有数据的实例操作。 可以使用 CreateResourceIdentifier(String, String) 从其组件创建 PolicyRemediationResourceResourceIdentifier

GetPolicyRemediations(ArmClient, ResourceIdentifier)

获取 ArmResource 中 PolicyRemediationResources 的集合。

GetPolicyStateQueryResults(ArmClient, ResourceIdentifier, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询资源的策略状态。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForResource
GetPolicyStateQueryResults(ManagementGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询管理组下资源的策略状态。

  • 请求路径/提供程序/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForManagementGroup
GetPolicyStateQueryResults(PolicyAssignmentResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询订阅级别或资源组级别策略分配的策略状态。

  • 请求路径/订阅/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForResourceGroupLevelPolicyAssignment
GetPolicyStateQueryResults(ResourceGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询资源组下资源的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForResourceGroup
GetPolicyStateQueryResults(SubscriptionPolicyDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询订阅级别策略定义的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForPolicyDefinition
GetPolicyStateQueryResults(SubscriptionPolicySetDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询订阅级别策略集定义的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForPolicySetDefinition
GetPolicyStateQueryResults(SubscriptionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询订阅下资源的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForSubscription
GetPolicyStateQueryResultsAsync(ArmClient, ResourceIdentifier, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询资源的策略状态。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForResource
GetPolicyStateQueryResultsAsync(ManagementGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询管理组下资源的策略状态。

  • Request Path/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForManagementGroup
GetPolicyStateQueryResultsAsync(PolicyAssignmentResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询订阅级别或资源组级别策略分配的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForResourceGroupLevelPolicyAssignment
GetPolicyStateQueryResultsAsync(ResourceGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询资源组下资源的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForResourceGroup
GetPolicyStateQueryResultsAsync(SubscriptionPolicyDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询订阅级别策略定义的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForPolicyDefinition
GetPolicyStateQueryResultsAsync(SubscriptionPolicySetDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询订阅级别策略集定义的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForPolicySetDefinition
GetPolicyStateQueryResultsAsync(SubscriptionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

查询订阅下资源的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • 操作IdPolicyStates_ListQueryResultsForSubscription
GetPolicyTrackedResourceQueryResults(ArmClient, ResourceIdentifier, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

在资源下查询策略跟踪的资源。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForResource
GetPolicyTrackedResourceQueryResults(ManagementGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

查询管理组下的策略跟踪资源。

  • 请求路径/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForManagementGroup
GetPolicyTrackedResourceQueryResults(ResourceGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

在资源组下查询策略跟踪的资源。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForResourceGroup
GetPolicyTrackedResourceQueryResults(SubscriptionResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

在订阅下查询策略跟踪的资源。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForSubscription
GetPolicyTrackedResourceQueryResultsAsync(ArmClient, ResourceIdentifier, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

在资源下查询策略跟踪的资源。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForResource
GetPolicyTrackedResourceQueryResultsAsync(ManagementGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

查询管理组下的策略跟踪资源。

  • 请求路径/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForManagementGroup
GetPolicyTrackedResourceQueryResultsAsync(ResourceGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

在资源组下查询策略跟踪的资源。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForResourceGroup
GetPolicyTrackedResourceQueryResultsAsync(SubscriptionResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

在订阅下查询策略跟踪的资源。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForSubscription
SummarizePolicyStates(ArmClient, ResourceIdentifier, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总资源的策略状态。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForResource
SummarizePolicyStates(ManagementGroupResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总管理组下资源的策略状态。

  • 请求路径/提供程序/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForManagementGroup
SummarizePolicyStates(PolicyAssignmentResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总订阅级别或资源组级别策略分配的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForResourceGroupLevelPolicyAssignment
SummarizePolicyStates(ResourceGroupResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总资源组下资源的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForResourceGroup
SummarizePolicyStates(SubscriptionPolicyDefinitionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总订阅级别策略定义的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForPolicyDefinition
SummarizePolicyStates(SubscriptionPolicySetDefinitionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总订阅级别策略集定义的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForPolicySetDefinition
SummarizePolicyStates(SubscriptionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总订阅下资源的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForSubscription
SummarizePolicyStatesAsync(ArmClient, ResourceIdentifier, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总资源的策略状态。

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForResource
SummarizePolicyStatesAsync(ManagementGroupResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总管理组下资源的策略状态。

  • 请求路径/提供程序/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForManagementGroup
SummarizePolicyStatesAsync(PolicyAssignmentResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总订阅级别或资源组级别策略分配的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForResourceGroupLevelPolicyAssignment
SummarizePolicyStatesAsync(ResourceGroupResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总资源组下资源的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForResourceGroup
SummarizePolicyStatesAsync(SubscriptionPolicyDefinitionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总订阅级别策略定义的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForPolicyDefinition
SummarizePolicyStatesAsync(SubscriptionPolicySetDefinitionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总订阅级别策略集定义的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForPolicySetDefinition
SummarizePolicyStatesAsync(SubscriptionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

汇总订阅下资源的策略状态。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • 操作IdPolicyStates_SummarizeForSubscription
TriggerPolicyStateEvaluation(ResourceGroupResource, WaitUntil, CancellationToken)

对资源组下的所有资源触发策略评估扫描。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • 操作IdPolicyStates_TriggerResourceGroupEvaluation
TriggerPolicyStateEvaluation(SubscriptionResource, WaitUntil, CancellationToken)

对订阅下的所有资源触发策略评估扫描

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • 操作IdPolicyStates_TriggerSubscriptionEvaluation
TriggerPolicyStateEvaluationAsync(ResourceGroupResource, WaitUntil, CancellationToken)

对资源组下的所有资源触发策略评估扫描。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • 操作IdPolicyStates_TriggerResourceGroupEvaluation
TriggerPolicyStateEvaluationAsync(SubscriptionResource, WaitUntil, CancellationToken)

对订阅下的所有资源触发策略评估扫描

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • 操作IdPolicyStates_TriggerSubscriptionEvaluation

适用于