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.

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMSIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDV9.7Hexvf7jfzfltBjgedArJQJyxGfKA4Srn5N1my_dcoA
Host: example.org
Cookie: 

Route

GET /v2/apps/5a1a7f36-cd86-4685-916d-ddcc46e0ee81/env

cURL

curl "https://api.[your-domain.com]/v2/apps/5a1a7f36-cd86-4685-916d-ddcc46e0ee81/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMSIsImVtYWlsIjoiZW1haWwtMTYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDV9.7Hexvf7jfzfltBjgedArJQJyxGfKA4Srn5N1my_dcoA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d70701a6-6bdf-4459-9af9-c4637cb3df76
Content-Length: 765
X-Content-Type-Options: nosniff

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": "a39e4845-a04e-4454-a270-bd07a33feeda",
      "application_name": "name-1567",
      "application_uris": [

      ],
      "version": "a39e4845-a04e-4454-a270-bd07a33feeda",
      "name": "name-1567",
      "space_name": "name-1568",
      "space_id": "483b6dfa-6503-4bcd-b6cb-314dcf613a09",
      "uris": [

      ],
      "users": null
    }
  }
}