Cancel a Spot bid
DELETE /v2/spot/bids/{bid_fid} HTTP/1.1 Host: api.mlfoundry.com Authorization: Bearer fkey_<key> Accept: */*
Successful Response
No content
Get all Spot bids for a project
created_at
status
asc
desc
it_abc123456
us-central1-a
Open
Allocated
Preempting
Terminated
GET /v2/spot/bids HTTP/1.1 Host: api.mlfoundry.com Authorization: Bearer fkey_<key> Accept: */*
{ "data": [ { "fid": "bid_abc123456", "name": "text", "project": "proj_abc123456", "created_at": "2024-01-01T00:00:00Z", "deactivated_at": "2024-01-01T00:00:00Z", "limit_price": "$15.60", "instance_quantity": 4, "instance_type": "it_abc123456", "region": "us-central1-a", "instances": [ "inst_abc123456" ], "launch_specification": { "volumes": [ "vol_abc123456" ], "ssh_keys": [ "sshkey_abc123456" ], "startup_script": "text", "kubernetes_cluster": "clust_abc123456" }, "status": "Open" } ], "next_cursor": "text" }
Place a new Spot bid
proj_abc123456
$25.60
4
POST /v2/spot/bids HTTP/1.1 Host: api.mlfoundry.com Authorization: Bearer fkey_<key> Content-Type: application/json Accept: */* Content-Length: 291 { "project": "proj_abc123456", "region": "us-central1-a", "instance_type": "it_abc123456", "limit_price": "$25.60", "instance_quantity": 4, "name": "text", "launch_specification": { "volumes": [ "vol_abc123456" ], "ssh_keys": [ "sshkey_abc123456" ], "startup_script": "text", "kubernetes_cluster": "clust_abc123456" } }
{ "fid": "bid_abc123456", "name": "text", "project": "proj_abc123456", "created_at": "2024-01-01T00:00:00Z", "deactivated_at": "2024-01-01T00:00:00Z", "limit_price": "$15.60", "instance_quantity": 4, "instance_type": "it_abc123456", "region": "us-central1-a", "instances": [ "inst_abc123456" ], "launch_specification": { "volumes": [ "vol_abc123456" ], "ssh_keys": [ "sshkey_abc123456" ], "startup_script": "text", "kubernetes_cluster": "clust_abc123456" }, "status": "Open" }
Update the limit price of a Spot bid
PATCH /v2/spot/bids/{bid_fid} HTTP/1.1 Host: api.mlfoundry.com Authorization: Bearer fkey_<key> Content-Type: application/json Accept: */* Content-Length: 22 { "limit_price": "text" }