Partager via


PolicyInsightsExtensions.GetPolicyTrackedResourceQueryResultsAsync Méthode

Définition

Surcharges

GetPolicyTrackedResourceQueryResultsAsync(SubscriptionResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Interroge les ressources suivies par la stratégie sous l’abonnement.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • IdPolicyTrackedResources_ListQueryResultsForSubscription d’opération
GetPolicyTrackedResourceQueryResultsAsync(ArmClient, ResourceIdentifier, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Interroge les ressources suivies par la stratégie sous la ressource.

  • Chemin de la requête/{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • IdPolicyTrackedResources_ListQueryResultsForResource d’opération
GetPolicyTrackedResourceQueryResultsAsync(ManagementGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Interroge les ressources suivies par la stratégie sous le groupe d’administration.

  • Chemin de la requête/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • IdPolicyTrackedResources_ListQueryResultsForManagementGroup d’opération
GetPolicyTrackedResourceQueryResultsAsync(ResourceGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Interroge les ressources suivies par la stratégie sous le groupe de ressources.

  • Chemin de requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResources}/queryResults
  • IdPolicyTrackedResources_ListQueryResultsForResourceGroup d’opération

GetPolicyTrackedResourceQueryResultsAsync(SubscriptionResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Interroge les ressources suivies par la stratégie sous l’abonnement.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • IdPolicyTrackedResources_ListQueryResultsForSubscription d’opération
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord> GetPolicyTrackedResourceQueryResultsAsync (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 GetPolicyTrackedResourceQueryResultsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord>
<Extension()>
Public Function GetPolicyTrackedResourceQueryResultsAsync (subscriptionResource As SubscriptionResource, policyTrackedResourceType As PolicyTrackedResourceType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyTrackedResourceRecord)

Paramètres

subscriptionResource
SubscriptionResource

Instance SubscriptionResource sur laquelle la méthode s’exécute.

policyTrackedResourceType
PolicyTrackedResourceType

Nom de la ressource virtuelle sous PolicyTrackedResources, type de ressource ; seule la valeur par défaut est autorisée.

policyQuerySettings
PolicyQuerySettings

Groupe de paramètres.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Collection asynchrone de qui peut nécessiter plusieurs demandes de PolicyTrackedResourceRecord service pour itérer.

S’applique à

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

Interroge les ressources suivies par la stratégie sous la ressource.

  • Chemin de la requête/{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • IdPolicyTrackedResources_ListQueryResultsForResource d’opération
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord> GetPolicyTrackedResourceQueryResultsAsync (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 GetPolicyTrackedResourceQueryResultsAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord>
<Extension()>
Public Function GetPolicyTrackedResourceQueryResultsAsync (client As ArmClient, scope As ResourceIdentifier, policyTrackedResourceType As PolicyTrackedResourceType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyTrackedResourceRecord)

Paramètres

client
ArmClient

Instance ArmClient sur laquelle la méthode s’exécute.

scope
ResourceIdentifier

Étendue à laquelle la ressource s’appliquera.

policyTrackedResourceType
PolicyTrackedResourceType

Nom de la ressource virtuelle sous PolicyTrackedResources, type de ressource ; seule la valeur par défaut est autorisée.

policyQuerySettings
PolicyQuerySettings

Groupe de paramètres.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

S’applique à

GetPolicyTrackedResourceQueryResultsAsync(ManagementGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Interroge les ressources suivies par la stratégie sous le groupe d’administration.

  • Chemin de la requête/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • IdPolicyTrackedResources_ListQueryResultsForManagementGroup d’opération
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord> GetPolicyTrackedResourceQueryResultsAsync (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 GetPolicyTrackedResourceQueryResultsAsync : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord>
<Extension()>
Public Function GetPolicyTrackedResourceQueryResultsAsync (managementGroupResource As ManagementGroupResource, policyTrackedResourceType As PolicyTrackedResourceType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyTrackedResourceRecord)

Paramètres

managementGroupResource
ManagementGroupResource

Instance ManagementGroupResource sur laquelle la méthode s’exécute.

policyTrackedResourceType
PolicyTrackedResourceType

Nom de la ressource virtuelle sous PolicyTrackedResources, type de ressource ; seule la valeur par défaut est autorisée.

policyQuerySettings
PolicyQuerySettings

Groupe de paramètres.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Collection asynchrone de qui peut nécessiter plusieurs demandes de PolicyTrackedResourceRecord service pour itérer.

S’applique à

GetPolicyTrackedResourceQueryResultsAsync(ResourceGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Interroge les ressources suivies par la stratégie sous le groupe de ressources.

  • Chemin de requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResources}/queryResults
  • IdPolicyTrackedResources_ListQueryResultsForResourceGroup d’opération
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord> GetPolicyTrackedResourceQueryResultsAsync (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 GetPolicyTrackedResourceQueryResultsAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyTrackedResourceRecord>
<Extension()>
Public Function GetPolicyTrackedResourceQueryResultsAsync (resourceGroupResource As ResourceGroupResource, policyTrackedResourceType As PolicyTrackedResourceType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyTrackedResourceRecord)

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

policyTrackedResourceType
PolicyTrackedResourceType

Nom de la ressource virtuelle sous PolicyTrackedResources, type de ressource ; seule la valeur par défaut est autorisée.

policyQuerySettings
PolicyQuerySettings

Groupe de paramètres.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Collection asynchrone de qui peut nécessiter plusieurs demandes de PolicyTrackedResourceRecord service pour itérer.

S’applique à