Tasks
Submit and run new task
Changed onpost/tasks
Request
- Base URL: http://localhost:10998/api
- URL: http://localhost:10998/api/tasks
- Auth: none declared
Request body
Example request
{
"id": "23a2c7a0-6c88-48ee-8028-b9ad9f6f5c24",
"name": "horrible-mule-1-0-0",
"registry_username": "registry-user",
"registry_password": "registry-token",
"image_name": "ubuntu:22.04",
"container_user": "root",
"shm_size": 1073741824,
"host_ssh_user": "root",
"container_ssh_keys": [
"ssh-rsa <BASE64> project@dstack",
"ssh-ed25519 <BASE64> me@laptop"
]
}Response
Task info
Example response
{
"id": "23a2c7a0-6c88-48ee-8028-b9ad9f6f5c24",
"status": "terminated",
"ports": [
{
"host": 32770,
"container": 80
}
],
"container_name": "horrible-mule-1-0-0-44f7cb95",
"container_id": "a6bb8d4bb8af8ec72482ecd194ff92fac9974521aa5ad8a46abfc4f0ba858775",
"gpu_ids": [
"GPU-2b79666e-d81f-f3f8-fd47-9903f118c3f5"
]
}Changes
- breaking
added
subschema #2to therequest propertyallOflist - breaking
removed the enum value
bridgeof the request property - breaking
removed the enum value
hostof the request property - breaking
the
request property type changed fromstringto no type - info
the
request property default valuehostwas removed
- breaking
- info
api tag
Tasksadded
- info