github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/pagerduty/d/escalation_policy.html.markdown (about)

     1  ---
     2  layout: "pagerduty"
     3  page_title: "PagerDuty: pagerduty_escalation_policy"
     4  sidebar_current: "docs-pagerduty-datasource-escalation-policy"
     5  description: |-
     6    Provides information about a Escalation Policy.
     7  
     8    This data source can be helpful when an escalation policy is handled outside Terraform but still want to reference it in other resources.
     9  ---
    10  
    11  # pagerduty\_escalation_policy
    12  
    13  Use this data source to get information about a specific [escalation policy][1] that you can use for other PagerDuty resources.
    14  
    15  ## Example Usage
    16  
    17  ```hcl
    18  data "pagerduty_escalation_policy" "test" {
    19    name = "Engineering Escalation Policy"
    20  }
    21  
    22  resource "pagerduty_service" "test" {
    23    name                    = "My Web App"
    24    auto_resolve_timeout    = 14400
    25    acknowledgement_timeout = 600
    26    escalation_policy       = "${data.pagerduty_escalation_policy.test.id}"
    27  }
    28  ```
    29  
    30  ## Argument Reference
    31  
    32  The following arguments are supported:
    33  
    34  * `name` - (Required) The name to use to find an escalation policy in the PagerDuty API.
    35  
    36  ## Attributes Reference
    37  * `name` - The short name of the found escalation policy.
    38  
    39  [1]: https://v2.developer.pagerduty.com/v2/page/api-reference#!/Escalation_Policies/get_escalation_policies