Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get the env for an App

GET /v3/apps/:guid/env

Request

Route

GET /v3/apps/guid-8116a6f9-3c0a-4d0d-82d7-ea0d094ec082/env

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMyIsImVtYWlsIjoiZW1haWwtMzAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2OTB9.rQR-UtDFbNIaTThRqz6ygkm3l-VuQtQPdL2_QTrQtQQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-8116a6f9-3c0a-4d0d-82d7-ea0d094ec082/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMyIsImVtYWlsIjoiZW1haWwtMzAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2OTB9.rQR-UtDFbNIaTThRqz6ygkm3l-VuQtQPdL2_QTrQtQQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "environment_variables": {
    "SOME_KEY": "some_val"
  },
  "staging_env_json": {
    "STAGING_ENV": "staging_value"
  },
  "running_env_json": {
    "RUNNING_ENV": "running_value"
  },
  "system_env_json": {
    "VCAP_SERVICES": {
      "label-59": [
        {
          "credentials": {
            "creds-key-73": "creds-val-73"
          },
          "syslog_drain_url": "https://syslog.example.com/drain",
          "label": "label-59",
          "provider": null,
          "plan": "name-2454",
          "name": "name-2453",
          "tags": [
            "50% off"
          ]
        }
      ]
    }
  },
  "application_env_json": {
    "VCAP_APPLICATION": {
      "limits": {
        "fds": 16384
      },
      "application_name": "app_name",
      "application_uris": [

      ],
      "name": "app_name",
      "space_name": "some_space",
      "space_id": "12bc4061-2574-466f-b038-aaff2536f9b2",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.026185
Content-Length: 973