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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OSIsImVtYWlsIjoiZW1haWwtMjA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDd9.rWt7yQTGhuYoHQ5ZeJkH0cq5-asaqTooPTUwU88BZ3E
Host: example.org
Cookie: 

Route

GET /v2/apps/5491e0e3-e02c-4b9b-b0aa-0fdd885fec42/env

cURL

curl "https://api.[your-domain.com]/v2/apps/5491e0e3-e02c-4b9b-b0aa-0fdd885fec42/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OSIsImVtYWlsIjoiZW1haWwtMjA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDd9.rWt7yQTGhuYoHQ5ZeJkH0cq5-asaqTooPTUwU88BZ3E" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b636f6fd-3808-48b6-b738-f20b844f658b
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": "09b8b4cd-deee-4899-8b83-1323c567111d",
      "application_name": "name-1113",
      "application_uris": [

      ],
      "version": "09b8b4cd-deee-4899-8b83-1323c567111d",
      "name": "name-1113",
      "space_name": "name-1114",
      "space_id": "b65c2488-024c-45a2-9390-6b18c427186f",
      "uris": [

      ],
      "users": null
    }
  }
}