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/21ac8ca5-0805-4c35-92d2-512e211b2d22/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwOCIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzJ9.NEe0lFx-Uq1hbFr0VmlPWkTID4f1Ov0xDHzbTfdVifc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/21ac8ca5-0805-4c35-92d2-512e211b2d22/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwOCIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NzJ9.NEe0lFx-Uq1hbFr0VmlPWkTID4f1Ov0xDHzbTfdVifc" \
	-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": "21ac8ca5-0805-4c35-92d2-512e211b2d22",
      "application_version": "fcf3f662-135d-4c78-92c5-f28aa77c5ba8",
      "application_name": "name-2332",
      "application_uris": [

      ],
      "version": "fcf3f662-135d-4c78-92c5-f28aa77c5ba8",
      "name": "name-2332",
      "space_name": "name-2333",
      "space_id": "dc18c705-4817-43e2-8bb3-b2d3d6f0faf7",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

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