-
Notifications
You must be signed in to change notification settings - Fork 12
/
datasources.tf
50 lines (42 loc) · 1.13 KB
/
datasources.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
PagerDuty DataSources Definition
*/
/*
Integration Vendors
- https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1vendors/get
- https://www.terraform.io/docs/providers/pagerduty/d/vendor.html
*/
data "pagerduty_vendor" "new_relic" {
name = "New Relic"
}
data "pagerduty_vendor" "splunk" {
name = "Splunk"
}
/*
Priorities - This needs to be enabled in the domain these files are run against.
- https://support.pagerduty.com/docs/incident-priority
- https://www.terraform.io/docs/providers/pagerduty/d/priority.html
*/
data "pagerduty_priority" "p1" {
name = "P1"
}
data "pagerduty_priority" "p2" {
name = "P2"
}
data "pagerduty_priority" "p3" {
name = "P3"
}
data "pagerduty_priority" "p4" {
name = "P4"
}
data "pagerduty_priority" "p5" {
name = "P5"
}
/*
Extensions
- https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1extension_schemas/get
- https://www.terraform.io/docs/providers/pagerduty/d/extension_schema.html
*/
data "pagerduty_extension_schema" "custom_incident_action" {
name = "Custom Incident Action"
}