Spot

Get Bids

get

Get all Spot bids for a project, or all user's projects if not specified

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
next_cursorany · nullableOptional
sort_bystring · enum · nullableOptionalPossible values:
sort_dirstring · enum · nullableOptionalPossible values:
projectstring · nullableOptionalExample: proj_abc123456
instance_typestring · nullableOptionalExample: it_abc123456
regionstring · nullableOptionalExample: us-central1-a
statusstring · enum · nullableOptionalPossible values:
namestring · nullableOptional
limitinteger · min: 1 · max: 100 · nullableOptional
Responses
get
/v2/spot/bids

Create Bid

post

Place a new Spot bid

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
projectstringRequiredExample: proj_abc123456
regionstringRequiredExample: us-central1-a
instance_typestringRequiredExample: it_abc123456
limit_pricestringRequiredExample: $25.60
instance_quantityintegerRequiredExample: 4
namestringRequired
Responses
chevron-right
201

Successful Response

application/json
post
/v2/spot/bids

Get Bid

get

Get a single Spot bid by FID

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
bid_fidstringRequired
Responses
get
/v2/spot/bids/{bid_fid}

Cancel Bid

delete

Cancel a Spot bid

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
bid_fidstringRequired
Responses
delete
/v2/spot/bids/{bid_fid}

No content

Update Bid

patch

Update the limit price of a Spot bid

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
bid_fidstringRequired
Body
limit_pricestring · nullableOptional
pausedboolean · nullableOptional
volumesstring[] · nullableOptional
memory_gbinteger · nullableOptional
Responses
patch
/v2/spot/bids/{bid_fid}

Get Bid Status

get

Get detailed status of a Spot bid.

Returns a detailed status that includes instance-level status information. The status can be one of: Open, Allocated, Preempting, Terminated, Paused, Relocating.

"Relocating" indicates that part of the order is being relocated.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
bid_fidstringRequired
Responses
get
/v2/spot/bids/{bid_fid}/status

Get Bid History

get

Get the history of events for a Spot bid.

Returns a list of historical events including:

  • placing the bid

  • pausing the bid

  • resuming the bid

  • terminating the bid

  • changes to the limit price

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
bid_fidstringRequired
Responses
get
/v2/spot/bids/{bid_fid}/history

Get Auctions

get

Get the Spot availability across all regions.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
get
/v2/spot/availability
200

Successful Response

Last updated