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-49fb26e3-ea98-442f-bb72-d437dfdbfe47/env

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDZ9.RdVqEhpt4P2iPMu_q9uR4JG_ASdxAx76UEJcPtrOJNc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-49fb26e3-ea98-442f-bb72-d437dfdbfe47/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMDZ9.RdVqEhpt4P2iPMu_q9uR4JG_ASdxAx76UEJcPtrOJNc" \
	-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": "7c72fa15-bffe-4cff-9b79-cca3a7c09c1d",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e9e59ce1-6f0b-4707-b2b5-bca1e681e1e8
Content-Length: 389
X-Content-Type-Options: nosniff