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/1cb9833b-3464-4bb0-8e33-37b400de72cb/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDl9.DJVoD1eKf5LNCHf8w4-6_oraGWBXt-noa3lq8Gxsy94
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/1cb9833b-3464-4bb0-8e33-37b400de72cb/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMCIsImVtYWlsIjoiZW1haWwtMTYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDl9.DJVoD1eKf5LNCHf8w4-6_oraGWBXt-noa3lq8Gxsy94" \
	-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-815",
      "application_uris": [

      ],
      "name": "name-815",
      "space_name": "name-816",
      "space_id": "1a1df1dd-df7d-49d7-aad3-a5d0831d5280",
      "uris": [

      ],
      "users": null,
      "version": "a11a1a24-66cf-4484-bd0a-854926533e52",
      "application_version": "a11a1a24-66cf-4484-bd0a-854926533e52",
      "application_id": "1cb9833b-3464-4bb0-8e33-37b400de72cb"
    }
  }
}

Headers

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