简体   繁体   中英

How I can list all added apps in javamelody monitoring using curl command?

curl -vkg http://collectserver/ -H 'Authorization: Basic abc123==' -d "appName=APP_NAME&appUrls=http://myhost/myapp/"

This is working curl to add apps in javamelody monitoring

And I also tested for delete application curl -v "http://collectserver/collectServer?action=remove_application&application=$APP_NAME" -H 'Authorization: Basic abdvcgvh'

Now I want to create curl to list all added application using curl command plz help

You can call the same URL with the parameters "?part=applications&format=json" or "?part=applications&format=xml"

You will get a map in json, which lists the applications as keys.

For example, curl -v "http://collectserver/collectServer?part=applications&format=json" -H 'Authorization: Basic abdvcgvh'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM