Instances

Get Instances

get

Get all instances for a project

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:
projectstringRequired
instance_typestring · nullableOptionalExample: it_abc123456
regionstring · nullableOptionalExample: us-central1-a
bid_fid_instring[] · nullableOptional

Comma-separated list of bid FIDs

reservation_fid_instring[] · nullableOptional

Comma-separated list of reservation FIDs

limitinteger · min: 1 · max: 100 · nullableOptional
Responses
chevron-right
200

Successful Response

application/json
next_cursorstring · nullableOptional
get
/v2/instances

Put Instance Status

patch

Trigger a status change for a set of instances.

This endpoint supports batch start and pause requests for instances. The request accepts a set of instance FIDs and a target action (STATUS_RUNNING or STATUS_PAUSED).

The response always includes an entry for every requested instance, keyed by instance FID, with that instance's current status after processing.

  • When an instance is successfully starting, its status is STATUS_CONFIRMED.

  • When an instance is successfully stopping, its status is STATUS_STOPPING.

  • If an instance cannot be stopped, its prior status is returned unchanged.

Paused instances which are associated with a reservation will accrue a credit based on the flexible usage buyback price on that reservation.

Notes:

  • Only reserved instances are supported at this time.

  • This API is asynchronous. You can check the status of the instance with the Get Status api.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
instancesstring[]Required
statusstring · enumRequiredPossible values:
Responses
chevron-right
200

Successful Response

application/json
patch
/v2/instances

Get Instance Status

get

Get the status of a specific instance by its ID. Supports authentication via mithril key or API key.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
instance_fidstringRequiredExample: inst_abc123456
Responses
chevron-right
200

Successful Response

application/json

Response model for instance status endpoint.

fidstringRequiredExample: inst_abc123456
namestringRequired
statusstring · enumRequiredExample: STATUS_NEWPossible values:
bidstring · nullableOptionalExample: bid_abc123456
reservationstring · nullableOptionalExample: res_abc123456
end_timestring · datetime · nullableOptionalExample: 2024-01-01T00:00:00Z
get
/v2/instances/{instance_fid}/status

Get Instance Status History

get

Get the history of a specific instance by its ID, or of all instances in a bid or reservation.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
projectstringRequiredExample: proj_abc123456
instance_fidstring · nullableOptionalExample: inst_abc123456
bid_fidstring · nullableOptionalExample: bid_abc123456
reservation_fidstring · nullableOptionalExample: res_abc123456
limitinteger · min: 1 · max: 100 · nullableOptional
start_timestring · datetime · nullableOptionalExample: 2024-01-01T00:00:00Z
end_timestring · datetime · nullableOptionalExample: 2024-01-01T00:00:00Z
next_cursorstring · nullableOptional
Responses
chevron-right
200

Successful Response

application/json

Response model for instance status history endpoint.

next_cursorstring · nullableOptional
get
/v2/instances/status/history

Get Instance Pricing History

get

Get the pricing history of a specific instance by its ID, or of all instances in a bid or reservation.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
projectstringRequiredExample: proj_abc123456
instance_fidstring · nullableOptionalExample: inst_abc123456
bid_fidstring · nullableOptionalExample: bid_abc123456
reservation_fidstring · nullableOptionalExample: res_abc123456
limitinteger · min: 1 · max: 100 · nullableOptional
start_timestring · datetime · nullableOptionalExample: 2024-01-01T00:00:00Z
end_timestring · datetime · nullableOptionalExample: 2024-01-01T00:00:00Z
next_cursorstring · nullableOptional
Responses
chevron-right
200

Successful Response

application/json

Response model for instance pricing history endpoint.

next_cursorstring · nullableOptional
get
/v2/instances/pricing/history

Last updated