GET
/
rentals
/
{rentalId}
/
stacks
/
{stackId}
/
containers
List containers
curl --request GET \
  --url https://api.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

X-API-Key
string
header
required

Path Parameters

rentalId
string
required

Rental ID

stackId
string
required

Stack ID

Response

Successfully retrieved containers

Name
string

Name of the container

Id
string

Container ID

Created
number

Unix timestamp of container creation

Labels
string[]

Labels associated with the container

Ports
object[]
State
string

Current state of the container