curl --request POST \
--url https://api.dispersed.com/v1/job-recipes/{uuid}/cook \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"cpu_count": 1,
"gpu_count": 1,
"gpu_name": "<string>",
"gpu_registry_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min_vram_gb": 1,
"min_ram_gb": 1,
"min_storage_gb": 1,
"max_node_count": 123,
"max_retry_count": 1,
"max_timeout_assign_ms": 300001,
"max_timeout_start_ms": 120001,
"max_timeout_run_ms": 60001,
"parameters": {
"parameters": {
"allowed_ips": [
"<string>"
],
"env": {},
"host": "<string>",
"image": "<string>",
"imagesrc": "<string>",
"ports": [
123
],
"secret": "<string>",
"sshkey": "<string>",
"tag": "<string>",
"user": "<string>",
"volumes": [
{
"image": "<string>",
"mount": "<string>",
"registry": "<string>",
"secret": "<string>",
"tag": "<string>",
"user": "<string>"
}
]
},
"type": "docker"
},
"target_node_uuid": "01234567-89ab-cdef-0123-456789abcdef",
"allowed_region_codes": []
}
'import requests
url = "https://api.dispersed.com/v1/job-recipes/{uuid}/cook"
payload = {
"title": "<string>",
"description": "<string>",
"cpu_count": 1,
"gpu_count": 1,
"gpu_name": "<string>",
"gpu_registry_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min_vram_gb": 1,
"min_ram_gb": 1,
"min_storage_gb": 1,
"max_node_count": 123,
"max_retry_count": 1,
"max_timeout_assign_ms": 300001,
"max_timeout_start_ms": 120001,
"max_timeout_run_ms": 60001,
"parameters": {
"parameters": {
"allowed_ips": ["<string>"],
"env": {},
"host": "<string>",
"image": "<string>",
"imagesrc": "<string>",
"ports": [123],
"secret": "<string>",
"sshkey": "<string>",
"tag": "<string>",
"user": "<string>",
"volumes": [
{
"image": "<string>",
"mount": "<string>",
"registry": "<string>",
"secret": "<string>",
"tag": "<string>",
"user": "<string>"
}
]
},
"type": "docker"
},
"target_node_uuid": "01234567-89ab-cdef-0123-456789abcdef",
"allowed_region_codes": []
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
cpu_count: 1,
gpu_count: 1,
gpu_name: '<string>',
gpu_registry_uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
min_vram_gb: 1,
min_ram_gb: 1,
min_storage_gb: 1,
max_node_count: 123,
max_retry_count: 1,
max_timeout_assign_ms: 300001,
max_timeout_start_ms: 120001,
max_timeout_run_ms: 60001,
parameters: {
parameters: {
allowed_ips: ['<string>'],
env: {},
host: '<string>',
image: '<string>',
imagesrc: '<string>',
ports: [123],
secret: '<string>',
sshkey: '<string>',
tag: '<string>',
user: '<string>',
volumes: [
{
image: '<string>',
mount: '<string>',
registry: '<string>',
secret: '<string>',
tag: '<string>',
user: '<string>'
}
]
},
type: 'docker'
},
target_node_uuid: '01234567-89ab-cdef-0123-456789abcdef',
allowed_region_codes: []
})
};
fetch('https://api.dispersed.com/v1/job-recipes/{uuid}/cook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dispersed.com/v1/job-recipes/{uuid}/cook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'description' => '<string>',
'cpu_count' => 1,
'gpu_count' => 1,
'gpu_name' => '<string>',
'gpu_registry_uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'min_vram_gb' => 1,
'min_ram_gb' => 1,
'min_storage_gb' => 1,
'max_node_count' => 123,
'max_retry_count' => 1,
'max_timeout_assign_ms' => 300001,
'max_timeout_start_ms' => 120001,
'max_timeout_run_ms' => 60001,
'parameters' => [
'parameters' => [
'allowed_ips' => [
'<string>'
],
'env' => [
],
'host' => '<string>',
'image' => '<string>',
'imagesrc' => '<string>',
'ports' => [
123
],
'secret' => '<string>',
'sshkey' => '<string>',
'tag' => '<string>',
'user' => '<string>',
'volumes' => [
[
'image' => '<string>',
'mount' => '<string>',
'registry' => '<string>',
'secret' => '<string>',
'tag' => '<string>',
'user' => '<string>'
]
]
],
'type' => 'docker'
],
'target_node_uuid' => '01234567-89ab-cdef-0123-456789abcdef',
'allowed_region_codes' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dispersed.com/v1/job-recipes/{uuid}/cook"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"cpu_count\": 1,\n \"gpu_count\": 1,\n \"gpu_name\": \"<string>\",\n \"gpu_registry_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min_vram_gb\": 1,\n \"min_ram_gb\": 1,\n \"min_storage_gb\": 1,\n \"max_node_count\": 123,\n \"max_retry_count\": 1,\n \"max_timeout_assign_ms\": 300001,\n \"max_timeout_start_ms\": 120001,\n \"max_timeout_run_ms\": 60001,\n \"parameters\": {\n \"parameters\": {\n \"allowed_ips\": [\n \"<string>\"\n ],\n \"env\": {},\n \"host\": \"<string>\",\n \"image\": \"<string>\",\n \"imagesrc\": \"<string>\",\n \"ports\": [\n 123\n ],\n \"secret\": \"<string>\",\n \"sshkey\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\",\n \"volumes\": [\n {\n \"image\": \"<string>\",\n \"mount\": \"<string>\",\n \"registry\": \"<string>\",\n \"secret\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\"\n }\n ]\n },\n \"type\": \"docker\"\n },\n \"target_node_uuid\": \"01234567-89ab-cdef-0123-456789abcdef\",\n \"allowed_region_codes\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dispersed.com/v1/job-recipes/{uuid}/cook")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"cpu_count\": 1,\n \"gpu_count\": 1,\n \"gpu_name\": \"<string>\",\n \"gpu_registry_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min_vram_gb\": 1,\n \"min_ram_gb\": 1,\n \"min_storage_gb\": 1,\n \"max_node_count\": 123,\n \"max_retry_count\": 1,\n \"max_timeout_assign_ms\": 300001,\n \"max_timeout_start_ms\": 120001,\n \"max_timeout_run_ms\": 60001,\n \"parameters\": {\n \"parameters\": {\n \"allowed_ips\": [\n \"<string>\"\n ],\n \"env\": {},\n \"host\": \"<string>\",\n \"image\": \"<string>\",\n \"imagesrc\": \"<string>\",\n \"ports\": [\n 123\n ],\n \"secret\": \"<string>\",\n \"sshkey\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\",\n \"volumes\": [\n {\n \"image\": \"<string>\",\n \"mount\": \"<string>\",\n \"registry\": \"<string>\",\n \"secret\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\"\n }\n ]\n },\n \"type\": \"docker\"\n },\n \"target_node_uuid\": \"01234567-89ab-cdef-0123-456789abcdef\",\n \"allowed_region_codes\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dispersed.com/v1/job-recipes/{uuid}/cook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"cpu_count\": 1,\n \"gpu_count\": 1,\n \"gpu_name\": \"<string>\",\n \"gpu_registry_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min_vram_gb\": 1,\n \"min_ram_gb\": 1,\n \"min_storage_gb\": 1,\n \"max_node_count\": 123,\n \"max_retry_count\": 1,\n \"max_timeout_assign_ms\": 300001,\n \"max_timeout_start_ms\": 120001,\n \"max_timeout_run_ms\": 60001,\n \"parameters\": {\n \"parameters\": {\n \"allowed_ips\": [\n \"<string>\"\n ],\n \"env\": {},\n \"host\": \"<string>\",\n \"image\": \"<string>\",\n \"imagesrc\": \"<string>\",\n \"ports\": [\n 123\n ],\n \"secret\": \"<string>\",\n \"sshkey\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\",\n \"volumes\": [\n {\n \"image\": \"<string>\",\n \"mount\": \"<string>\",\n \"registry\": \"<string>\",\n \"secret\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\"\n }\n ]\n },\n \"type\": \"docker\"\n },\n \"target_node_uuid\": \"01234567-89ab-cdef-0123-456789abcdef\",\n \"allowed_region_codes\": []\n}"
response = http.request(request)
puts response.read_body{
"object": "job",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"cpu_count": 123,
"gpu_count": 123,
"min_ram_gb": 123,
"min_vram_gb": 123,
"min_storage_gb": 123,
"parameters": {
"parameters": {
"allowed_ips": [
"<string>"
],
"env": {},
"host": "<string>",
"image": "<string>",
"imagesrc": "<string>",
"ports": [
123
],
"secret": "<string>",
"sshkey": "<string>",
"tag": "<string>",
"user": "<string>",
"volumes": [
{
"image": "<string>",
"mount": "<string>",
"registry": "<string>",
"secret": "<string>",
"tag": "<string>",
"user": "<string>"
}
]
},
"type": "docker"
},
"timeout_assign_at_ms": 123,
"uuid": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"gpu_name": "<string>",
"gpu_registry_uuid": "<string>",
"max_timeout_assign_ms": 123,
"max_timeout_run_ms": 123,
"max_timeout_start_ms": 123,
"max_retry_count": 123,
"max_node_count": 123,
"image_size_bytes": 123,
"allowed_region_codes": [],
"container_access_tokens": [],
"status_reason": "<string>",
"source_recipe_uuid": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"timestamp": "<string>",
"details": []
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"timestamp": "<string>",
"details": []
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"timestamp": "<string>",
"details": []
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"timestamp": "<string>",
"details": []
}
}Cook Job from Recipe
curl --request POST \
--url https://api.dispersed.com/v1/job-recipes/{uuid}/cook \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"cpu_count": 1,
"gpu_count": 1,
"gpu_name": "<string>",
"gpu_registry_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min_vram_gb": 1,
"min_ram_gb": 1,
"min_storage_gb": 1,
"max_node_count": 123,
"max_retry_count": 1,
"max_timeout_assign_ms": 300001,
"max_timeout_start_ms": 120001,
"max_timeout_run_ms": 60001,
"parameters": {
"parameters": {
"allowed_ips": [
"<string>"
],
"env": {},
"host": "<string>",
"image": "<string>",
"imagesrc": "<string>",
"ports": [
123
],
"secret": "<string>",
"sshkey": "<string>",
"tag": "<string>",
"user": "<string>",
"volumes": [
{
"image": "<string>",
"mount": "<string>",
"registry": "<string>",
"secret": "<string>",
"tag": "<string>",
"user": "<string>"
}
]
},
"type": "docker"
},
"target_node_uuid": "01234567-89ab-cdef-0123-456789abcdef",
"allowed_region_codes": []
}
'import requests
url = "https://api.dispersed.com/v1/job-recipes/{uuid}/cook"
payload = {
"title": "<string>",
"description": "<string>",
"cpu_count": 1,
"gpu_count": 1,
"gpu_name": "<string>",
"gpu_registry_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"min_vram_gb": 1,
"min_ram_gb": 1,
"min_storage_gb": 1,
"max_node_count": 123,
"max_retry_count": 1,
"max_timeout_assign_ms": 300001,
"max_timeout_start_ms": 120001,
"max_timeout_run_ms": 60001,
"parameters": {
"parameters": {
"allowed_ips": ["<string>"],
"env": {},
"host": "<string>",
"image": "<string>",
"imagesrc": "<string>",
"ports": [123],
"secret": "<string>",
"sshkey": "<string>",
"tag": "<string>",
"user": "<string>",
"volumes": [
{
"image": "<string>",
"mount": "<string>",
"registry": "<string>",
"secret": "<string>",
"tag": "<string>",
"user": "<string>"
}
]
},
"type": "docker"
},
"target_node_uuid": "01234567-89ab-cdef-0123-456789abcdef",
"allowed_region_codes": []
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
cpu_count: 1,
gpu_count: 1,
gpu_name: '<string>',
gpu_registry_uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
min_vram_gb: 1,
min_ram_gb: 1,
min_storage_gb: 1,
max_node_count: 123,
max_retry_count: 1,
max_timeout_assign_ms: 300001,
max_timeout_start_ms: 120001,
max_timeout_run_ms: 60001,
parameters: {
parameters: {
allowed_ips: ['<string>'],
env: {},
host: '<string>',
image: '<string>',
imagesrc: '<string>',
ports: [123],
secret: '<string>',
sshkey: '<string>',
tag: '<string>',
user: '<string>',
volumes: [
{
image: '<string>',
mount: '<string>',
registry: '<string>',
secret: '<string>',
tag: '<string>',
user: '<string>'
}
]
},
type: 'docker'
},
target_node_uuid: '01234567-89ab-cdef-0123-456789abcdef',
allowed_region_codes: []
})
};
fetch('https://api.dispersed.com/v1/job-recipes/{uuid}/cook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dispersed.com/v1/job-recipes/{uuid}/cook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'description' => '<string>',
'cpu_count' => 1,
'gpu_count' => 1,
'gpu_name' => '<string>',
'gpu_registry_uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'min_vram_gb' => 1,
'min_ram_gb' => 1,
'min_storage_gb' => 1,
'max_node_count' => 123,
'max_retry_count' => 1,
'max_timeout_assign_ms' => 300001,
'max_timeout_start_ms' => 120001,
'max_timeout_run_ms' => 60001,
'parameters' => [
'parameters' => [
'allowed_ips' => [
'<string>'
],
'env' => [
],
'host' => '<string>',
'image' => '<string>',
'imagesrc' => '<string>',
'ports' => [
123
],
'secret' => '<string>',
'sshkey' => '<string>',
'tag' => '<string>',
'user' => '<string>',
'volumes' => [
[
'image' => '<string>',
'mount' => '<string>',
'registry' => '<string>',
'secret' => '<string>',
'tag' => '<string>',
'user' => '<string>'
]
]
],
'type' => 'docker'
],
'target_node_uuid' => '01234567-89ab-cdef-0123-456789abcdef',
'allowed_region_codes' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dispersed.com/v1/job-recipes/{uuid}/cook"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"cpu_count\": 1,\n \"gpu_count\": 1,\n \"gpu_name\": \"<string>\",\n \"gpu_registry_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min_vram_gb\": 1,\n \"min_ram_gb\": 1,\n \"min_storage_gb\": 1,\n \"max_node_count\": 123,\n \"max_retry_count\": 1,\n \"max_timeout_assign_ms\": 300001,\n \"max_timeout_start_ms\": 120001,\n \"max_timeout_run_ms\": 60001,\n \"parameters\": {\n \"parameters\": {\n \"allowed_ips\": [\n \"<string>\"\n ],\n \"env\": {},\n \"host\": \"<string>\",\n \"image\": \"<string>\",\n \"imagesrc\": \"<string>\",\n \"ports\": [\n 123\n ],\n \"secret\": \"<string>\",\n \"sshkey\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\",\n \"volumes\": [\n {\n \"image\": \"<string>\",\n \"mount\": \"<string>\",\n \"registry\": \"<string>\",\n \"secret\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\"\n }\n ]\n },\n \"type\": \"docker\"\n },\n \"target_node_uuid\": \"01234567-89ab-cdef-0123-456789abcdef\",\n \"allowed_region_codes\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dispersed.com/v1/job-recipes/{uuid}/cook")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"cpu_count\": 1,\n \"gpu_count\": 1,\n \"gpu_name\": \"<string>\",\n \"gpu_registry_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min_vram_gb\": 1,\n \"min_ram_gb\": 1,\n \"min_storage_gb\": 1,\n \"max_node_count\": 123,\n \"max_retry_count\": 1,\n \"max_timeout_assign_ms\": 300001,\n \"max_timeout_start_ms\": 120001,\n \"max_timeout_run_ms\": 60001,\n \"parameters\": {\n \"parameters\": {\n \"allowed_ips\": [\n \"<string>\"\n ],\n \"env\": {},\n \"host\": \"<string>\",\n \"image\": \"<string>\",\n \"imagesrc\": \"<string>\",\n \"ports\": [\n 123\n ],\n \"secret\": \"<string>\",\n \"sshkey\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\",\n \"volumes\": [\n {\n \"image\": \"<string>\",\n \"mount\": \"<string>\",\n \"registry\": \"<string>\",\n \"secret\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\"\n }\n ]\n },\n \"type\": \"docker\"\n },\n \"target_node_uuid\": \"01234567-89ab-cdef-0123-456789abcdef\",\n \"allowed_region_codes\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dispersed.com/v1/job-recipes/{uuid}/cook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"cpu_count\": 1,\n \"gpu_count\": 1,\n \"gpu_name\": \"<string>\",\n \"gpu_registry_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"min_vram_gb\": 1,\n \"min_ram_gb\": 1,\n \"min_storage_gb\": 1,\n \"max_node_count\": 123,\n \"max_retry_count\": 1,\n \"max_timeout_assign_ms\": 300001,\n \"max_timeout_start_ms\": 120001,\n \"max_timeout_run_ms\": 60001,\n \"parameters\": {\n \"parameters\": {\n \"allowed_ips\": [\n \"<string>\"\n ],\n \"env\": {},\n \"host\": \"<string>\",\n \"image\": \"<string>\",\n \"imagesrc\": \"<string>\",\n \"ports\": [\n 123\n ],\n \"secret\": \"<string>\",\n \"sshkey\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\",\n \"volumes\": [\n {\n \"image\": \"<string>\",\n \"mount\": \"<string>\",\n \"registry\": \"<string>\",\n \"secret\": \"<string>\",\n \"tag\": \"<string>\",\n \"user\": \"<string>\"\n }\n ]\n },\n \"type\": \"docker\"\n },\n \"target_node_uuid\": \"01234567-89ab-cdef-0123-456789abcdef\",\n \"allowed_region_codes\": []\n}"
response = http.request(request)
puts response.read_body{
"object": "job",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"cpu_count": 123,
"gpu_count": 123,
"min_ram_gb": 123,
"min_vram_gb": 123,
"min_storage_gb": 123,
"parameters": {
"parameters": {
"allowed_ips": [
"<string>"
],
"env": {},
"host": "<string>",
"image": "<string>",
"imagesrc": "<string>",
"ports": [
123
],
"secret": "<string>",
"sshkey": "<string>",
"tag": "<string>",
"user": "<string>",
"volumes": [
{
"image": "<string>",
"mount": "<string>",
"registry": "<string>",
"secret": "<string>",
"tag": "<string>",
"user": "<string>"
}
]
},
"type": "docker"
},
"timeout_assign_at_ms": 123,
"uuid": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"gpu_name": "<string>",
"gpu_registry_uuid": "<string>",
"max_timeout_assign_ms": 123,
"max_timeout_run_ms": 123,
"max_timeout_start_ms": 123,
"max_retry_count": 123,
"max_node_count": 123,
"image_size_bytes": 123,
"allowed_region_codes": [],
"container_access_tokens": [],
"status_reason": "<string>",
"source_recipe_uuid": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"timestamp": "<string>",
"details": []
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"timestamp": "<string>",
"details": []
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"timestamp": "<string>",
"details": []
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"timestamp": "<string>",
"details": []
}
}Path Parameters
Body
Override the job title from the recipe.
Override the job description from the recipe.
Override the task type. BATCH jobs run to completion; PERSISTENT jobs run indefinitely.
BATCH, PERSISTENT Override the number of CPU cores required.
x >= 0Override the number of GPUs required.
x >= 0Override the GPU name requirement. Cannot be used with gpu_registry_uuid.
Override with a specific GPU registry UUID for precise matching. Cannot be used with gpu_name.
Override the minimum VRAM in GB.
x >= 0Override the minimum RAM in GB.
x >= 0Override the minimum storage in GB.
x >= 0Override the maximum number of nodes.
Override the maximum retry count.
x >= 0Override the assignment timeout in milliseconds.
x >= 300000Override the start timeout in milliseconds.
x >= 120000Override the run timeout in milliseconds. Required for BATCH tasks, must be null for PERSISTENT tasks.
x >= 60000Override the container/execution parameters.
Show child attributes
Show child attributes
ADMIN-only. Restrict this cooked Job to the Node with this UUID.
"01234567-89ab-cdef-0123-456789abcdef"
Override the recipe`s allowed_region_codes for this cooked Job.
36ca-central-1, ca-west-1, mx-central-1, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2, eu-central-1, eu-central-2, eu-north-1, eu-south-1, eu-south-2, eu-west-1, eu-west-2, eu-west-3, ap-east-1, ap-east-2, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-south-2, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-4, ap-southeast-5, ap-southeast-6, ap-southeast-7, cn-north-1, cn-northwest-1, af-south-1, il-central-1, me-central-1, me-south-1 Response
Job created from recipe successfully
job PENDING, ASSIGNED, RUNNING, COMPLETED, CANCELLED, FAILED BATCH, PERSISTENT Show child attributes
Show child attributes
Coarse geographic-network region identifier (AWS-style naming).
ca-central-1, ca-west-1, mx-central-1, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2, eu-central-1, eu-central-2, eu-north-1, eu-south-1, eu-south-2, eu-west-1, eu-west-2, eu-west-3, ap-east-1, ap-east-2, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-south-2, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-4, ap-southeast-5, ap-southeast-6, ap-southeast-7, cn-north-1, cn-northwest-1, af-south-1, il-central-1, me-central-1, me-south-1, null "us-west-2"
Show child attributes
Show child attributes