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-8a488e5f-a7cd-450b-aa55-88edb7c2d9bb/env
{

}: 

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMyIsImVtYWlsIjoiZW1haWwtMjE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTR9.haABypEebNDb37tpKoc14DmhceJK8ENDR5eGMZJ2DPo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-8a488e5f-a7cd-450b-aa55-88edb7c2d9bb/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMyIsImVtYWlsIjoiZW1haWwtMjE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTR9.haABypEebNDb37tpKoc14DmhceJK8ENDR5eGMZJ2DPo" \
	-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":"10d9e810-7aa7-489d-baa5-add25ba1ca02","uris":[],"users":null}}}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6eb63b13-70c8-4967-b954-a0c7dbf7e513
Content-Length: 389
X-Content-Type-Options: nosniff