opsgenie / terraform-provider-opsgenie

Terraform OpsGenie provider
https://registry.terraform.io/providers/opsgenie/opsgenie/latest/docs
Mozilla Public License 2.0
102 stars 137 forks source link

Custom role resource is missing some rights. #220

Open Yoyada89 opened 3 years ago

Yoyada89 commented 3 years ago

Hi there,

I'm trying to create the custom role, but there are some rights missing. There are more rights supported with the API calls than with the provider.

Terraform Version

0.14.6 provider registry.terraform.io/opsgenie/opsgenie v0.6.2

Affected Resource(s)

opsgenie_custom_role

Terraform Configuration Files

resource "opsgenie_custom_role" "test" { role_name = "TEST" extended_role = "user" granted_rights = [ "profile-custom-fields-edit", "postmortem-delete", "delete-incident-command-center-room", "incident-delete", "edit-incident-command-center-room", "incident-commander", "alert-action", "alert-delete", "incident-action", "logs-page-access", "incident-timeline-delete", "reports-access" ] disallowed_rights = [ "access-icc-past-sessions", "configurations-read-only", "alerts-access-all", "forwardings-edit", "incidents-access-all", "assign-response-role", "maintenance-edit", "billing-manage", "service-send-status-update", "configurations-delete", "configurations-edit" ] }

Expected Behavior

The custom role with the proper rights is created.

Actual Behavior

Some rights are missing in validCustomRolesRights list.

Steps to Reproduce

  1. terraform apply
exeding commented 1 year ago

after more than 2 years still the same issue.