/v1/vms/{uid}/appsReturns the extra ports exposed on the VM over HTTPS, each with its own public URL.
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Path parameters
uidstringRequiredThe VM's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The VM's exposed apps.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the app exposure.
vm_uidstringRequiredUID of the VM.
namestringRequiredName of the exposure (stored in slug form).
slugstringRequiredIdentifier used in the unexpose path.
statusstringRequiredpending while the route is being created, ready when live, deleting while being removed, failed if provisioning failed.
One ofpendingreadydeletingfailed
portintegerRequiredPort on the VM that the URL forwards to.
protocolstringRequiredBackend protocol.
One ofhttpgrpc
hostnamestringRequiredPublic hostname of the exposure.
urlstringRequiredPublic HTTPS URL of the exposure.
last_failurestringReason for the last failure. Omitted when there is none.
created_atstring (date-time)RequiredWhen the exposure was created.
Errors
| Status | Meaning |
|---|---|
400 | The request was malformed or failed validation. |
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The resource does not exist or you cannot access it. |
Errors use the standard error format.