POST
/admin/spawn-node
const url = 'https://example.com/admin/spawn-node';const options = { method: 'POST', headers: {'X-Tenzir-AdminKey': '<X-Tenzir-AdminKey>', 'Content-Type': 'application/json'}, body: '{"tenant_id":"example","image":"example","node_name":"example","memory":16384,"lifetime":360}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/admin/spawn-node \ --header 'Content-Type: application/json' \ --header 'X-Tenzir-AdminKey: <X-Tenzir-AdminKey>' \ --data '{ "tenant_id": "example", "image": "example", "node_name": "example", "memory": 16384, "lifetime": 360 }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
Node
object
name
required
Name
string
key
required
Key
string
id
required
Id
string
create_date_time
required
Create Date Time
string format: date-time
demo
required
Demo
boolean
ephemeral
Ephemeral
boolean
Example
{ "ephemeral": false}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}