十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
本篇内容主要讲解“怎么使用cf curl查看SAP云平台上的应用各项明细”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么使用cf curl查看SAP云平台上的应用各项明细”吧!
创新互联公司是专业的喀左网站建设公司,喀左接单;提供网站建设、网站设计,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行喀左网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!
我有一个应用部署在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云平台上的应用各项明细”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!