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/96e63272-5da0-44b8-90a9-63d12b2692bb/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MDJ9.3bAaw_RpUgCEv-CeDFSMMaR0PIjQDgEb9BQvPeEICJA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/96e63272-5da0-44b8-90a9-63d12b2692bb/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MDJ9.3bAaw_RpUgCEv-CeDFSMMaR0PIjQDgEb9BQvPeEICJA" \
	-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": "96e63272-5da0-44b8-90a9-63d12b2692bb",
      "application_version": "86cef6fd-fb03-4f02-97ff-cc6b9d80bbf4",
      "application_name": "name-897",
      "application_uris": [

      ],
      "version": "86cef6fd-fb03-4f02-97ff-cc6b9d80bbf4",
      "name": "name-897",
      "space_name": "name-898",
      "space_id": "147eef57-aadb-43b0-9518-b355ab4db678",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9fb17fc1-7258-4b49-ad3e-cf8eed740158
Content-Length: 826
X-Content-Type-Options: nosniff