cURL
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 } } }
Creates a new container
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Container to create
Container name
Show child attributes
Container description
Size configuration for container resources
Container created successfully