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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzd9.NU0PXPnfJcwAx5wDJxlHPcU7liVLMAN6xhcfLbeqhCI
Host: example.org
Cookie: 

Route

GET /v2/apps/c0fd9855-051b-4b25-b3f3-153a44a10e91/env

cURL

curl "https://api.[your-domain.com]/v2/apps/c0fd9855-051b-4b25-b3f3-153a44a10e91/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzd9.NU0PXPnfJcwAx5wDJxlHPcU7liVLMAN6xhcfLbeqhCI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 67d2baaf-20e6-4a90-933d-8d922e9d624d
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": "a373a1df-fe7c-4be4-b41c-e1476cf85ce2",
      "application_name": "name-1773",
      "application_uris": [

      ],
      "version": "a373a1df-fe7c-4be4-b41c-e1476cf85ce2",
      "name": "name-1773",
      "space_name": "name-1774",
      "space_id": "53ab5623-21b3-465a-8fdc-400422687ddc",
      "uris": [

      ],
      "users": null
    }
  }
}