Get the environment variables for an App using the app guid. Restricted to SpaceDeveloper role.
GET /v2/apps/4df75245-8b3f-4135-a702-a3b1bb766d18/env
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the App |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtMTE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTgzOTh9.oJE99crCYuAhXJ8-UzgxdWTQ4GxNDVot9zm3JYLtgMA Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps/4df75245-8b3f-4135-a702-a3b1bb766d18/env" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtMTE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTgzOTh9.oJE99crCYuAhXJ8-UzgxdWTQ4GxNDVot9zm3JYLtgMA" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "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": { "fds": 16384, "mem": 1024, "disk": 1024 }, "application_name": "name-399", "application_uris": [ ], "name": "name-399", "space_name": "name-400", "space_id": "f66ff5a6-5478-40f3-82e6-593c6dad88e5", "uris": [ ], "users": null, "version": "0c4c1cd9-dd19-4b6a-a4fc-b0db40c1c271", "application_version": "0c4c1cd9-dd19-4b6a-a4fc-b0db40c1c271", "application_id": "4df75245-8b3f-4135-a702-a3b1bb766d18" } } }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: b7a858db-faa7-4f12-b293-311378530bdc Content-Length: 826 X-Content-Type-Options: nosniff