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/708a23b8-8566-49ad-8d59-87b2badc3c56/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/708a23b8-8566-49ad-8d59-87b2badc3c56/env" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MCIsImVtYWlsIjoiZW1haWwtMTcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDR9.lX65uxxsx5z9Wql01Y3kQuB_JzSPEMj8O12V5zzos9Q" \
-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": "bcd0e7ce-2bc1-4b64-ba98-6d2b56caa9a5",
"application_name": "name-1686",
"application_uris": [
],
"version": "bcd0e7ce-2bc1-4b64-ba98-6d2b56caa9a5",
"name": "name-1686",
"space_name": "name-1687",
"space_id": "3c5af40d-720f-4c0e-9d8d-239853a8fcfc",
"uris": [
],
"users": null
}
}
}
Headers