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/08081e88-9a28-408f-b5b1-5ba0c75726b5/env

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MyIsImVtYWlsIjoiZW1haWwtMjYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTZ9.cs-6iSdKiygkx32JiwFAy64XOWXDpcmIKMkc3dz4neI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/08081e88-9a28-408f-b5b1-5ba0c75726b5/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MyIsImVtYWlsIjoiZW1haWwtMjYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTZ9.cs-6iSdKiygkx32JiwFAy64XOWXDpcmIKMkc3dz4neI" \
	-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": "08081e88-9a28-408f-b5b1-5ba0c75726b5",
      "application_version": "7b9418d8-2d21-4108-a028-7f4e1045e1de",
      "application_name": "name-1983",
      "application_uris": [

      ],
      "version": "7b9418d8-2d21-4108-a028-7f4e1045e1de",
      "name": "name-1983",
      "space_name": "name-1984",
      "space_id": "c403c036-ff0a-4a8c-a12c-d4bd875b528b",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ad4f8f6b-de97-40ff-a73f-4633c42a65bd
Content-Length: 829
X-Content-Type-Options: nosniff