Skip to content
Coritan Docs

Organization API: Customer Portal: Tcp address

The 3 Organization API operations for tcp address.

View as Markdown

Part of Customer Portal.

Method Path Summary
GET /api/v1/orgs/{org_slug}/portal/servers/{uuid}/tcp-address The server's TCP address, and what you need to make one
POST /api/v1/orgs/{org_slug}/portal/servers/{uuid}/tcp-address Make the server's TCP address
DELETE /api/v1/orgs/{org_slug}/portal/servers/{uuid}/tcp-address Remove the server's TCP address

The server's TCP address, and what you need to make one

Section titled The server's TCP address, and what you need to make one

GET /api/v1/orgs/{org_slug}/portal/servers/{uuid}/tcp-address

The server's TCP address, and what you need to make one.

A TCP address is a name and a port on our network that forward TCP connections to one port of the server. A server has at most one.

  • offered: whether this store offers TCP addresses. When it is false you cannot make one. An address the server already has still shows, and you can still remove it.
  • tcp_domain: the domain a new address sits under, or an empty string.
  • can_manage: true for the server's owner. Only the owner makes or removes the address.
  • suggested_name: a name made from the server's name, or an empty string when that gives none.
  • ports: the server's ports, the primary first. Each has port and primary.
  • tcp_address: null when the server has none. Otherwise id, name, hostname (name.tcp_domain), listen_port (the port on our network, which we pick), address (hostname:listen_port, what a client connects to), port (the server's port it forwards to), status (active, or suspended while the server is suspended) and created_at.

A person the server is shared with needs the allocation.read permission, and gets 403 without it. A server that is not yours answers 403, and an unknown one 404.

Name In Type Required Description
org_slug path string yes
uuid path string yes The server's UUID.
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

POST /api/v1/orgs/{org_slug}/portal/servers/{uuid}/tcp-address

Make the server's TCP address. Answers 201 with what GET tcp-address answers.

name goes in front of the store's tcp_domain. It is 3 to 28 lowercase letters, numbers and hyphens, and it is shared with web addresses and join addresses, so a name any of them holds is taken. port is one of the server's ports. Leave it out for the primary port. We pick listen_port, and it stays the same for as long as the address exists.

Only the server's owner may call this: a person the server is shared with gets 403. Errors:

  • 404 when the store does not offer TCP addresses.
  • 409 when the server already has a TCP address, the name is taken, or the server has no port yet.
  • 422 for a name that is not allowed, or a port that is not one of the server's.
  • 429 after 6 calls in an hour for one server.
  • 503 when we could not make the address. Try again later.
Name In Type Required Description
org_slug path string yes
uuid path string yes The server's UUID.

application/json (required)

Field Type Required Description
name string yes The name of the address, which goes in front of tcp_domain. 3 to 28 lowercase letters, numbers and hyphens. Spaces, dots and underscores become hyphens.
port integer or null no The server's port to forward to, one of ports. Leave it out for the primary port.
Status Meaning
201 Success.
422 The request is not valid. detail lists each problem.

Remove the server's TCP address

Section titled Remove the server's TCP address

DELETE /api/v1/orgs/{org_slug}/portal/servers/{uuid}/tcp-address

Remove the server's TCP address. Answers 204 with no body.

The address stops accepting connections, and its name and its port on our network are free for anyone to take. This works when the store no longer offers TCP addresses.

Only the server's owner may call this: a person the server is shared with gets 403. Errors:

  • 404 when the server has no TCP address, or the server is not yours.
  • 429 after 6 calls in an hour for one server.
Name In Type Required Description
org_slug path string yes
uuid path string yes The server's UUID.
Status Meaning
204 Success.
422 The request is not valid. detail lists each problem.