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/a96530e2-a655-4028-9661-71e938036756/env
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/a96530e2-a655-4028-9661-71e938036756/env" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNSIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTh9.Sm7cWLiHjcIi3i92ifnPY1eLMnjeXjF__f1L7zT5XZI" \
-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": "b44eb63f-b69b-40ae-b995-3f3d5bd4c420",
"application_name": "name-1994",
"application_uris": [
],
"version": "b44eb63f-b69b-40ae-b995-3f3d5bd4c420",
"name": "name-1994",
"space_name": "name-1995",
"space_id": "233ec44d-76ba-4d1a-b0ef-78e9a6fcae9f",
"uris": [
],
"users": null
}
}
}
Headers