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/eec1c18f-489e-40ba-88d3-7c429ca79d25/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1NiIsImVtYWlsIjoiZW1haWwtMzI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM3MDN9.tWfnnJ_p1TwI2n8bZWyB6nEkH15Dsd5KZ2voIpUP9-0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/eec1c18f-489e-40ba-88d3-7c429ca79d25/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1NiIsImVtYWlsIjoiZW1haWwtMzI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM3MDN9.tWfnnJ_p1TwI2n8bZWyB6nEkH15Dsd5KZ2voIpUP9-0" \
	-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": "eec1c18f-489e-40ba-88d3-7c429ca79d25",
      "application_version": "62620325-22d4-4d5e-bef9-f8a607ee06ad",
      "application_name": "name-2514",
      "application_uris": [

      ],
      "version": "62620325-22d4-4d5e-bef9-f8a607ee06ad",
      "name": "name-2514",
      "space_name": "name-2515",
      "space_id": "edb23c52-5bc3-4e7f-9cc2-b16a1fd098d7",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

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