Reachability

Turn a tunnel's environment hosts on or off.

Changed on

On publishes every listed environment as <label>.<domain>; off withdraws every host it generated. Both need confirm: the confirm_token of the list from the GET that was shown. Turning it on is a sensitive action (it widens every environment to public). At most one tunnel has it on.

put/ingress/connectors/{id}/environment-hosts

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idinteger required

Tunnel id

Request body

confirmstring nullable

The confirm_token of the list that was shown and accepted: turning on publishes every host in it, turning off withdraws them.

enabledboolean required

Response

confirm_tokenstring required

Send back as confirm to turn it on or off. It names exactly the hosts listed here, so a list that changed since it was shown is not accepted.

connector_idinteger required
connector_namestring required
domainstring required
enabledboolean required
enabled_elsewherestring nullable

The tunnel that has environment hosts on instead, if another does: at most one may.

host_suffixstring nullable

The tunnel's hostname suffix: environments are published as <label>-<suffix>.<domain> with one, <label>.<domain> without.

preview_domain_usableboolean required

The preview domain is usable: existing hosts stay, no new ones are generated.

warningstring required

Example response

{
  "confirm_token": "3f2a9c1e0b7d4a65",
  "host_suffix": "lab",
  "hosts": [
    {
      "hostname": "shop-production.tunnel.example.com"
    }
  ]
}

Changes

    • info

      added the optional property host_suffix to the response with the status

    • breaking

      the confirm request property type changed from boolean to string null

    • info

      the request property confirm became nullable

    2 more changes in this revision