Skip to Content
gpuvoxDocumentation
Account and rentals

Stop a rental

Stop the machine and end billing. Its disk is erased.

DELETE
/api/v1/rentals/{id}

Stop the machine and end billing. Its disk is erased.

Authorization

apiKey
headerAuthorizationBearer <token>

A key created in the console under API keys, sent as Authorization: Bearer vox_…

Path Parameters

id*string

Response Body

The stopped rental.

application/json
  1. response
id?string
status?string
Value in"provisioning""running""stopped""failed"
machine?string
specs?string
location?string
offerId?string
image?string
pricePerHour?number

USD per hour, fixed for this rental.

chargedUsd?number

Machine time charged so far.

diskGb?|

Disk allocated, GB. Null when the disk is part of the machine.

transferUsd?number

Data transfer charged so far.

startedAt?string
Formatdate-time
stoppedAt?|
Formatdate-time
stopReason?string|null
ssh?|

Present once status is running.

Example Request
curl -X DELETE 'https://gpuvox.com/api/v1/rentals/string'
Example Response
{  "id": "string",  "status": "provisioning",  "machine": "string",  "specs": "string",  "location": "string",  "offerId": "string",  "image": "string",  "pricePerHour": 0,  "chargedUsd": 0,  "diskGb": 0,  "transferUsd": 0,  "startedAt": "2019-08-24T14:15:22Z",  "stoppedAt": "2019-08-24T14:15:22Z",  "stopReason": "string",  "ssh": {    "host": "string",    "port": 0,    "user": "string",    "command": "string"  }}