Rentals
List containers
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
List containers
Retrieve a list of containers for a specific stack within a rental
GET
/
rentals
/
{rentalId}
/
stacks
/
{stackId}
/
containers
curl --request GET \
--url https://restapi.gputrader.io/v1/rentals/{rentalId}/stacks/{stackId}/containers \
--header 'X-API-Key: <api-key>'
[
{
"Name": "<string>",
"Id": "<string>",
"Created": 123,
"Labels": [
"<string>"
],
"Ports": [
{
"PrivatePort": 123,
"Type": "tcp",
"IP": "<string>",
"PublicPort": 123
}
],
"State": "<string>"
}
]
Authorizations
Response
200
application/json
Successfully retrieved containers
The response is of type object[]
.
curl --request GET \
--url https://restapi.gputrader.io/v1/rentals/{rentalId}/stacks/{stackId}/containers \
--header 'X-API-Key: <api-key>'
[
{
"Name": "<string>",
"Id": "<string>",
"Created": 123,
"Labels": [
"<string>"
],
"Ports": [
{
"PrivatePort": 123,
"Type": "tcp",
"IP": "<string>",
"PublicPort": 123
}
],
"State": "<string>"
}
]