4.1 Retrieving All Hosts and Picos Status Information
To get the complete host and pico information, use the following URL:
http://<platform-host>:<webinterface-port>/webapi/<version>/hosts
Example - All hosts and picos status information
$ curl -X GET "http://localhost:9000/webapi/v1/hosts" -u mzadmin:dr
Response
See the following example of content that is included in the HTTP response:
Example - Response content including information for all hosts and picos
<hosts> <host> <context-switches-per-second>4807</context-switches-per-second> <disabled>false</disabled> <swapped-diskblocks-per-second>0</swapped-diskblocks-per-second> <ip-address>10.46.10.127</ip-address> <sleeping-processes>0</sleeping-processes> <swapped-processes>-1</swapped-processes> <system-time-cpu>3</system-time-cpu> <user-time-cpu>1</user-time-cpu> <waiting-processes>0</waiting-processes> <pico> <cpu-time-percent>0.2</cpu-time-percent> <gc-collection-count>0</gc-collection-count> <gc-collection-time>0</gc-collection-time> <host-address>10.46.10.127</host-address> <name>Platform</name> <open-file-count>127</open-file-count> <thread-count>34</thread-count> <total-memory>238616576</total-memory> <type>platform</type> <used-memory>55463616</used-memory> </pico> </host> </hosts>