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/abf16b18-8e30-4d8e-9642-2236dd51cea5/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MyIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2MzR9.Xq56AgUC8oLYD9gJwtc19q0ZbaYKxyT6C-KKE0AcOwU
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/abf16b18-8e30-4d8e-9642-2236dd51cea5/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MyIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2MzR9.Xq56AgUC8oLYD9gJwtc19q0ZbaYKxyT6C-KKE0AcOwU" \
	-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-710",
      "application_uris": [

      ],
      "name": "name-710",
      "space_name": "name-711",
      "space_id": "de66b22c-70c9-4fdf-b696-6278674e9978",
      "uris": [

      ],
      "users": null,
      "version": "c15f3e2b-8b2c-44aa-9a3e-6b5d4b6a7d64",
      "application_version": "c15f3e2b-8b2c-44aa-9a3e-6b5d4b6a7d64",
      "application_id": "abf16b18-8e30-4d8e-9642-2236dd51cea5"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 49b063d1-30c7-4d11-a4bb-2873f705443b
Content-Length: 826
X-Content-Type-Options: nosniff