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/7113b42a-9407-49ec-a257-efc5097ffdbe/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMyIsImVtYWlsIjoiZW1haWwtMTU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDh9.YZnZNA3Y5i7SrVXuAgl5IB5gqy0dZVWczWpH4z3CFsY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/7113b42a-9407-49ec-a257-efc5097ffdbe/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMyIsImVtYWlsIjoiZW1haWwtMTU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDh9.YZnZNA3Y5i7SrVXuAgl5IB5gqy0dZVWczWpH4z3CFsY" \
	-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": "7113b42a-9407-49ec-a257-efc5097ffdbe",
      "application_version": "7279affe-3b9a-430f-8d5b-38265a6a5b1a",
      "application_name": "name-752",
      "application_uris": [

      ],
      "version": "7279affe-3b9a-430f-8d5b-38265a6a5b1a",
      "name": "name-752",
      "space_name": "name-753",
      "space_id": "c1f4755e-a7d4-4a7e-84b9-b2e002967454",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e3992f62-d2c8-469e-a2ba-413d9d4a69ca
Content-Length: 826
X-Content-Type-Options: nosniff