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/7511dbcf-fe86-4650-88c0-a46f3894ad22/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTEwfQ.yxWEJnfjuIRaoTG7sUehjdUnfYUIj4kCoBMOmqKxOKw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/7511dbcf-fe86-4650-88c0-a46f3894ad22/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTEwfQ.yxWEJnfjuIRaoTG7sUehjdUnfYUIj4kCoBMOmqKxOKw" \
	-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": "7511dbcf-fe86-4650-88c0-a46f3894ad22",
      "application_version": "45919b1d-422d-4953-a0a3-91d7fd2899bf",
      "application_name": "name-243",
      "application_uris": [

      ],
      "version": "45919b1d-422d-4953-a0a3-91d7fd2899bf",
      "name": "name-243",
      "space_name": "name-244",
      "space_id": "885c392a-3502-4cff-a47d-49089b13b1b7",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

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