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

Get single value that matches key in document store

Parameter Type Description
ENVIRONMENT_ID * String

Spotinst Function environment ID

Example: env-12345
DOCUMENT_KEY * String

Key that matches to the value you wish to get

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"
  }
}