Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use cf curl to view the details of applications on SAP cloud platform

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

The main content of this article is "how to use cf curl to view the details of applications on the SAP cloud platform", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use cf curl to view the details of applications on the SAP cloud platform.

I have an application deployed on the SAP cloud platform

The last guid of the url is the guid of the application, which can be obtained from the following command line:

Cf app jerryjavadocker-guid

Use the following command line to get details of the application:

Cf curl / v2/apps/5691ae25-0b85-440a-aa92-fb6d2dc317fb > 1.txt

Details:

```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"}}

`

View route details: cf curl / v2/apps/5691ae25-0b85-440a-aa92-fb6d2dc317fb/routes

Obtain the guid:4637819d-430f-438f-81f6-8a7742d3027e of route from the result

Then get the details of the route:

Cf curl / v2/routes/4637819d-430f-438f-81f6-8a7742d3027e/route_mappings

At this point, I believe you have a deeper understanding of "how to use cf curl to view the details of applications on the SAP cloud platform". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report