Partilhar via


PolicyInsightsExtensions.GetPolicyStateQueryResults Método

Definição

Sobrecargas

GetPolicyStateQueryResults(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
GetPolicyStateQueryResults(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
GetPolicyStateQueryResults(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
GetPolicyStateQueryResults(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
GetPolicyStateQueryResults(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
GetPolicyStateQueryResults(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
GetPolicyStateQueryResults(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

GetPolicyStateQueryResults(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.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResults (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 GetPolicyStateQueryResults : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResults (subscriptionResource As SubscriptionResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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 de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResults(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
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResults (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 GetPolicyStateQueryResults : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResults (client As ArmClient, scope As ResourceIdentifier, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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

GetPolicyStateQueryResults(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.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResults (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 GetPolicyStateQueryResults : Azure.ResourceManager.Resources.SubscriptionPolicySetDefinitionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResults (subscriptionPolicySetDefinitionResource As SubscriptionPolicySetDefinitionResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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 de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResults(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.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResults (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 GetPolicyStateQueryResults : Azure.ResourceManager.Resources.SubscriptionPolicyDefinitionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResults (subscriptionPolicyDefinitionResource As SubscriptionPolicyDefinitionResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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 de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResults(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.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResults (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 GetPolicyStateQueryResults : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResults (resourceGroupResource As ResourceGroupResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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 de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResults(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.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResults (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 GetPolicyStateQueryResults : Azure.ResourceManager.Resources.PolicyAssignmentResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResults (policyAssignmentResource As PolicyAssignmentResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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 de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a

GetPolicyStateQueryResults(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.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState> GetPolicyStateQueryResults (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 GetPolicyStateQueryResults : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyStateType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyState>
<Extension()>
Public Function GetPolicyStateQueryResults (managementGroupResource As ManagementGroupResource, policyStateType As PolicyStateType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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 de PolicyState que pode levar várias solicitações de serviço para iterar.

Aplica-se a