data1
and iso1
storage domains to the Default
data center.
POST /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>
curl -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -u [USER:PASS]
--cacert [CERT]
-d "<storage_domain><name>data1</name></storage_domain>" https://[RHEVM Host]
:8443/api/datacenters/01a45ff0-915a-11e0-8b87-5254004ac988/storagedomains
POST /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>
curl -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -u [USER:PASS]
--cacert [CERT]
-d "<storage_domain><name>iso1</name></storage_domain>" https://[RHEVM Host]
:8443/api/datacenters/01a45ff0-915a-11e0-8b87-5254004ac988/storagedomains
POST
requests place our two new storage_domain
resources in the storagedomains
sub-collection of the Default
data center. This means the storagedomain
sub-collection contains attached storage domains of the data center.