Stop sharing a port

Stop sharing a port. Its URL stops at once.

DELETE /v1/tenants/{tenant}/vms/{name}/ports/{port}

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

200

{
  "name": "web1",
  "port": 8000,
  "deleted": true
}

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.
portinteger, 1 to 65535required
A shared port of the VM.

Response

200 with the names of the path and "deleted": true.

The errors. All the endpoints of Ports.