Self API
The Self API is an HTTP interface for suspending, forking or deleting a box from a process running inside that box. No account API key is required, and each request applies only to the calling box.
Base URL: http://169.254.77.77.
POST /orble/suspend
Suspend the box with guest memory and process state preserved.
$ curl -fsS -X POST http://169.254.77.77/orble/suspendInput schema
No request body.
Output schema
| Field | Type | Description |
|---|---|---|
accepted | boolean | The value is true when the suspension request has been accepted. |
action | string | The value is always "suspend". |
Behavior
Exec waitSuspension is deferred until active Orble exec calls return. If any call remains active after 2 minutes, the suspension request is canceled
WakeThe box can be resumed through the usual access methods, including SSH and shared ports
Node restartPending suspension requests are discarded if the node restarts
POST /orble/fork
Create copies of the box with disk contents, guest memory and process state preserved.
$ curl -fsS -X POST http://169.254.77.77/orble/fork \
-H 'Content-Type: application/json' \
-d '{"count":1}'Input schema
Optional JSON body. Unknown fields are rejected.
| Field | Type | Description |
|---|---|---|
count | integeroptional | Use an integer from 1 to 10. If omitted or set to 0, the requested count is 1. |
Output schema
| Field | Type | Description |
|---|---|---|
boxes | Box[] | Orble returns the created boxes in this array, including a name and hostname for each box. |
errors | string[]optional | If Orble creates only some requested copies, error messages for the remaining copies are included in this array. |
notices | string[]optional | If a copied port must be made private, the reason is included in this array. |
Behavior
CopiesCopies have the same CPU and memory allocation as the source, with new names and addresses. Standard port-sharing rules apply
LimitsForked boxes are subject to account limits and standard usage charges
RetryAfter an interrupted response, check for created boxes before retrying the fork request
POST /orble/delete
Permanently delete the box and its disk.
$ curl -fsS -X POST http://169.254.77.77/orble/deleteInput schema
No request body.
Output schema
Body: Orble is deleting this box. followed by a newline.
Behavior
Exec waitDeletion is deferred until active Orble exec calls return, for up to 2 minutes