v5

latestSwagger 2.0raw.githubusercontent.com2022-02-229430.1 KB

Queries policy events for the resources under the management group.

post/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults

Path parameters

policyEventsResource'default' required

The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.

managementGroupsNamespace'Microsoft.Management' required

The namespace for Microsoft Management RP; only "Microsoft.Management" is allowed.

managementGroupNamestring required

Management group name.

Query parameters

api-versionstring required

API version to use with the client requests.

$topinteger

Maximum number of records to return.

$orderbystring

Ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".

$selectstring

Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".

$fromstring date-time

ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).

$tostring date-time

ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.

$filterstring

OData filter expression.

$applystring

OData apply expression for aggregations.

Response

Query results.

@odata.contextstring

OData context string; used by OData clients to resolve type information based on metadata.

@odata.countinteger

OData entity count; represents the number of policy event records returned.

All 9 operations