---
title: "List"
method: GET
path: "/alerts_location_failure_conditions/policies/{policy_id}.json"
tags: ["Deprecation Notice - Alerts Location Failure Conditions"]
---

# List

`GET /alerts_location_failure_conditions/policies/{policy_id}.json`

## Request

- Base URL: `https://api.newrelic.com/v2`
- URL: `https://api.newrelic.com/v2/alerts_location_failure_conditions/policies/{policy_id}.json`
- Auth: API key in header `Api-Key`
- TypeScript: <https://skmtc.dev/newrelic/apis/new-relic-rest-api-v2/docs/alerts_location_failure_conditions/policies/:policy_id.json/get.ts> (a function with typed inputs; its response is checked against the schema)

<strong>🔥 This endpoint will be deprecated after 2024/01 🔥</strong> New users should use <a href="https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/alerts-nerdgraph/nerdgraph-api-examples/">these docs about managing alerts via NerdGraph.</a>

<hr>

<p>This API endpoint allows you to list the alerts location failure conditions for your Alerts policy.</p>

## Path parameters

- `policy_id` integer, required

## Query parameters

- `page` integer

## Response `200`

No response was specified

- ConditionResponse[]
  - `condition` ConditionResponseType
    - `condition_scope` string
    - `enabled` boolean
    - `entities` integer[]
    - `gc_metric` string
    - `id` integer
    - `metric` string
    - `name` string
    - `runbook_url` string
    - `terms` IJKTermsType[]
      - `duration` string
      - `operator` string
      - `priority` string
      - `threshold` string
      - `time_function` string
    - `type` string
    - `user_defined` UserDefinedConditionResponse
      - `metric` string
      - `value_function` string
    - `violation_close_timer` integer

---

[API](https://skmtc.dev/newrelic/apis/new-relic-rest-api-v2.md) - [All operations](https://skmtc.dev/newrelic/apis/new-relic-rest-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/newrelic/apis/new-relic-rest-api-v2/revisions/cf1843ad0a45?raw)
