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

PolicyInsightsExtensions.GetPolicyTrackedResourceQueryResults 方法

定义

重载

GetPolicyTrackedResourceQueryResults(ManagementGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

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

  • 请求路径/提供程序/{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
GetPolicyTrackedResourceQueryResults(ArmClient, ResourceIdentifier, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

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

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForResource

GetPolicyTrackedResourceQueryResults(ManagementGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

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

  • 请求路径/提供程序/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForManagementGroup
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord> GetPolicyTrackedResourceQueryResults (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType policyTrackedResourceType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyTrackedResourceQueryResults : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord>
<Extension()>
Public Function GetPolicyTrackedResourceQueryResults (managementGroupResource As ManagementGroupResource, policyTrackedResourceType As PolicyTrackedResourceType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyTrackedResourceRecord)

参数

managementGroupResource
ManagementGroupResource

方法 ManagementGroupResource 将对其执行的实例。

policyTrackedResourceType
PolicyTrackedResourceType

PolicyTrackedResources 资源类型下的虚拟资源的名称;仅允许使用“default”。

policyQuerySettings
PolicyQuerySettings

参数组。

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 PolicyTrackedResourceRecord 集合。

适用于

GetPolicyTrackedResourceQueryResults(ResourceGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

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

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForResourceGroup
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord> GetPolicyTrackedResourceQueryResults (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType policyTrackedResourceType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyTrackedResourceQueryResults : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord>
<Extension()>
Public Function GetPolicyTrackedResourceQueryResults (resourceGroupResource As ResourceGroupResource, policyTrackedResourceType As PolicyTrackedResourceType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyTrackedResourceRecord)

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

policyTrackedResourceType
PolicyTrackedResourceType

PolicyTrackedResources 资源类型下的虚拟资源的名称;仅允许使用“default”。

policyQuerySettings
PolicyQuerySettings

参数组。

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 PolicyTrackedResourceRecord 集合。

适用于

GetPolicyTrackedResourceQueryResults(SubscriptionResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

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

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForSubscription
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord> GetPolicyTrackedResourceQueryResults (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType policyTrackedResourceType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyTrackedResourceQueryResults : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord>
<Extension()>
Public Function GetPolicyTrackedResourceQueryResults (subscriptionResource As SubscriptionResource, policyTrackedResourceType As PolicyTrackedResourceType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyTrackedResourceRecord)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

policyTrackedResourceType
PolicyTrackedResourceType

PolicyTrackedResources 资源类型下的虚拟资源的名称;仅允许使用“default”。

policyQuerySettings
PolicyQuerySettings

参数组。

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 PolicyTrackedResourceRecord 集合。

适用于

GetPolicyTrackedResourceQueryResults(ArmClient, ResourceIdentifier, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

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

  • 请求路径/{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • 操作IdPolicyTrackedResources_ListQueryResultsForResource
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord> GetPolicyTrackedResourceQueryResults (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType policyTrackedResourceType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyTrackedResourceQueryResults : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord>
<Extension()>
Public Function GetPolicyTrackedResourceQueryResults (client As ArmClient, scope As ResourceIdentifier, policyTrackedResourceType As PolicyTrackedResourceType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyTrackedResourceRecord)

参数

client
ArmClient

方法 ArmClient 将对其执行的实例。

scope
ResourceIdentifier

资源将应用于的范围。

policyTrackedResourceType
PolicyTrackedResourceType

PolicyTrackedResources 资源类型下的虚拟资源的名称;仅允许使用“default”。

policyQuerySettings
PolicyQuerySettings

参数组。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于