您好,登錄后才能下訂單哦!
本篇內容主要講解“怎么使用cf curl查看SAP云平臺上的應用各項明細”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“怎么使用cf curl查看SAP云平臺上的應用各項明細”吧!
我有一個應用部署在SAP云平臺上
url最后的guid即該應用的guid,可以通過下面的命令行獲得:
cf app jerryjavadocker --guid
使用下面的命令行獲得該應用的詳細信息:
cf curl /v2/apps/5691ae25-0b85-440a-aa92-fb6d2dc317fb > 1.txt
明細:
```json
{ "metadata": { "guid": "5691ae25-0b85-440a-aa92-fb6d2dc317fb", "url": "/v2/apps/5691ae25-0b85-440a-aa92-fb6d2dc317fb", "created_at": "2020-02-11T04:16:36Z", "updated_at": "2020-02-12T03:47:08Z" }, "entity": { "name": "jerryjavadocker", "production": false, "space_guid": "1e557935-4ec4-4e36-8055-701b27798258", "stack_guid": "c0fdd885-3e8f-4859-9fa4-c0c9373cdeff", "buildpack": null, "detected_buildpack": null, "detected_buildpack_guid": null, "environment_json": {}, "memory": 1024, "instances": 1, "disk_quota": 1024, "state": "STARTED", "version": "368a950e-86a3-467a-81e2-b32a9785ef29", "command": null, "console": false, "debug": null, "staging_task_id": "5d5ab21c-c5e0-44f9-8ee2-84551b25e81b", "package_state": "STAGED", "health_check_type": "port", "health_check_timeout": null, "health_check_http_endpoint": "", "staging_failed_reason": null, "staging_failed_description": null, "diego": true, "docker_image": "i042416/springbootexample:v6", "docker_credentials": { "username": null, "password": null }, "package_updated_at": "2020-02-12T03:47:07Z", "detected_start_command": "/bin/sh -c exec java $JAVA_OPTS -jar /app.jar ", "enable_ssh": false, "ports": [ 8080 ], "space_url": "/v2/spaces/1e557935-4ec4-4e36-8055-701b27798258", "stack_url": "/v2/stacks/c0fdd885-3e8f-4859-9fa4-c0c9373cdeff", "routes_url": "/v2/apps/5691ae25-0b85-440a-aa92-fb6d2dc317fb/routes", "events_url": "/v2/apps/5691ae25-0b85-440a-aa92-fb6d2dc317fb/events", "service_bindings_url": "/v2/apps/5691ae25-0b85-440a-aa92-fb6d2dc317fb/service_bindings", "route_mappings_url": "/v2/apps/5691ae25-0b85-440a-aa92-fb6d2dc317fb/route_mappings" } }
```
查看route明細:cf curl /v2/apps/5691ae25-0b85-440a-aa92-fb6d2dc317fb/routes
從結果里獲得route的guid:4637819d-430f-438f-81f6-8a7742d3027e
再獲取該route的明細:
cf curl /v2/routes/4637819d-430f-438f-81f6-8a7742d3027e/route_mappings
到此,相信大家對“怎么使用cf curl查看SAP云平臺上的應用各項明細”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。