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-6f59aca7-1485-4f8d-8929-b464b6616a2b/env
{

}: 

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMn0.o7vdCbvFHI4jQQgUwR954y6KGhKspUbRdZkvUTi10BA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-6f59aca7-1485-4f8d-8929-b464b6616a2b/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMn0.o7vdCbvFHI4jQQgUwR954y6KGhKspUbRdZkvUTi10BA" \
	-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":"5511bb8b-f6d2-42de-b59d-16a1b231e8d6","uris":[],"users":null}}}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2f0ee6bd-ec4a-4673-88ed-61f83fa32bb0
Content-Length: 389
X-Content-Type-Options: nosniff