Rentals
Create stack
Environments
- GETGet favorite status of environment listing
- POSTUpdate favorite status of environment listing
- DELRemove favorite status from environment listing
- POSTCreate a hold on an environment listing
- DELRemove a hold on an environment listing
- GETGet environment listing
- PATCHUpdate an environment listing
- GETGet environment details
- DELDelete environment
- PATCHUpdate environment
- GETGet environment installation script
- GETGet environment usage
- GETGet available filters for environment listings
- GETGet environment listings
- GETGet all environments
- POSTCreate a new environment
Rentals
- GETGet rental
- DELEnd rental
- PATCHUpdate rental
- GETGet container logs
- POSTCreate terminal instance
- GETGet container tunnel information
- GETList containers
- DELDelete stack
- GETList stacks
- POSTCreate stack
- POSTCreate rental checkout session
- GETList rentals
- POSTCreate a new rental
- GETList rentals with a specific status
Templates
Users
- DELDelete API key
- GETList API keys
- POSTCreate API key
- GETGet current user
- GETGet user notification
- DELDelete user notification
- PATCHUpdate user notification status
- GETGet user notifications
- GETGet user notifications by status
- PATCHUpdate user preferences
- GETGet user redirect URL
- POSTCreate SSH key
- DELDelete SSH key
Rentals
Create stack
Create a new stack within a rental
POST
/
rentals
/
{rentalId}
/
stacks
curl --request POST \
--url https://restapi.gputrader.io/v1/rentals/{rentalId}/stacks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"template": {
"name": "<string>",
"description": "<string>",
"content": "<string>",
"environmentVariables": {},
"insecure": false,
"isBasicAuthEnabled": false
}
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
Authorizations
Path Parameters
Rental ID
Body
application/json
Stack template name
Stack template description
Stack template content
Environment variables for the stack
Tunnel insecure flag
Tunnel basic auth flag
Response
201
application/json
Stack successfully created
The response is of type string
.
curl --request POST \
--url https://restapi.gputrader.io/v1/rentals/{rentalId}/stacks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"template": {
"name": "<string>",
"description": "<string>",
"content": "<string>",
"environmentVariables": {},
"insecure": false,
"isBasicAuthEnabled": false
}
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"