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/8ba9a9e5-adc3-4ebf-9946-280ea2988976/env

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtMTE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5ODd9.0Z0uVmPBMJnybLxjtGgGfOwH7uhKSIScGOg9cXMyVJE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/8ba9a9e5-adc3-4ebf-9946-280ea2988976/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtMTE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5ODd9.0Z0uVmPBMJnybLxjtGgGfOwH7uhKSIScGOg9cXMyVJE" \
	-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_version": "98a508d6-eb0b-4519-9d59-c8dfd69f568e",
      "application_name": "name-674",
      "application_uris": [

      ],
      "version": "98a508d6-eb0b-4519-9d59-c8dfd69f568e",
      "name": "name-674",
      "space_name": "name-675",
      "space_id": "16870dec-897d-4662-8471-6b269290459f",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ca61976a-e159-40ef-b774-3a15634b66f1
Content-Length: 762
X-Content-Type-Options: nosniff