List ports

The shared ports of a VM, and the common ports that listen.

GET /v1/tenants/{tenant}/vms/{name}/ports

curl -X GET "https://api.shako.dev/v1/tenants/acme/vms/web1/ports" \
  -H "Authorization: Bearer $SHAKO_API_KEY"

200 (excerpt)

{
  "name": "web1",
  "state": "awake",
  "edge": true,
  "public": [
    {
      "port": 8000,
      "url": "https://web1-8000--acme.shakoapp.dev",
      "tcp": "tcp.shako.dev:10042"
    }
  ],
  "private": [],
  "listening": [
    22,
    8000
  ]
}

Authenticate with Authorization: Bearer <API key> on https://api.shako.dev. Role: contributor or owner.

Path parameters

tenantstringrequired
The tenant's name, from GET /v1/tenants.
namestringrequired
The VM's name.

Query parameters

portinteger, 1 to 65535default: all the ports
Only this port, with a check if a program listens on it.

Response

200 with the ports object.

The errors. All the endpoints of Ports.