2017-02-01 21:53:31 +01:00
|
|
|
---
|
|
|
|
layout: "pagerduty"
|
|
|
|
page_title: "PagerDuty: pagerduty_escalation_policy"
|
|
|
|
sidebar_current: "docs-pagerduty-datasource-escalation-policy"
|
|
|
|
description: |-
|
|
|
|
Provides information about a Escalation Policy.
|
|
|
|
|
|
|
|
This data source can be helpful when an escalation policy is handled outside Terraform but still want to reference it in other resources.
|
|
|
|
---
|
|
|
|
|
|
|
|
# pagerduty\_escalation_policy
|
|
|
|
|
|
|
|
Use this data source to get information about a specific [escalation policy][1] that you can use for other PagerDuty resources.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
data "pagerduty_escalation_policy" "test" {
|
|
|
|
name = "Engineering Escalation Policy"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "pagerduty_service" "test" {
|
|
|
|
name = "My Web App"
|
|
|
|
auto_resolve_timeout = 14400
|
|
|
|
acknowledgement_timeout = 600
|
|
|
|
escalation_policy = "${data.pagerduty_escalation_policy.test.id}"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
2017-02-18 23:48:50 +01:00
|
|
|
* `name` - (Required) The name to use to find an escalation policy in the PagerDuty API.
|
2017-02-01 21:53:31 +01:00
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
* `name` - The short name of the found escalation policy.
|
|
|
|
|
|
|
|
[1]: https://v2.developer.pagerduty.com/v2/page/api-reference#!/Escalation_Policies/get_escalation_policies
|