Skip to content

Commit

Permalink
Fix changing the owner team of an API integration (#146)
Browse files Browse the repository at this point in the history
Fixes an issue where owner team ID could not be changed when linked with integration actions. The fix creates a new integration when the owner team is changed.
  • Loading branch information
multani authored Jul 12, 2023
1 parent fb911a6 commit 3f3374d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions opsgenie/resource_opsgenie_api_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func resourceOpsgenieApiIntegration() *schema.Resource {
"owner_team_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"api_key": {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/api_integration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The following arguments are supported:

* `suppress_notifications` - (Optional) If enabled, notifications that come from alerts will be suppressed. Default: `false`.

* `owner_team_id` - (Optional) Owner team id of the integration.
* `owner_team_id` - (Optional, Forces new resource) Owner team id of the integration. If changed, this will recreate a new API integration, which will probably have a different API key.

* `responders` - (Optional) User, schedule, teams or escalation names to calculate which users will receive the notifications of the alert.

Expand Down

0 comments on commit 3f3374d

Please sign in to comment.