GET
/
rentals
/
{rentalId}
/
stacks
curl --request GET \
  --url https://restapi.gputrader.io/v1/rentals/{rentalId}/stacks \
  --header 'X-API-Key: <api-key>'
[
  {
    "template": {},
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "stackId": "<string>",
    "envId": "<string>",
    "pStackId": 123,
    "tunnels": [
      {}
    ],
    "stackName": "<string>",
    "pStackName": "<string>",
    "userId": "<string>",
    "rentalId": "<string>",
    "errorMsg": "<string>",
    "status": "APPLYING"
  }
]

Authorizations

X-API-Key
string
header
required

Path Parameters

rentalId
string
required

Rental ID

Response

200
application/json
Successfully retrieved stacks
template
object
required

Stack template configuration

createdAt
string
required

Timestamp when the stack was created

stackId
string
required

Unique identifier for the stack

envId
string
required

Environment identifier

stackName
string
required

Name of the stack

pStackName
string
required

Provider stack name

userId
string
required

ID of the user who created the stack

rentalId
string
required

ID of the associated rental

updatedAt
string

Timestamp when the stack was last updated

pStackId
number

Provider stack identifier

tunnels
object[]

Array of tunnel configurations

errorMsg
string

Error message if stack deployment failed

status
enum<string>

Current status of the stack

Available options:
APPLYING,
ERROR,
REMOVING,
APPLIED