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/1519fa13-bf85-4c6f-a4d6-5df7e7b67eab/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY0IiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI1fQ.9kEjjfPPPW8EnwdAkAbhL7txhuozlwbD59EV3HCdE4I
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/1519fa13-bf85-4c6f-a4d6-5df7e7b67eab/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY0IiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI1fQ.9kEjjfPPPW8EnwdAkAbhL7txhuozlwbD59EV3HCdE4I" \
	-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": "1519fa13-bf85-4c6f-a4d6-5df7e7b67eab",
      "application_version": "5d7ed7b3-8ffe-4942-b077-e388f4a77ed0",
      "application_name": "name-456",
      "application_uris": [

      ],
      "version": "5d7ed7b3-8ffe-4942-b077-e388f4a77ed0",
      "name": "name-456",
      "space_name": "name-457",
      "space_id": "1c351b77-7090-4c81-b336-94c3be4f6a05",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 826
X-Content-Type-Options: nosniff