github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/pagerduty/d/schedule.html.markdown (about) 1 --- 2 layout: "pagerduty" 3 page_title: "PagerDuty: pagerduty_schedule" 4 sidebar_current: "docs-pagerduty-datasource-schedule" 5 description: |- 6 Provides information about a Schedule. 7 8 This data source can be helpful when a schedule is handled outside Terraform but still want to reference it in other resources. 9 --- 10 11 # pagerduty\_schedule 12 13 Use this data source to get information about a specific [schedule][1] that you can use for other PagerDuty resources. 14 15 ## Example Usage 16 17 ```hcl 18 data "pagerduty_schedule" "test" { 19 name = "Daily Engineering Rotation" 20 } 21 22 resource "pagerduty_escalation_policy" "foo" { 23 name = "Engineering Escalation Policy" 24 num_loops = 2 25 26 rule { 27 escalation_delay_in_minutes = 10 28 29 target { 30 type = "schedule" 31 id = "${data.pagerduty_schedule.test.id}" 32 } 33 } 34 } 35 ``` 36 37 ## Argument Reference 38 39 The following arguments are supported: 40 41 * `name` - (Required) The name to use to find a schedule in the PagerDuty API. 42 43 ## Attributes Reference 44 * `name` - The short name of the found schedule. 45 46 [1]: https://v2.developer.pagerduty.com/v2/page/api-reference#!/Schedules/get_schedules