Skip to main content
POST
Create container

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project id

Example:

1

region_id
integer
required

Region id

Example:

1

Body

application/json
flavor
string
required

Container flavor

Pattern: ^[0-9]{0,12}mCPU-[0-9]{0,12}M[i]?B$
Example:

"250mCPU-512MiB"

image
string
required

Container image

Maximum string length: 230
Example:

"nginx:latest"

listening_port
integer
required

Container listening port

Required range: 1 <= x <= 65535
Example:

80

name
string
required

Container name

Maximum string length: 43
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9.-]+[a-zA-Z0-9]$
Example:

"nginx"

scale
ScaleSerializer · object
required

Container autoscaling

Example:
commands
string | null

Container's commands

Example:

"python3 app.py -m test"

description
string
default:""

Container description

Maximum string length: 255
Example:

"My first container"

envs
Envs · object

Container environment variables

Example:
is_api_key_auth
boolean
default:false

Enable/Disable api key authentication. Enable api key is temporarily disabled. As a result, using CaaS with authorization is currently not supported.

Example:

false

is_disabled
boolean
default:false

Set to true if container is disabled

Example:

false

logging
LoggingSerializer · object | null

Logging configuration

Example:
pull_secret
string | null

Image pull secret

Maximum string length: 400
Example:

"my-secret"

timeout
integer | null

Container timeout in seconds

Required range: 0 <= x <= 180
Example:

5

Response

200 - application/json

OK

tasks
string[]
required

List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:

  • GET /v1/tasks/{task_id} - Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.
Example: