GET
/
rentals
/
{rentalId}
curl --request GET \
  --url https://restapi.gputrader.io/v1/rentals/{rentalId} \
  --header 'X-API-Key: <api-key>'
{
  "rentalId": "<string>",
  "listing": {},
  "userId": "<string>",
  "startDate": "2023-11-07T05:31:56Z",
  "endDate": "2023-11-07T05:31:56Z",
  "name": "My Instance",
  "status": "ACTIVE",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "isSeed": true
}

Authorizations

X-API-Key
string
header
required

Path Parameters

rentalId
string
required

Rental ID

Query Parameters

excludeStacks
boolean
default:false

Whether to exclude stack information from the response

Response

200
application/json
Successfully retrieved rental information
rentalId
string

Unique identifier for the rental

listing
object

Environment listing details

userId
string

ID of the user who created the rental

startDate
string

Start date and time of the rental

endDate
string

End date and time of the rental

name
string
default:My Instance

Name of the rental instance

status
enum<string>

Current status of the rental

Available options:
ACTIVE,
COMPLETE
createdAt
string

Timestamp when the rental was created

updatedAt
string

Timestamp when the rental was last updated

isSeed
boolean

Indicates if this is a seed rental