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/fa3570c8-3b95-45f7-a250-5c234aea4e81/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1MSIsImVtYWlsIjoiZW1haWwtMzIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTZ9.efm8p14YbLNkEMM1IeLfE9RQTrjy_CtXUdOGL3RroQY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/fa3570c8-3b95-45f7-a250-5c234aea4e81/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1MSIsImVtYWlsIjoiZW1haWwtMzIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTZ9.efm8p14YbLNkEMM1IeLfE9RQTrjy_CtXUdOGL3RroQY" \
	-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": "fa3570c8-3b95-45f7-a250-5c234aea4e81",
      "application_version": "c091bfa3-80f6-4782-bd73-10000f5c7094",
      "application_name": "name-2366",
      "application_uris": [

      ],
      "version": "c091bfa3-80f6-4782-bd73-10000f5c7094",
      "name": "name-2366",
      "space_name": "name-2367",
      "space_id": "931e7e26-3743-492f-b3c7-a891bac7612d",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

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