---
title: List muting rules
source: https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/newrelic/alerts/newrelic-alerts-list-muting-rules
---

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.

## Inputs

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.                                                                      | ```yaml selectors:   - name: mutingRules     expression: ".data.actor.account.alerts.mutingRules" ``` |

## Outputs

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`. ```json {   "data": {     "actor": {       "account": {         "alerts": {           "mutingRules": [             {               "id": "9876543",               "name": "Weekend maintenance window",               "enabled": true,               "status": "SCHEDULED",               "accountId": 123456             }           ]         }       }     }   } } ``` |

## Example

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

| Workflow example                                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ```yaml 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 ``` |
