9.2. 数据中心的 XML 表述
例 9.1. 数据中心的 XML 表述
<data_center href="/api/datacenters/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"> <name>Default</name> <description>The default Data Center</description> <link href="/api/datacenters/00000000-0000-0000-0000-000000000000/storagedomains" rel="storagedomains"/> <link href="/api/datacenters/00000000-0000-0000-0000-000000000000/clusters" rel="clusters"/> <link href="/api/datacenters/00000000-0000-0000-0000-000000000000/networks" rel="networks"/> <link href="/api/datacenters/00000000-0000-0000-0000-000000000000/permissions" rel="permissions"/> <link href="/api/datacenters/00000000-0000-0000-0000-000000000000/quotas" rel="quotas"/> <local>false</local> <storage_format>v3</storage_format> <version major="3" minor="4"/> <supported_versions> <version major="3" minor="4"/> </supported_versions> <status> <state>up</state> </status> </data_center>
<data_center href="/api/datacenters/00000000-0000-0000-0000-000000000000"
id="00000000-0000-0000-0000-000000000000">
<name>Default</name>
<description>The default Data Center</description>
<link href="/api/datacenters/00000000-0000-0000-0000-000000000000/storagedomains" rel="storagedomains"/>
<link href="/api/datacenters/00000000-0000-0000-0000-000000000000/clusters" rel="clusters"/>
<link href="/api/datacenters/00000000-0000-0000-0000-000000000000/networks" rel="networks"/>
<link href="/api/datacenters/00000000-0000-0000-0000-000000000000/permissions" rel="permissions"/>
<link href="/api/datacenters/00000000-0000-0000-0000-000000000000/quotas" rel="quotas"/>
<local>false</local>
<storage_format>v3</storage_format>
<version major="3" minor="4"/>
<supported_versions>
<version major="3" minor="4"/>
</supported_versions>
<status>
<state>up</state>
</status>
</data_center>