25.6. Methods
25.6.1. Creating a Cluster
Creation of a new cluster requires the
name, cpu id= and datacenter elements. Identify the datacenter with either the id attribute or name element.
Example 25.3. Creating a cluster
POST /api/clusters HTTP/1.1
Accept: application/xml
Content-type: application/xml
<cluster>
<name>cluster1</name>
<cpu id="Intel Penryn Family"/>
<data_center id="00000000-0000-0000-0000-000000000000"/>
</cluster>
25.6.2. Updating a Cluster
The
name, description, cpu id= and error_handling elements are updatable post-creation.
Example 25.4. Updating a cluster
PUT /api/clusters/00000000-0000-0000-0000-000000000000 HTTP/1.1
Accept: application/xml
Content-type: application/xml
<cluster>
<description>Cluster 1</description>
</cluster>