Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

getting the env of an app

GET /v3/apps/:guid/env

Request

Route

GET /v3/apps/guid-94fe561f-3597-4290-9638-9b446f56f69a/env
{

}: 

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MiIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTF9.cri1aX1RkEjwjE3Yje3eqDscY8AvLv1tuWuX5aMwsQI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-94fe561f-3597-4290-9638-9b446f56f69a/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MiIsImVtYWlsIjoiZW1haWwtMTU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTF9.cri1aX1RkEjwjE3Yje3eqDscY8AvLv1tuWuX5aMwsQI" \
	-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":"1848c7bf-56e8-4599-b8cc-65d8c1a66581","uris":[],"users":null}}}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3c07ab75-709e-478b-b657-44ccec59a782
Content-Length: 389
X-Content-Type-Options: nosniff