PolicyInsightsExtensions.GetQueryResultsForResourceGroupPolicyTrackedResources Method

Definition

Queries policy tracked resources under the resource group. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults Operation Id: PolicyTrackedResources_ListQueryResultsForResourceGroup

public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResource> GetQueryResultsForResourceGroupPolicyTrackedResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourcesResourceType policyTrackedResourcesResource, Azure.ResourceManager.PolicyInsights.Models.QueryOptions queryOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member GetQueryResultsForResourceGroupPolicyTrackedResources : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourcesResourceType * Azure.ResourceManager.PolicyInsights.Models.QueryOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResource>
<Extension()>
Public Function GetQueryResultsForResourceGroupPolicyTrackedResources (resourceGroupResource As ResourceGroupResource, policyTrackedResourcesResource As PolicyTrackedResourcesResourceType, Optional queryOptions As QueryOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyTrackedResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

policyTrackedResourcesResource
PolicyTrackedResourcesResourceType

The name of the virtual resource under PolicyTrackedResources resource type; only "default" is allowed.

queryOptions
QueryOptions

Parameter group.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Pageable<PolicyTrackedResource>

A collection of PolicyTrackedResource that may take multiple service requests to iterate over.

Applies to