Provides a route resource. This allows routes to be created, updated, and deleted.

Example Usage

data "ibm_space" "spacedata" {
  space = "space"
  org   = ""

data "ibm_app_domain_shared" "domain" {
  name = ""

resource "ibm_app_route" "route" {
  domain_guid = "${}"
  space_guid  = "${}"
  host        = "somehost172"
  path        = "/app"

Argument Reference

The following arguments are supported:

  • domain_guid - (Required, string) The GUID of the associated domain. You can retrieve the value from data source ibm_app_domain_shared or ibm_app_domain_private.
  • space_guid - (Required, string) The GUID of the space where you want to create the route. You can retrieve the value from data source ibm_space or by running the ibmcloud iam space <space_name> --guid command in the IBM Cloud CLI.
  • host - (Optional, string) The host portion of the route. Host is required for shared-domains.
  • port - (Optional, integer) The port of the route. Port is supported for domains of TCP router groups only.
  • path - (Optional, string) The path for a route as raw text. Paths must be 2 - 128 characters. Paths must start with a forward slash (/) and cannot contain a question mark (?).
  • tags - (Optional, array of strings) Tags associated with the route instance.
    NOTE: Tags are managed locally and not stored on the IBM Cloud service endpoint at this moment.

Attribute Reference

The following attributes are exported:

  • id - The unique identifier of the route.