Compartir a través de


PolicyInsightsExtensions.GetPolicyEventQueryResultsAsync Método

Definición

Sobrecargas

GetPolicyEventQueryResultsAsync(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
GetPolicyEventQueryResultsAsync(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 operación
GetPolicyEventQueryResultsAsync(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
GetPolicyEventQueryResultsAsync(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
GetPolicyEventQueryResultsAsync(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 operación
GetPolicyEventQueryResultsAsync(ManagementGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

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

  • Ruta de acceso de solicitud/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForManagementGroup de operación
GetPolicyEventQueryResultsAsync(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 operación

GetPolicyEventQueryResultsAsync(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.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResultsAsync (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 GetPolicyEventQueryResultsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResultsAsync (subscriptionResource As SubscriptionResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(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 "default".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

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

Se aplica a

GetPolicyEventQueryResultsAsync(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 operación
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResultsAsync (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 GetPolicyEventQueryResultsAsync : Azure.ResourceManager.Resources.SubscriptionPolicySetDefinitionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResultsAsync (subscriptionPolicySetDefinitionResource As SubscriptionPolicySetDefinitionResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(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 "default".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

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

Se aplica a

GetPolicyEventQueryResultsAsync(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.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResultsAsync (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 GetPolicyEventQueryResultsAsync : Azure.ResourceManager.Resources.SubscriptionPolicyDefinitionResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResultsAsync (subscriptionPolicyDefinitionResource As SubscriptionPolicyDefinitionResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(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 "default".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

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

Se aplica a

GetPolicyEventQueryResultsAsync(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.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResultsAsync (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 GetPolicyEventQueryResultsAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResultsAsync (client As ArmClient, scope As ResourceIdentifier, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PolicyEvent)

Parámetros

client
ArmClient

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

scope
ResourceIdentifier

Ámbito en el que se aplicará el recurso.

policyEventType
PolicyEventType

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

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Se aplica a

GetPolicyEventQueryResultsAsync(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 operación
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResultsAsync (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 GetPolicyEventQueryResultsAsync : Azure.ResourceManager.Resources.PolicyAssignmentResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResultsAsync (policyAssignmentResource As PolicyAssignmentResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(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 "default".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

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

Se aplica a

GetPolicyEventQueryResultsAsync(ManagementGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

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

  • Ruta de acceso de solicitud/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • IdPolicyEvents_ListQueryResultsForManagementGroup de operación
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResultsAsync (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 GetPolicyEventQueryResultsAsync : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResultsAsync (managementGroupResource As ManagementGroupResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(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 "default".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

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

Se aplica a

GetPolicyEventQueryResultsAsync(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 operación
public static Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent> GetPolicyEventQueryResultsAsync (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 GetPolicyEventQueryResultsAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.PolicyInsights.Models.PolicyEventType * Azure.ResourceManager.PolicyInsights.Models.PolicyQuerySettings * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PolicyInsights.Models.PolicyEvent>
<Extension()>
Public Function GetPolicyEventQueryResultsAsync (resourceGroupResource As ResourceGroupResource, policyEventType As PolicyEventType, Optional policyQuerySettings As PolicyQuerySettings = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(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 "default".

policyQuerySettings
PolicyQuerySettings

Grupo de parámetros.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

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

Se aplica a