The action identifier is newrelic.alerts.searchPolicies.
Searches alert policies with optional filtering by ID or name. Supports cursor-based pagination. Omitting all filters returns all policies in the account.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Int | Required. The New Relic account to search policies in. |
|
ids | List | Optional. Filter to policies with these IDs. |
|
name | String | Optional. Filter to policies with this exact name. |
|
nameLike | String | Optional. Filter to policies whose name contains this substring. |
|
cursor | String | Optional. Pagination cursor from a prior call's |
|
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 finds all policies whose names contain "Production".
Workflow example |
|---|
|