Partilhar via


PolicyInsightsExtensions.GetPolicyStateQueryResultsAsync Método

Definição

Sobrecargas

GetPolicyStateQueryResultsAsync(ManagementGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para os recursos no grupo de gerenciamento.

  • Caminho/provedores de solicitação/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForManagementGroup de operação
GetPolicyStateQueryResultsAsync(PolicyAssignmentResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para o nível de assinatura ou atribuição de política de nível de grupo de recursos.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForResourceGroupLevelPolicyAssignment de operação
GetPolicyStateQueryResultsAsync(ResourceGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para os recursos no grupo de recursos.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForResourceGroup de operação
GetPolicyStateQueryResultsAsync(SubscriptionPolicyDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para a definição de política de nível de assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForPolicyDefinition de operação
GetPolicyStateQueryResultsAsync(SubscriptionPolicySetDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para a definição do conjunto de políticas de nível de assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForPolicySetDefinition de operação
GetPolicyStateQueryResultsAsync(SubscriptionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para os recursos na assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForSubscription de operação
GetPolicyStateQueryResultsAsync(ArmClient, ResourceIdentifier, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para o recurso.

  • Caminho da Solicitação/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operação IdPolicyStates_ListQueryResultsForResource

GetPolicyStateQueryResultsAsync(ManagementGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para os recursos no grupo de gerenciamento.

  • Caminho/provedores de solicitação/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForManagementGroup de operação
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResultsAsync (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.ResourceManager.PolicyInsights.Models.PolicyStateType policyStateType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyStateQueryResultsAsync : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResultsAsync (managementGroupResource As ManagementGroupResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyState)

Parâmetros

managementGroupResource
ManagementGroupResource

A ManagementGroupResource instância na qual o método será executado.

policyStateType
PolicyStateType

O recurso virtual em Tipo de recurso PolicyStates. Em um determinado intervalo de tempo, 'latest' representa os estados de política mais recentes, enquanto 'default' representa todos os estados de política.

policyQuerySettings
PolicyQuerySettings

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResultsAsync(PolicyAssignmentResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para o nível de assinatura ou atribuição de política de nível de grupo de recursos.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForResourceGroupLevelPolicyAssignment de operação
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResultsAsync (this Azure.ResourceManager.Resources.PolicyAssignmentResource policyAssignmentResource, Azure.ResourceManager.PolicyInsights.Models.PolicyStateType policyStateType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyStateQueryResultsAsync : Azure.ResourceManager.Resources.PolicyAssignmentResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResultsAsync (policyAssignmentResource As PolicyAssignmentResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyState)

Parâmetros

policyAssignmentResource
PolicyAssignmentResource

A PolicyAssignmentResource instância na qual o método será executado.

policyStateType
PolicyStateType

O recurso virtual em Tipo de recurso PolicyStates. Em um determinado intervalo de tempo, 'latest' representa os estados de política mais recentes, enquanto 'default' representa todos os estados de política.

policyQuerySettings
PolicyQuerySettings

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResultsAsync(ResourceGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para os recursos no grupo de recursos.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForResourceGroup de operação
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResultsAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.PolicyInsights.Models.PolicyStateType policyStateType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyStateQueryResultsAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResultsAsync (resourceGroupResource As ResourceGroupResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyState)

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

policyStateType
PolicyStateType

O recurso virtual em Tipo de recurso PolicyStates. Em um determinado intervalo de tempo, 'latest' representa os estados de política mais recentes, enquanto 'default' representa todos os estados de política.

policyQuerySettings
PolicyQuerySettings

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResultsAsync(SubscriptionPolicyDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para a definição de política de nível de assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForPolicyDefinition de operação
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResultsAsync (this Azure.ResourceManager.Resources.SubscriptionPolicyDefinitionResource subscriptionPolicyDefinitionResource, Azure.ResourceManager.PolicyInsights.Models.PolicyStateType policyStateType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyStateQueryResultsAsync : Azure.ResourceManager.Resources.SubscriptionPolicyDefinitionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResultsAsync (subscriptionPolicyDefinitionResource As SubscriptionPolicyDefinitionResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyState)

Parâmetros

subscriptionPolicyDefinitionResource
SubscriptionPolicyDefinitionResource

A SubscriptionPolicyDefinitionResource instância na qual o método será executado.

policyStateType
PolicyStateType

O recurso virtual em Tipo de recurso PolicyStates. Em um determinado intervalo de tempo, 'latest' representa os estados de política mais recentes, enquanto 'default' representa todos os estados de política.

policyQuerySettings
PolicyQuerySettings

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResultsAsync(SubscriptionPolicySetDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para a definição do conjunto de políticas de nível de assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForPolicySetDefinition de operação
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResultsAsync (this Azure.ResourceManager.Resources.SubscriptionPolicySetDefinitionResource subscriptionPolicySetDefinitionResource, Azure.ResourceManager.PolicyInsights.Models.PolicyStateType policyStateType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyStateQueryResultsAsync : Azure.ResourceManager.Resources.SubscriptionPolicySetDefinitionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResultsAsync (subscriptionPolicySetDefinitionResource As SubscriptionPolicySetDefinitionResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyState)

Parâmetros

subscriptionPolicySetDefinitionResource
SubscriptionPolicySetDefinitionResource

A SubscriptionPolicySetDefinitionResource instância na qual o método será executado.

policyStateType
PolicyStateType

O recurso virtual em Tipo de recurso PolicyStates. Em um determinado intervalo de tempo, 'latest' representa os estados de política mais recentes, enquanto 'default' representa todos os estados de política.

policyQuerySettings
PolicyQuerySettings

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResultsAsync(SubscriptionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Consulta estados de política para os recursos na assinatura.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • IdPolicyStates_ListQueryResultsForSubscription de operação
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResultsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PolicyInsights.Models.PolicyStateType policyStateType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyStateQueryResultsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResultsAsync (subscriptionResource As SubscriptionResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyState)

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância na qual o método será executado.

policyStateType
PolicyStateType

O recurso virtual em Tipo de recurso PolicyStates. Em um determinado intervalo de tempo, 'latest' representa os estados de política mais recentes, enquanto 'default' representa todos os estados de política.

policyQuerySettings
PolicyQuerySettings

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Uma coleção assíncrona de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

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

Consulta os estados de política para o recurso.

  • Caminho da Solicitação/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operação IdPolicyStates_ListQueryResultsForResource
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResultsAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.PolicyInsights.Models.PolicyStateType policyStateType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyStateQueryResultsAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResultsAsync (client As ArmClient, scope As ResourceIdentifier, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyState)

Parâmetros

client
ArmClient

A ArmClient instância na qual o método será executado.

scope
ResourceIdentifier

O escopo ao qual o recurso será aplicado.

policyStateType
PolicyStateType

O recurso virtual em Tipo de recurso PolicyStates. Em um determinado intervalo de tempo, 'latest' representa os estados de política mais recentes, enquanto 'default' representa todos os estados de política.

policyQuerySettings
PolicyQuerySettings

Grupo de parâmetros.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a