Skip to main content

Get Policy

Used to get details of a single policy with id.

External Documentation

To learn more, visit the Opsgenie documentation.

Parameters

ParameterDescription
Policy IDId of the requested policy.
Team IDThe identifier of the team that this policy belongs. Value should be null for global policies.

Example Output

{
"data": {
"enabled": false,
"filter": {
"type": "string"
},
"id": "string",
"name": "Name of the policy",
"policyDescription": "Description of the policy",
"teamId": "TeamId of the policy",
"timeRestrictions": {
"type": "string"
},
"type": "Type of the policy"
},
"requestId": "string",
"took": 0
}

Automation Library Example

Get Policy with Opsgenie and Send Results Via Email

Automation LibraryPreview this Automation on desktop