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
Route
GET /v2/apps/a567a8f5-52d3-490f-8012-6d8a52b7b238/env
cURL
curl "https://api.[your-domain.com]/v2/apps/a567a8f5-52d3-490f-8012-6d8a52b7b238/env" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxOCIsImVtYWlsIjoiZW1haWwtMjQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNzJ9.6tsEOcnE2n4eUdKIHnZhMZPqpMW3JqKkUKC8Kl3TZlE" \
-H "Host: example.org" \
-H "Cookie: "
Response
Headers
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": "98bbfe20-4f4d-4916-ade8-e358a242e5b0",
"application_name": "name-1293",
"application_uris": [
],
"version": "98bbfe20-4f4d-4916-ade8-e358a242e5b0",
"name": "name-1293",
"space_name": "name-1294",
"space_id": "5397f2f8-3f3c-48c7-8b85-254ad46766c3",
"uris": [
],
"users": null
}
}
}