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/83dcbc61-5fae-4d44-b8be-5f4079d9dd83/env

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMTk5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTF9.kXfIdhkG_sqVUJjx_DtlaVfyAoi0YU5tr4Jto2C2f_E
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/83dcbc61-5fae-4d44-b8be-5f4079d9dd83/env" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMTk5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MTF9.kXfIdhkG_sqVUJjx_DtlaVfyAoi0YU5tr4Jto2C2f_E" \
	-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_version": "4e83eb69-4b55-4db7-bf92-3cf905780cb9",
      "application_name": "name-805",
      "application_uris": [

      ],
      "version": "4e83eb69-4b55-4db7-bf92-3cf905780cb9",
      "name": "name-805",
      "space_name": "name-806",
      "space_id": "2a53810c-1cc6-4c80-882b-d202b22a282d",
      "uris": [

      ],
      "users": null
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4c824e64-40e7-4c80-8aa2-54fe699dad6c
Content-Length: 762
X-Content-Type-Options: nosniff