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/02e4e483-c566-47be-89bc-565d4dae7be6/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjJ9.hyUIMweq0IItQKtWLwzM3a-4hcW0C3_x-b1Zz7EmqxY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/02e4e483-c566-47be-89bc-565d4dae7be6/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjJ9.hyUIMweq0IItQKtWLwzM3a-4hcW0C3_x-b1Zz7EmqxY" \
	-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": {
        "fds": 16384,
        "mem": 1024,
        "disk": 1024
      },
      "application_name": "name-1840",
      "application_uris": [

      ],
      "name": "name-1840",
      "space_name": "name-1841",
      "space_id": "5afc57f0-3283-48be-89ae-4cfe99c3acde",
      "uris": [

      ],
      "users": null,
      "version": "b80b288d-585d-4dd0-a9f3-3263c07f460b",
      "application_version": "b80b288d-585d-4dd0-a9f3-3263c07f460b",
      "application_id": "02e4e483-c566-47be-89bc-565d4dae7be6"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fb81392a-4527-4ffa-bdc2-3b3813d3bbb9
Content-Length: 829
X-Content-Type-Options: nosniff