Apparently it's not possible to import existing "IncomingCall" API integration.
cat oncall_phonenumber.tf
resource "opsgenie_api_integration" "oncall_phone_support" {
name = "Call: Incoming call support line"
type = "IncomingCall"
enabled = true
}
Attempts to run the import fail:
$ terraform import opsgenie_api_integration.oncall_phone_support "$ID"
opsgenie_api_integration.oncall_phone_support: Importing from ID "$ID"...
opsgenie_api_integration.oncall_phone_support: Import prepared!
Prepared opsgenie_api_integration for import
opsgenie_api_integration.oncall_phone_support: Refreshing state... [id=$ID]
│ Error: Error occurred with Status code: 403, Message: Create and update operations for type [IncomingCall is forbidden, Took: 0.027000, RequestId: ...
Terraform Version
Terraform v1.3.7
on darwin_arm64
+ provider registry.terraform.io/opsgenie/opsgenie v0.6.20
Apparently it's not possible to import existing "IncomingCall" API integration.
Attempts to run the import fail:
Terraform Version
Affected Resource(s)
type = IncomingCall
)