Orblealpha

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/suspend

Input schema

No request body.

Output schema

202 Accepted · application/json

Output schema
FieldTypeDescription
acceptedbooleanThe value is true when the suspension request has been accepted.
actionstringThe value is always "suspend".

Behavior

Exec wait

Suspension is deferred until active Orble exec calls return. If any call remains active after 2 minutes, the suspension request is canceled

Wake

The box can be resumed through the usual access methods, including SSH and shared ports

Node restart

Pending 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.

Input schema
FieldTypeDescription
countintegeroptionalUse an integer from 1 to 10. If omitted or set to 0, the requested count is 1.

Output schema

200 OK · application/json

Output schema
FieldTypeDescription
boxesBox[]Orble returns the created boxes in this array, including a name and hostname for each box.
errorsstring[]optionalIf Orble creates only some requested copies, error messages for the remaining copies are included in this array.
noticesstring[]optionalIf a copied port must be made private, the reason is included in this array.

Behavior

Copies

Copies have the same CPU and memory allocation as the source, with new names and addresses. Standard port-sharing rules apply

Limits

Forked boxes are subject to account limits and standard usage charges

Retry

After 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/delete

Input schema

No request body.

Output schema

202 Accepted · text/plain

Body: Orble is deleting this box. followed by a newline.

Behavior

Exec wait

Deletion is deferred until active Orble exec calls return, for up to 2 minutes