Skip to content

Commit

Permalink
fix missing permissions in custom role resource
Browse files Browse the repository at this point in the history
  • Loading branch information
guydomb committed Jun 5, 2024
1 parent 1fe1e11 commit 4fc7f9e
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion opsgenie/resource_opsgenie_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package opsgenie

import (
"context"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"log"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"

"github.com/opsgenie/opsgenie-go-sdk-v2/custom_user_role"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand All @@ -31,29 +32,76 @@ var validCustomRolesRights = []string{
"alert-add-attachment",
"alert-delete-attachment",
"alert-add-note",
"alert-add-responder",
"alert-acknowledge",
"alert-unacknowledge",
"alert-snooze",
"alert-escalate",
"alert-close",
"alert-create-issue",
"alert-delete",
"alert-delete-note",
"alert-grant-visibility",
"alert-take-ownership",
"alert-assign-ownership",
"alert-add-recipient",
"alert-add-team",
"alert-edit-tags",
"alert-edit-details",
"alert-custom-action",
"alert-link-issue",
"alert-update-description",
"alert-update-message",
"alert-update-note",
"alert-update-priority",
"alert-acknowledge-all",
"alert-close-all",
"assign-response-role",
"delete-incident-command-center-room",
"edit-incident-command-center-room",
"edit-impacted-services",
"forwardings-edit",
"incident-action",
"incident-add-note",
"incident-create",
"incident-close",
"incident-commander",
"incident-add-stakeholder",
"incident-add-responder",
"incident-associate-alerts",
"incident-create-issue",
"incident-custom-action",
"incident-dissociate-alerts",
"incident-delete",
"incident-edit-details",
"incident-edit-impact-times",
"incident-edit-message",
"incident-edit-postmortem-fields",
"incident-edit-tags",
"incident-link-issue",
"incident-timeline-create",
"incident-timeline-edit",
"incident-timeline-delete",
"incident-remove-responder",
"incident-resolve",
"incident-reopen",
"incidents-access-all",
"incident-update-priority",
"access-icc-past-sessions",
"create-icc-session",
"join-icc-session",
"mass-notification-create",
"postmortem-access-published",
"postmortem-access-unpublished",
"postmortem-create",
"postmortem-edit",
"postmortem-delete",
"service-access",
"service-access-status",
"service-send-status-update",
"slack-channel-create",
"slack-channel-unlink",
"update-potential-causes",
}

func resourceOpsGenieCustomUserRole() *schema.Resource {
Expand Down

0 comments on commit 4fc7f9e

Please sign in to comment.