Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Get the env for an App

GET /v3/apps/:guid/env

Request

Route

GET /v3/apps/guid-6471c4cc-e1c6-40ae-a66f-8ec6c1b277af/env

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NzExNjgyNH0.yF46TsYAVQUs7BACgUZWUT0BnX2g6_8qazwBr9kwb8I
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-6471c4cc-e1c6-40ae-a66f-8ec6c1b277af/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NzExNjgyNH0.yF46TsYAVQUs7BACgUZWUT0BnX2g6_8qazwBr9kwb8I" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "environment_variables": {
    "SOME_KEY": "some_val"
  },
  "staging_env_json": {
    "STAGING_ENV": "staging_value"
  },
  "running_env_json": {
    "RUNNING_ENV": "running_value"
  },
  "application_env_json": {
    "VCAP_APPLICATION": {
      "limits": {
        "fds": 16384
      },
      "application_name": "app_name",
      "application_uris": [

      ],
      "name": "app_name",
      "space_name": "some_space",
      "space_id": "cdb7c285-3134-4465-aea7-e879e8521847",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0843ef31-55e4-42e6-9b36-981927d793c5
Content-Length: 389
X-Content-Type-Options: nosniff