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/52b089d8-7005-4247-b034-4752ec94ca84/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOSIsImVtYWlsIjoiZW1haWwtMjM2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTd9.37fTykR2PRDFerKmvwlbQVydQoyTSLb8DE-xAzpXw7k
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/52b089d8-7005-4247-b034-4752ec94ca84/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOSIsImVtYWlsIjoiZW1haWwtMjM2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTd9.37fTykR2PRDFerKmvwlbQVydQoyTSLb8DE-xAzpXw7k" \
	-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": "52b089d8-7005-4247-b034-4752ec94ca84",
      "application_version": "6f2371aa-3f01-42b0-b42e-1424740c2c9f",
      "application_name": "name-2091",
      "application_uris": [

      ],
      "version": "6f2371aa-3f01-42b0-b42e-1424740c2c9f",
      "name": "name-2091",
      "space_name": "name-2092",
      "space_id": "9c30ad2a-1eb5-45c8-b618-a248c8050dca",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cb846b1b-d427-4e89-b0ee-f57a1a17aa19
Content-Length: 829
X-Content-Type-Options: nosniff