terraform/website/source/docs/providers/pagerduty/d/escalation_policy.html.mark...

40 lines
1.2 KiB
Markdown
Raw Normal View History

---
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
```hcl
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:
* `name` - (Required) The name to use to find an escalation policy in the PagerDuty API.
## 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