terraform-provider-pagerduty icon indicating copy to clipboard operation
terraform-provider-pagerduty copied to clipboard

Add teams to pagerduty_schedule

Open entropitor opened this issue 3 years ago • 4 comments

pagerduty_schedule resource is missing the teams property

entropitor avatar Aug 12 '20 13:08 entropitor

+1

saraogivinay avatar Aug 12 '20 23:08 saraogivinay

+1, will be very useful

timchenko-a avatar Feb 16 '21 10:02 timchenko-a

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

matt-land avatar Apr 12 '21 16:04 matt-land

implemented in https://github.com/PagerDuty/terraform-provider-pagerduty/pull/368

Tyrael avatar Aug 27 '21 08:08 Tyrael