Compartir a través de


PolicyInsightsExtensions.GetPolicyEventQueryResults Método

Definición

Sobrecargas

GetPolicyEventQueryResults(SubscriptionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para los recursos de la suscripción.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForSubscription de operación
GetPolicyEventQueryResults(SubscriptionPolicySetDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para la definición del conjunto de directivas de nivel de suscripción.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForPolicySetDefinition de operaciones
GetPolicyEventQueryResults(SubscriptionPolicyDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para la definición de directiva de nivel de suscripción.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForPolicyDefinition de operaciones
GetPolicyEventQueryResults(ArmClient, ResourceIdentifier, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para el recurso.

  • Ruta de acceso de solicitud/{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForResource de operación
GetPolicyEventQueryResults(PolicyAssignmentResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para la asignación de directiva de nivel de suscripción o de grupo de recursos.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForResourceGroupLevelPolicyAssignment de operaciones
GetPolicyEventQueryResults(ManagementGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para los recursos en el grupo de administración.

  • Ruta de acceso de solicitud/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForManagementGroup de operaciones
GetPolicyEventQueryResults(ResourceGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para los recursos del grupo de recursos.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForResourceGroup de operaciones

GetPolicyEventQueryResults(SubscriptionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para los recursos de la suscripción.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForSubscription de operación
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResults (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.PolicyInsights.Models.PolicyEventType policyEventType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyEventQueryResults : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResults (subscriptionResource As SubscriptionResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyEvent)

Parámetros

subscriptionResource
SubscriptionResource

Instancia SubscriptionResource en la que se ejecutará el método.

policyEventType
PolicyEventType

Nombre del recurso virtual en El tipo de recurso PolicyEvents; solo se permite "valor predeterminado".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Colección de PolicyEvent que puede tomar varias solicitudes de servicio para iterar.

Se aplica a

GetPolicyEventQueryResults(SubscriptionPolicySetDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para la definición del conjunto de directivas de nivel de suscripción.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForPolicySetDefinition de operaciones
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResults (this Azure.ResourceManager.Resources.SubscriptionPolicySetDefinitionResource subscriptionPolicySetDefinitionResource, Azure.ResourceManager.PolicyInsights.Models.PolicyEventType policyEventType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyEventQueryResults : Azure.ResourceManager.Resources.SubscriptionPolicySetDefinitionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResults (subscriptionPolicySetDefinitionResource As SubscriptionPolicySetDefinitionResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyEvent)

Parámetros

subscriptionPolicySetDefinitionResource
SubscriptionPolicySetDefinitionResource

Instancia SubscriptionPolicySetDefinitionResource en la que se ejecutará el método.

policyEventType
PolicyEventType

Nombre del recurso virtual en El tipo de recurso PolicyEvents; solo se permite "valor predeterminado".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Colección de PolicyEvent que puede tomar varias solicitudes de servicio para iterar.

Se aplica a

GetPolicyEventQueryResults(SubscriptionPolicyDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para la definición de directiva de nivel de suscripción.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForPolicyDefinition de operaciones
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResults (this Azure.ResourceManager.Resources.SubscriptionPolicyDefinitionResource subscriptionPolicyDefinitionResource, Azure.ResourceManager.PolicyInsights.Models.PolicyEventType policyEventType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyEventQueryResults : Azure.ResourceManager.Resources.SubscriptionPolicyDefinitionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResults (subscriptionPolicyDefinitionResource As SubscriptionPolicyDefinitionResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyEvent)

Parámetros

subscriptionPolicyDefinitionResource
SubscriptionPolicyDefinitionResource

Instancia SubscriptionPolicyDefinitionResource en la que se ejecutará el método.

policyEventType
PolicyEventType

Nombre del recurso virtual en El tipo de recurso PolicyEvents; solo se permite "valor predeterminado".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Colección de PolicyEvent que puede tomar varias solicitudes de servicio para iterar.

Se aplica a

GetPolicyEventQueryResults(ArmClient, ResourceIdentifier, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para el recurso.

  • Ruta de acceso de solicitud/{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForResource de operación
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResults (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.PolicyInsights.Models.PolicyEventType policyEventType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyEventQueryResults : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResults (client As ArmClient, scope As ResourceIdentifier, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyEvent)

Parámetros

client
ArmClient

Instancia ArmClient en la que se ejecutará el método.

scope
ResourceIdentifier

Ámbito al que se aplicará el recurso.

policyEventType
PolicyEventType

Nombre del recurso virtual en El tipo de recurso PolicyEvents; solo se permite "valor predeterminado".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Se aplica a

GetPolicyEventQueryResults(PolicyAssignmentResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para la asignación de directiva de nivel de suscripción o de grupo de recursos.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForResourceGroupLevelPolicyAssignment de operaciones
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResults (this Azure.ResourceManager.Resources.PolicyAssignmentResource policyAssignmentResource, Azure.ResourceManager.PolicyInsights.Models.PolicyEventType policyEventType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyEventQueryResults : Azure.ResourceManager.Resources.PolicyAssignmentResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResults (policyAssignmentResource As PolicyAssignmentResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyEvent)

Parámetros

policyAssignmentResource
PolicyAssignmentResource

Instancia PolicyAssignmentResource en la que se ejecutará el método.

policyEventType
PolicyEventType

Nombre del recurso virtual en El tipo de recurso PolicyEvents; solo se permite "valor predeterminado".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Colección de PolicyEvent que puede tomar varias solicitudes de servicio para iterar.

Se aplica a

GetPolicyEventQueryResults(ManagementGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para los recursos en el grupo de administración.

  • Ruta de acceso de solicitud/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForManagementGroup de operaciones
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResults (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.ResourceManager.PolicyInsights.Models.PolicyEventType policyEventType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyEventQueryResults : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResults (managementGroupResource As ManagementGroupResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyEvent)

Parámetros

managementGroupResource
ManagementGroupResource

Instancia ManagementGroupResource en la que se ejecutará el método.

policyEventType
PolicyEventType

Nombre del recurso virtual en El tipo de recurso PolicyEvents; solo se permite "valor predeterminado".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Colección de PolicyEvent que puede tomar varias solicitudes de servicio para iterar.

Se aplica a

GetPolicyEventQueryResults(ResourceGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Consulta eventos de directiva para los recursos del grupo de recursos.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForResourceGroup de operaciones
public static Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResults (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.PolicyInsights.Models.PolicyEventType policyEventType, Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings policyQuerySettings = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPolicyEventQueryResults : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResults (resourceGroupResource As ResourceGroupResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicyEvent)

Parámetros

resourceGroupResource
ResourceGroupResource

Instancia ResourceGroupResource en la que se ejecutará el método.

policyEventType
PolicyEventType

Nombre del recurso virtual en El tipo de recurso PolicyEvents; solo se permite "valor predeterminado".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Colección de PolicyEvent que puede tomar varias solicitudes de servicio para iterar.

Se aplica a