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-b4c33fe4-2995-40ba-a7dd-058317e1af99/env

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MSIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODR9.qAwkl9F2Z4Z8qJ6bUjLXucHr9Bzl292gbGbAFXIl2Y0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-b4c33fe4-2995-40ba-a7dd-058317e1af99/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MSIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODR9.qAwkl9F2Z4Z8qJ6bUjLXucHr9Bzl292gbGbAFXIl2Y0" \
	-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": "6a27efb4-4660-4a6c-82c9-e2527d3379e5",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.017016
Content-Length: 544