ionoscloud_apigateway_route
Creates and manages IonosCloud API Gateway Route objects.
Example Usage
resource "ionoscloud_apigateway" "example" {
name = "example-gateway"
metrics = true
custom_domains {
name = "example.com"
certificate_id = "00000000-0000-0000-0000-000000000000"
}
custom_domains {
name = "example.org"
certificate_id = "00000000-0000-0000-0000-000000000000"
}
}
resource "ionoscloud_apigateway_route" "apigateway_route" {
name = "apigateway-route"
type = "http"
paths = [
"/foo/*",
"/bar"
]
methods = [
"GET",
"POST"
]
websocket = false
upstreams {
scheme = "http"
loadbalancer = "roundrobin"
host = "example.com"
port = 80
weight = 100
}
gateway_id = ionoscloud_apigateway.example.id
}Argument reference
Import
Last updated
