14.2. XML Representation of a Host
Example 14.1. An XML representation of a host
<host href="/api/hosts/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"> <actions> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/upgrade" rel="upgrade"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/setupnetworks" rel="setupnetworks"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/fence" rel="fence"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/refresh" rel="refresh"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/install" rel="install"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/activate" rel="activate"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/deactivate" rel="deactivate"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/approve" rel="approve"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/forceselectspm" rel="forceselectspm"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/enrollcertificate" rel="enrollcertificate"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/iscsilogin" rel="iscsilogin"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/unregisteredstoragedomainsdiscover" rel="unregisteredstoragedomainsdiscover"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/iscsidiscover" rel="iscsidiscover"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/commitnetconfig" rel="commitnetconfig"/> </actions> <name>host1</name> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/storage" rel="storage"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/nics" rel="nics"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/numanodes" rel="numanodes"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/tags" rel="tags"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/permissions" rel="permissions"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/statistics" rel="statistics"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/hooks" rel="hooks"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/fenceagents" rel="fenceagents"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/katelloerrata" rel="katelloerrata"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/devices" rel="devices"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/networkattachments" rel="networkattachments"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/unmanagednetworks" rel="unmanagednetworks"/> <link href="/api/hosts/00000000-0000-0000-0000-000000000000/storageconnectionextensions" rel="storageconnectionextensions"/> <address>host1.example.com</address> <certificate> <organization>exampleorg</organization> <subject>O=exampleorg,CN=XX.XX.XX.XX</subject> </certificate> <status> <state>up</state> </status> <external_status> <state>ok</state> </external_status> <cluster href="/api/clusters/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/> <port>54321</port> <type>rhel</type> <storage_manager priority="2">false</storage_manager> <spm> <priority>2</priority> <status> <state>none</state> </status> </spm> <version major="4" minor="17" build="20" revision="0" full_version="vdsm-4.17.20-0.el7ev"/> <power_management> <enabled>false</enabled> <pm_proxies/> <automatic_pm_enabled>true</automatic_pm_enabled> <kdump_detection>true</kdump_detection> </power_management> <ksm> <enabled>true</enabled> </ksm> <transparent_hugepages> <enabled>true</enabled> </transparent_hugepages> <iscsi> <initiator>iqn.2001-04.com.example:diskarrays-sn-a8675309</initiator> </iscsi> <ssh> <port>22</port> <fingerprint>00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00</fingerprint> </ssh> <cpu> <topology cores="2" sockets="1"/> <name>Intel(R) Xeon(R) CPU E5430 @ 2.66GHz</name> <speed>2656</speed> </cpu> <memory>12430868480</memory> <max_scheduling_memory>12026118144</max_scheduling_memory> <summary> <active>2</active> <migrating>0</migrating> <total>3</total> </summary> <protocol>stomp</protocol> <os type="RHEL"> <version full_version="7.2-9.el7_2.1"/> </os> <libvirt_version major="1" minor="2" build="17" revision="0" full_version="libvirt-1.2.17-13.el7_2.2"/> <kdump_status>disabled</kdump_status> <selinux> <mode>enforcing</mode> </selinux> <auto_numa_status>disable</auto_numa_status> <numa_supported>false</numa_supported> <live_snapshot_support>true</live_snapshot_support> <update_available>false</update_available> <device_passthrough> <enabled>true</enabled> </device_passthrough> </host>
<host href="/api/hosts/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000">
<actions>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/upgrade" rel="upgrade"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/setupnetworks" rel="setupnetworks"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/fence" rel="fence"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/refresh" rel="refresh"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/install" rel="install"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/activate" rel="activate"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/deactivate" rel="deactivate"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/approve" rel="approve"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/forceselectspm" rel="forceselectspm"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/enrollcertificate" rel="enrollcertificate"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/iscsilogin" rel="iscsilogin"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/unregisteredstoragedomainsdiscover" rel="unregisteredstoragedomainsdiscover"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/iscsidiscover" rel="iscsidiscover"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/commitnetconfig" rel="commitnetconfig"/>
</actions>
<name>host1</name>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/storage" rel="storage"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/nics" rel="nics"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/numanodes" rel="numanodes"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/tags" rel="tags"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/permissions" rel="permissions"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/statistics" rel="statistics"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/hooks" rel="hooks"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/fenceagents" rel="fenceagents"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/katelloerrata" rel="katelloerrata"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/devices" rel="devices"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/networkattachments" rel="networkattachments"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/unmanagednetworks" rel="unmanagednetworks"/>
<link href="/api/hosts/00000000-0000-0000-0000-000000000000/storageconnectionextensions" rel="storageconnectionextensions"/>
<address>host1.example.com</address>
<certificate>
<organization>exampleorg</organization>
<subject>O=exampleorg,CN=XX.XX.XX.XX</subject>
</certificate>
<status>
<state>up</state>
</status>
<external_status>
<state>ok</state>
</external_status>
<cluster href="/api/clusters/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>
<port>54321</port>
<type>rhel</type>
<storage_manager priority="2">false</storage_manager>
<spm>
<priority>2</priority>
<status>
<state>none</state>
</status>
</spm>
<version major="4" minor="17" build="20" revision="0" full_version="vdsm-4.17.20-0.el7ev"/>
<power_management>
<enabled>false</enabled>
<pm_proxies/>
<automatic_pm_enabled>true</automatic_pm_enabled>
<kdump_detection>true</kdump_detection>
</power_management>
<ksm>
<enabled>true</enabled>
</ksm>
<transparent_hugepages>
<enabled>true</enabled>
</transparent_hugepages>
<iscsi>
<initiator>iqn.2001-04.com.example:diskarrays-sn-a8675309</initiator>
</iscsi>
<ssh>
<port>22</port>
<fingerprint>00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00</fingerprint>
</ssh>
<cpu>
<topology cores="2" sockets="1"/>
<name>Intel(R) Xeon(R) CPU E5430 @ 2.66GHz</name>
<speed>2656</speed>
</cpu>
<memory>12430868480</memory>
<max_scheduling_memory>12026118144</max_scheduling_memory>
<summary>
<active>2</active>
<migrating>0</migrating>
<total>3</total>
</summary>
<protocol>stomp</protocol>
<os type="RHEL">
<version full_version="7.2-9.el7_2.1"/>
</os>
<libvirt_version major="1" minor="2" build="17" revision="0" full_version="libvirt-1.2.17-13.el7_2.2"/>
<kdump_status>disabled</kdump_status>
<selinux>
<mode>enforcing</mode>
</selinux>
<auto_numa_status>disable</auto_numa_status>
<numa_supported>false</numa_supported>
<live_snapshot_support>true</live_snapshot_support>
<update_available>false</update_available>
<device_passthrough>
<enabled>true</enabled>
</device_passthrough>
</host>