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-e3fc8da4-3e13-460b-a31e-8f25b539e901/env
{

}: 

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NSIsImVtYWlsIjoiZW1haWwtMjExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTR9.bqH_7VDO5C6-Ax5OciUX7iivu7BoT9AI4zTYMggJBBU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-e3fc8da4-3e13-460b-a31e-8f25b539e901/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NSIsImVtYWlsIjoiZW1haWwtMjExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTR9.bqH_7VDO5C6-Ax5OciUX7iivu7BoT9AI4zTYMggJBBU" \
	-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":"b0e833b2-cefe-48d3-a8c1-298b1ca9b1f7","uris":[],"users":null}}}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9f92c022-ac9c-4343-81d1-cd5a3b488e70
Content-Length: 389
X-Content-Type-Options: nosniff