terraform-provider-pagerduty
terraform-provider-pagerduty copied to clipboard
Add teams to pagerduty_schedule
pagerduty_schedule resource is missing the teams property
+1
+1, will be very useful
Our users are only allowed to create schedules in their associated teams. Without the ability to set the teams
property, users are unable to create schedules in terraform.
Error: POST API call to https://api.pagerduty.com/schedules failed 403 Forbidden. Code: 2010, Errors: <nil>, Message: Access Denied
The same user can make the call in the UI, but the pager duty API does not support a team attribute on schedules- its a read only property.
https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1schedules/post
I suspect there is functionality for creating team bound schedules that is not yet exposed to the public Pagerduty API, because the UI clearly shows a team association, but its not in their API spec.
![Screen Shot 2021-04-12 at 2 10 53 PM](https://user-images.githubusercontent.com/4174972/114448274-f3a5dd80-9b98-11eb-8085-3552e453e56f.png)
implemented in https://github.com/PagerDuty/terraform-provider-pagerduty/pull/368