XML Reference for API 2.0

Cluster

This page is aimed at developers. It provides a quick reference for the XML documents returned by the OpenNebula XML-RPC API.

You can download the full XML Schema files here. It includes also some more xml examples.

XML Samples

The method one.cluster.info method returns XMLs similar to this one:

<?xml version="1.0"?>
<CLUSTER xmlns="http://opennebula.org/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://opennebula.org/XMLSchema ../cluster.xsd">
    <ID>0</ID>
    <NAME>default</NAME>
    <ID>1</ID>
    <NAME>new_cluster</NAME>
</CLUSTER>

The method one.clusterpool.info method returns XMLs similar to this one:

<CLUSTER_POOL xmlns="http://opennebula.org/XMLSchema"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://opennebula.org/XMLSchema ../cluster_pool.xsd">
 <CLUSTER>
  <ID>
   0
  </ID>
  <NAME>
   default
  </NAME>
 </CLUSTER>
 <CLUSTER>
  <ID>
   1
  </ID>
  <NAME>
   new_name
  </NAME>
 </CLUSTER>
 <CLUSTER>
  <ID>
   2
  </ID>
  <NAME>
   new name
  </NAME>
 </CLUSTER>
 <CLUSTER>
  <ID>
   3
  </ID>
  <NAME>
   test
  </NAME>
 </CLUSTER>
 <CLUSTER>
  <ID>
   4
  </ID>
  <NAME>
   test cluster newlineonecluster create test
  </NAME>
 </CLUSTER>
</CLUSTER_POOL>

XSD Files

File cluster.xsd, included in the full bundle:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"
  targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
  <xs:element name="CLUSTER">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="ID" type="xs:integer"/>
        <xs:element name="NAME" type="xs:string"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

File cluster.xsd, included in the full bundle:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"
  targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
  <xs:include schemaLocation="cluster.xsd"/>
  <xs:element name="CLUSTER_POOL">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="CLUSTER"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>