Dispra Docs

Cloud

The endpoint object

One way into a service: a generated public HTTPS address, a public TCP port, a private address only the project's services can reach, or a custom domain.

Attributes

  • id string: The endpoint's id.
  • type string: public_http, public_tcp or private.
  • scope string: service (load balanced) or replica (one replica).
  • address string: The host name.
  • url string: The full address, for HTTP endpoints.
  • port number: The container port it forwards to.
  • public_port number: For public_tcp: the port on the public address, else null.
  • custom boolean: True for a custom domain.

Example

{
  "data": {
    "id": "dom_01jdk5t3y5u7i9o1p3a5s7d9fg",
    "type": "public_http",
    "scope": "service",
    "address": "api-x8ca.dispracloud.app",
    "url": "https://api-x8ca.dispracloud.app",
    "port": 3000,
    "public_port": 24117,
    "custom": false
  }
}

Endpoints