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/3e56b2a3-de2e-48f4-ab5b-1d7091618477/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MiIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5OX0.64yC-HQp6f9bo9VPHcLZ95qCL_QWoPrTD4edwZm1Vqw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/3e56b2a3-de2e-48f4-ab5b-1d7091618477/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MiIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5OX0.64yC-HQp6f9bo9VPHcLZ95qCL_QWoPrTD4edwZm1Vqw" \
	-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": "3e56b2a3-de2e-48f4-ab5b-1d7091618477",
      "application_version": "a436f8de-19c5-4068-a78e-1e13af8e92b1",
      "application_name": "name-431",
      "application_uris": [

      ],
      "version": "a436f8de-19c5-4068-a78e-1e13af8e92b1",
      "name": "name-431",
      "space_name": "name-432",
      "space_id": "6a20a7e0-48d3-492e-a29b-41bca38d812a",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 33628ce0-d5f4-437f-a5b9-f2ce88e72758
Content-Length: 826
X-Content-Type-Options: nosniff