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.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NSIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTF9.DE_3qZ6mzZmNEG4XJZr39poLhSPBJuTPNA44FdRkYNA
Host: example.org
Cookie: 

Route

GET /v2/apps/bb41b65d-403c-4766-9b5a-cd35eaf1f2c5/env

cURL

curl "https://api.[your-domain.com]/v2/apps/bb41b65d-403c-4766-9b5a-cd35eaf1f2c5/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NSIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTF9.DE_3qZ6mzZmNEG4XJZr39poLhSPBJuTPNA44FdRkYNA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f7744ee1-5fce-405d-8aee-4c6c6c838606
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": "0e23e347-a030-4369-af08-a926f7a256d2",
      "application_name": "name-1053",
      "application_uris": [

      ],
      "version": "0e23e347-a030-4369-af08-a926f7a256d2",
      "name": "name-1053",
      "space_name": "name-1054",
      "space_id": "f8975aa2-fe84-43eb-8b8a-36feefeae9f5",
      "uris": [

      ],
      "users": null
    }
  }
}