# Ports

> A shared port of a VM has its own HTTPS URL. A public URL opens for anyone; a private URL opens only on the devices of the tenant.

## Endpoints

| Method | Path | Returns |
|---|---|---|
| `GET` | [`/v1/tenants/{tenant}/vms/{name}/ports`](https://shako.dev/api/ports/list.md) | 200 with the ports object. |
| `POST` | [`/v1/tenants/{tenant}/vms/{name}/ports`](https://shako.dev/api/ports/create.md) | 201 with the shared port object. |
| `DELETE` | [`/v1/tenants/{tenant}/vms/{name}/ports/{port}`](https://shako.dev/api/ports/delete.md) | 200 with the names of the path and "deleted": true. |

## Objects

- [The ports object](https://shako.dev/api/objects/ports.md): The shared ports of a VM.
- [The shared port object](https://shako.dev/api/objects/exposed.md): The answer of a share of a port.
