Skip to content

Commit

Permalink
Merge pull request #242 from pzhuravlenkopd/patch-1
Browse files Browse the repository at this point in the history
Extended example of adding multiple targets
  • Loading branch information
Scott McAllister authored Jun 17, 2020
2 parents b3a6600 + e588e20 commit 293246a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions website/docs/r/escalation_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ resource "pagerduty_escalation_policy" "example" {
rule {
escalation_delay_in_minutes = 10
target {
type = "user"
id = pagerduty_user.example.id
}
target {
type = "user"
id = pagerduty_user.example2.id
}
}
}
```
Expand All @@ -61,7 +64,7 @@ Escalation rules (`rule`) supports the following:

Targets (`target`) supports the following:

* `type` - (Optional) Can be `user`, `schedule`, `user_reference` or `schedule_reference`. Defaults to `user_reference`
* `type` - (Optional) Can be `user`, `schedule`, `user_reference` or `schedule_reference`. Defaults to `user_reference`. For multiple users as example, repeat the target.
* `id` - (Required) A target ID

## Attributes Reference
Expand Down

0 comments on commit 293246a

Please sign in to comment.