Home
Version 3
Apps API

Apps API

Get the env for an App

GET /v2/apps/:guid/env

Get the environment variables for an App using the app guid. Restricted to SpaceDeveloper role.

Request

Route

GET /v2/apps/cc2b26e9-e46a-44a8-a325-9347b5860e4b/env

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMCIsImVtYWlsIjoiZW1haWwtNzhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDc4MjkyN30.Q77pg8MjPHwIAGQDCEpxmY7vJoyefF9UfJ2b_ad5bDU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/cc2b26e9-e46a-44a8-a325-9347b5860e4b/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMCIsImVtYWlsIjoiZW1haWwtNzhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDc4MjkyN30.Q77pg8MjPHwIAGQDCEpxmY7vJoyefF9UfJ2b_ad5bDU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "staging_env_json": {
    "STAGING_ENV": "staging_value"
  },
  "running_env_json": {
    "RUNNING_ENV": "running_value"
  },
  "environment_json": {
    "env_var": "env_val"
  },
  "system_env_json": {
    "VCAP_SERVICES": {

    }
  },
  "application_env_json": {
    "VCAP_APPLICATION": {
      "limits": {
        "mem": 1024,
        "disk": 1024,
        "fds": 16384
      },
      "application_id": "cc2b26e9-e46a-44a8-a325-9347b5860e4b",
      "application_version": "1eaaf6fe-f5f2-40dd-be97-5a306d8f7810",
      "application_name": "name-427",
      "application_uris": [

      ],
      "version": "1eaaf6fe-f5f2-40dd-be97-5a306d8f7810",
      "name": "name-427",
      "space_name": "name-428",
      "space_id": "f78c2898-fb85-4796-a21c-d3b0d636353c",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 69f347c7-869e-4276-9739-f93922425317
Content-Length: 826
X-Content-Type-Options: nosniff