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/3d0d620a-d46b-4bf4-86d9-141806acc8ba/env

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg5IiwiZW1haWwiOiJlbWFpbC04OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjEwfQ.BUvtO-gqnl7TvTv7RelnVJuI7ixSyC5TV20AZKS6tgI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/3d0d620a-d46b-4bf4-86d9-141806acc8ba/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg5IiwiZW1haWwiOiJlbWFpbC04OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjEwfQ.BUvtO-gqnl7TvTv7RelnVJuI7ixSyC5TV20AZKS6tgI" \
	-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_version": "1fd25427-83e9-45ea-b61a-aa644efd15fb",
      "application_name": "name-447",
      "application_uris": [

      ],
      "version": "1fd25427-83e9-45ea-b61a-aa644efd15fb",
      "name": "name-447",
      "space_name": "name-448",
      "space_id": "d35ec624-8227-42ea-99f7-2bac749a7bd2",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2743b47a-f6ea-48a6-b720-3bc3e0d341c0
Content-Length: 762
X-Content-Type-Options: nosniff