Skip to main content
POST
/
compute
/
containers
Create a container
curl --request POST \
  --url https://api.quiva.ai/compute/containers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "my-container",
  "description": "A container for my application",
  "compute_asset": {
    "collection_topic": "my-namespace",
    "runtime": "docker",
    "assets": [
      {
        "asset_name": "Dockerfile",
        "asset_type": "file",
        "asset_value": "RlJPTSBub2RlOjE4CldPUktESVIgL2FwcApDT1BZIC4gLgpSVU4gbnBtIGluc3RhbGwKRVhQT1NFIDgwODAKQ01EIFsibm9kZSIsICJpbmRleC5qcyJdCg==",
        "link": false
      }
    ],
    "read_only_fs": false
  },
  "monitor_config": {
    "ttl": 604800000,
    "store_payload": true
  }
}
'
{
  "body": {
    "description": "A container for my application",
    "name": "my-container",
    "runtime": "docker",
    "subject": "compute.my-namespace.container.123456789",
    "type": "created",
    "modified": 1714378974,
    "compute_asset": {
      "collection_topic": "my-namespace",
      "service": "123456789",
      "runtime": "docker",
      "read_only_fs": false
    },
    "monitor_config": {
      "ttl": 604800000,
      "store_payload": true
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Container to create

name
string
required

Container name

compute_asset
object
required
monitor_config
object
required
description
string

Container description

size
string

Size configuration for container resources

Response

Container created successfully

body
object