Home
Version 3
Environment Variable Groups API

Environment Variable Groups API

Getting the contents of the staging environment variable group

GET /v2/config/environment_variable_groups/staging

returns the set of default environment variables available during staging

Request

Route

GET /v2/config/environment_variable_groups/staging

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC03MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ4fQ.WWKgRlIxMqcHjvM472Nqar0JTxsn2cRzDxCKgR2w_g8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/environment_variable_groups/staging" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC03MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ4fQ.WWKgRlIxMqcHjvM472Nqar0JTxsn2cRzDxCKgR2w_g8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "abc": 123,
  "do-re-me": "far-so-la-tee"
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ec04d13e-0c66-499f-ad5e-1d2a12d505e7
Content-Length: 47
X-Content-Type-Options: nosniff