Azure Policyinsights Policyevents
Connector for the azure-policyinsights-policyevents API, generated deterministically from its OpenAPI spec (endpoints, auth, and methods match the spec exactly — nothing is invented).
- Base URL:
https://management.azure.com - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
policyevents_getmetadata— GET /{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata — Gets OData metadata XML document.policyevents_listqueryresultsformanagementgroup— POST /providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults — Queries policy events for the resources under the management group.policyevents_listqueryresultsforsubscription— POST /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults — Queries policy events for the resources under the subscription.policyevents_listqueryresultsforsubscriptionleve— POST /subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults — Queries policy events for the subscription level policy assignment.policyevents_listqueryresultsforpolicydefinition— POST /subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults — Queries policy events for the subscription level policy definition.policyevents_listqueryresultsforpolicysetdefinit— POST /subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults — Queries policy events for the subscription level policy set definition.
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: policyevents_getmetadata
# (attach an 'oauth' credential to the task — no inline secrets)