• /
  • EnglishEspañolFrançais日本語한국어Português
  • ログイン今すぐ開始

List muting rules

|View as Markdown (English)

The action identifier is newrelic.alerts.listMutingRules.

Lists the muting rules for an account. Optionally filters by enabled state. This action is not cursor-paginated and returns all matching rules in a single response.

The following table describes all available input fields for this action.

Input

Type

Description

Example

accountId

Int

Required. The New Relic account to list muting rules for.

123456

enabled

Boolean

Optional. Filter to only enabled (true) or only disabled (false) muting rules. Omit to return all rules regardless of state.

true

selectors

List

Optional. JQ selectors to extract values from the response.

selectors:
- name: mutingRules
expression: ".data.actor.account.alerts.mutingRules"

The following table describes all output fields returned by this action.

Output

Type

Description

success

Boolean

true when the step executed without error.

errorMessage

String

Error message on failure. null on success.

data

Map

NerdGraph response. Use selectors to extract the mutingRules array from data.

{
"data": {
"actor": {
"account": {
"alerts": {
"mutingRules": [
{
"id": "9876543",
"name": "Weekend maintenance window",
"enabled": true,
"status": "SCHEDULED",
"accountId": 123456
}
]
}
}
}
}
}

The following example lists all currently-enabled muting rules for an account.

Workflow example

name: list_muting_rules
description: List enabled muting rules for an account
steps:
- name: listMutingRules
type: action
action: newrelic.alerts.listMutingRules
version: 1
inputs:
accountId: ${{ .workflowInputs.accountId }}
enabled: true
selectors:
- name: mutingRules
expression: ".data.actor.account.alerts.mutingRules"
next: end
Copyright © 2026 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.