Product SiteDocumentation Site

2.9. Attach Storage Domains to Data Center

The following example attaches the data1 and iso1 storage domains to the Default data center.
Example 2.9. Attach data1 storage domain to the Default data center
POST /rhevm-api/datacenters/01a45ff0-915a-11e0-8b87-5254004ac988/storagedomains HTTP/1.1
Accept: application/xml
Content-type: application/xml

<storage_domain>
  <name>data1</name>
</storage_domain>

Example 2.10. Attach iso1 storage domain to the Default data center
POST /rhevm-api/datacenters/01a45ff0-915a-11e0-8b87-5254004ac988/storagedomains HTTP/1.1
Accept: application/xml
Content-type: application/xml

<storage_domain>
  <name>iso1</name>
</storage_domain>