opsgenie / terraform-provider-opsgenie

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

[Feature Request] this should be able to re-assign integration to another team without changing the api key #414

Open m1n9o opened 9 months ago

m1n9o commented 9 months ago

We want to manage OpsGenie resources with Terraform project, and we will have some actions to re-assign integration to another team. Say, Team A has a Cloudwatch integration, and I need to re-assign this integration to Team B. Because we will have multiple integration like this in a team when we migrate all of these integrations to a new team. I hope the API key of each integration remains the same.

Officially, OpsGenie supports to re-assign the integration on console as well as API call. But obviously, the terraform opsgenie provider doesn't support it at all.

https://docs.opsgenie.com/docs/integration-api#update-integration

e.g.

PUT https://api.opsgenie.com/v2/integrations/[Integration ID]&type=aws-cloud-watch
payload
{
    "type": "CloudWatch",
        "name": "Integration to be moved",
    "assignedTeam":  {
            "id": "TEAM ID",
            "name": "TEAM NAME"
        }
}
p.s. assignedTeam was not documented yet, but it's supported.

Would you support this feature as soon as possible?