Reachability

What *Make it reachable* would do for an address.

Changed on

Returns the ways in that fit, in the order Temps prefers them, each with its steps, the fields still to answer and, when an option changes another choice, what to confirm. Changes nothing in the cluster; the plan is kept for 15 minutes under plan_id with a fingerprint of what it depends on, for apply.

post/projects/{project_id}/environments/{environment_id}/reachability/plan

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

project_idinteger required

Project ID

environment_idinteger required

Environment ID

Request body

addressstring nullable

The hostname to make reachable; Temps suggests one without it.

audience'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported'

Who an address is for.

gate'temps' | 'cloudflare_access' | 'unsupported' nullable

Which gate an address has (D7). Unknown values read as Unsupported, and an unsupported gate admits nobody.

Example request

{
  "principals": [
    {
      "value": "alice@example.com"
    }
  ]
}

Response

addressstring nullable

The address asked for, or the one Temps suggests.

address_errorstring nullable

Why the address cannot be used, when it cannot.

audience'public' | 'private' | 'signed_in' | 'tailnet_users' | 'unsupported' required

Who an address is for.

expires_atstring date-time nullable
fingerprintstring nullable

A hash of everything the plan depends on: the environment's addresses and audiences, DNS providers and zones, tunnels with their domains, auto_publish and hostname choices, and workers' ingress modes. apply recomputes it and refuses a plan the cluster has moved on from.

gate'temps' | 'cloudflare_access' | 'unsupported' nullable

Which gate an address has (D7). Unknown values read as Unsupported, and an unsupported gate admits nobody.

plan_idstring nullable

What apply names to act on this plan. Plans expire after 15 minutes and are applied once; None on the plan attached to GET …/reachability, which is not stored.

Example response

{
  "principals": [
    {
      "value": "alice@example.com"
    }
  ]
}

Changes

    • warning

      added the new redirect_to_https enum value to the options/items/steps/items/kind response property for the response status

    • warning

      added the new set_http_policy enum value to the options/items/steps/items/kind response property for the response status

    • warning

      added the new standard_ports_only enum value to the options/items/steps/items/kind response property for the response status