fbpx
GEThttps://api.spotinst.io/functions/environment/{ENVIRONMENT_ID}/userDocument?accountId={ACCOUNT_ID}

Describe all the documents in the environment

URL Parameters

Parameter Type Description
ENVIRONMENT_ID * String

Spotinst Function environment ID

Example: env-12345
ACCOUNT_ID String

Account ID from Spotinst console

Example: act-12345
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "count": "1",
  "items": [
    {
      "key": "string",
      "environmentId" : "string",
      "createdAt": "Date",
      "updatedAt": "Date"
    }
  ]
}