latestSwagger 2.02026-08-1095121164.0 KB

94758829689e

sites

Get Environment Variables

Retrieves environment variables for an environment.

get/v0/sites/{site_id}/environments/{env_id}/variables

Path parameters

site_idstring required

Site UUID

env_idstring required

Environment ID

Response

CACHE_BINDING_IDstring

Cache binding ID

CACHE_HOSTstring

Cache host

CACHE_PASSWORDstring

Cache (Redis) password

CACHE_PORTstring

Cache (Redis) port

DB_NAMEstring

Database name

DB_PASSWORDstring

Database password

DB_PORTstring

Database port

DB_USERstring

Database username

Example response

{
  "CACHE_PORT": "10695",
  "DB_NAME": "pantheon",
  "DB_PORT": "10692",
  "DB_USER": "pantheon"
}