The action identifier is newrelic.alerts.getPolicy.
Retrieves the details of a single alert policy.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Int | Required. The New Relic account that owns the policy. |
|
id | String | Required. The ID of the policy to retrieve. |
|
selectors | List | Optional. JQ selectors to extract values from the response. | |
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Error message on failure. |
data | Map | NerdGraph response. Use |
The following example fetches a policy's current name before deciding whether to update it.
Workflow example |
|---|
|