Spawn a new container instance
Creates and runs a new execution instance with the specified configuration.
Requires a valid Authorization header.
Common request body rules:
- The request body must contain at least
commandandimagefields all other fields can be omitted. - If the
commandfield is a shell expression, you must setshellfield totrue. - For specifying the shell binary, you can use
envfield to setSHELLvariable. - When
shellistrue, environment variables defined in the image (viaENVdirectives) are automatically inherited. Whenshellisfalse, image environment variables are not inherited and must be passed explicitly via theenvfield.
Authorizations
IAM bearer token issued by the Nebius IAM service. Sent as
Authorization: Bearer <iam-token>. Must be combined with the
Project header (see IAMProjectHeader).
This is the recommended authentication scheme for new clients.
Nebius project ID associated with the IAM token. Required together
with IAMBearerAuth. Identifies the project context the request is
scoped to.
Body
The command to execute. In case if shell is set to true, this MUST contain shell expression.
For example echo hello world or ls -l /app.
If shell is set to false, this must be a relative or absolute path to the executable inside the image rootfs.
For example: /bin/app or /usr/bin/find.
Do not forget pass necessary PATH variable to env field, by default PATH is set to /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin.
"/bin/app"
An base image for run a new instance. May be either image UUID or image tag (prefixed with "tag:"). After creation of the instance, if tag is used, this value will be resolved to the image UUID, and the UUID will be stored in the metadata.
"tag:busybox:latest"
Creates a disposable execution environment no any state will be saved.
Hostname to set when execution.
"container-name"
Arguments to pass to the command if shell is set to false.
Whether to run the command through a shell. If true, the command must be a shell expression and all values from args will be ignored. If false, the command field must be a path to an executable and args will be used. When true, environment variables from the image are automatically inherited. When false, they are not - use the env field to pass them explicitly.
Environment variables to set in the container. These are merged with image-defined variables when shell is true. When shell is false, only variables specified here are available - image-defined variables are not inherited.
Preserve environment variables in resulting image after execution. When true, the image's existing environment variables from metadata/env are merged with user-provided env values (user values take priority on conflicts), and the combined result is written back to metadata/env after command execution. Setting a variable to an empty string or null removes it from the preserved environment.
Path to the working directory, must be absolute or a special value the empty string. It means the default working directory of the image or server default will be used. If field is omitted it will be set to the empty string. The directory will be created automatically if it does not exist.
^((/[^/]*)+/?)?$"/app"
User ID to run the process as.
x >= 00
Group ID to run the process as.
x >= 00
Maximum execution time in seconds
60
Maximum number of bytes to keep from stdout/stderr. Default is 1048576 (1 MiB). The maximum value is 10485760 (10 MiB).
65535
Map of absolute file paths to file metadata
Response
Created - The instance has been successfully created and its execution has been queued. When operation created successfully, the response will contain Location header with URL to check the operation status. and the body will contain the parsed request body with additional uuid field.
A UUID string
"12345678-9abc-baba-deda-0123456789ab"
A UUID string
"12345678-9abc-baba-deda-0123456789ab"
Result of an instance execution