Machines
Create a machine
Machines
Create a machine
POST
/
fleets
/
{fleet}
/
machines
{
"config": {
"auto_destroy": true,
"guest": {
"cpu_kind": "<string>",
"cpus": 2,
"memory_mb": 2
},
"stop_config": {
"signal": "<string>",
"timeout": 123
},
"workload": {
"env": [
"<string>"
],
"image": "<string>",
"init": {
"cmd": [
"<string>"
],
"entrypoint": [
"<string>"
],
"user": "<string>"
},
"restart_policy": {
"max_retries": 123,
"policy": "<string>"
},
"type": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"fleet": "<string>",
"id": "<string>",
"instance_id": "<string>",
"machine_version": "<string>",
"namespace": "<string>",
"region": "<string>",
"state": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
Path Parameters
Query Parameters
Body
application/json
Response
200
application/json
OK
{
"config": {
"auto_destroy": true,
"guest": {
"cpu_kind": "<string>",
"cpus": 2,
"memory_mb": 2
},
"stop_config": {
"signal": "<string>",
"timeout": 123
},
"workload": {
"env": [
"<string>"
],
"image": "<string>",
"init": {
"cmd": [
"<string>"
],
"entrypoint": [
"<string>"
],
"user": "<string>"
},
"restart_policy": {
"max_retries": 123,
"policy": "<string>"
},
"type": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"fleet": "<string>",
"id": "<string>",
"instance_id": "<string>",
"machine_version": "<string>",
"namespace": "<string>",
"region": "<string>",
"state": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}