Bug 1050948
| Summary: | Unable to show env var via REST | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Oleg Fayans <ofayans> |
| Component: | Master | Assignee: | Dan McPherson <dmcphers> |
| Status: | CLOSED NOTABUG | QA Contact: | libra bugs <libra-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.x | CC: | amarecek, dmcphers |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-01-14 15:05:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This should be: curl -k -X GET https://<broker_ip>/broker/rest/application/<app_id>/environment-variable/<variable_name> -u <username>:<password> More details: http://openshift.github.io/documentation/rest_api/rest-api-1-6.html#environment_variable |
Description of problem: I am unable to show particular environment variable via REST API Version-Release number of selected component (if applicable): ami-c71a2cae How reproducible: Always Steps to Reproduce: 1. create an app 2. set the new environmental variable in the app 3. request it via REST API: curl -k -X GET https://<broker_ip>/broker/rest/application/<app_id>/environment-variables/<variable_name> -u <username>:<password> Actual results: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Action Controller: Exception caught</title> <style> body { background-color: #fff; color: #333; } body, p, ol, ul, td { font-family: helvetica, verdana, arial, sans-serif; font-size: 13px; line-height: 18px; } pre { background-color: #eee; padding: 10px; font-size: 11px; white-space: pre-wrap; } a { color: #000; } a:visited { color: #666; } a:hover { color: #fff; background-color:#000; } </style> </head> <body> <h1>Routing Error</h1> <p><pre>No route matches [GET] "/broker/rest/application/52ce8edef8e6a509b10000e5/environment-variables/foo"</pre></p> <p> Try running <code>rake routes</code> for more information on available routes. </p> </body> </html> Expected results: info about this variable is shown Additional info: