Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get the env for an App

GET /v3/apps/:guid/env

Request

Route

GET /v3/apps/guid-747c7326-3112-4ed6-a449-c4a38d04e1f6/env

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MiIsImVtYWlsIjoiZW1haWwtMzMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTR9.V-sG3ifYMqwj02k30WkB3rRbtG2BP5snuTW6MD2fvlI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-747c7326-3112-4ed6-a449-c4a38d04e1f6/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MiIsImVtYWlsIjoiZW1haWwtMzMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTR9.V-sG3ifYMqwj02k30WkB3rRbtG2BP5snuTW6MD2fvlI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{"environment_variables":{"SOME_KEY":"some_val"},"staging_env_json":{"STAGING_ENV":"staging_value"},"running_env_json":{"RUNNING_ENV":"running_value"},"application_env_json":{"VCAP_APPLICATION":{"limits":{"fds":16384},"application_name":"app_name","application_uris":[],"name":"app_name","space_name":"some_space","space_id":"9d45b4d5-b8a4-420c-9079-606d86d5b799","uris":[],"users":null}}}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1e407118-1a31-40a0-9f45-a45f509176d1
Content-Length: 389
X-Content-Type-Options: nosniff