[ovirt-users] Attaching storage to VM via JSON REST
Sven Kieske
S.Kieske at mittwald.de
Thu May 8 10:59:49 UTC 2014
May I ask if there is any reason why this is so inconsistent?
(id vs name)
Am 08.05.2014 11:34, schrieb Juan Hernandez:
> When adding a disk to a VM both a single domain storage and a list of
> storage domains are accepted. The JSON representation is the following:
>
> "storage_domain": {
> "id": "6fbee79d-5b71-48c1-b86c-ee9755a46013"
> }
>
> Note that "name" isn't accepted here, you have to use the "id".
>
> The JSON representation for multiple domains is the following (note that
> only the first one is used):
>
> "storage_domains": {
> "storage_domain": [ {
> "name": "am_data"
> } ]
> }
>
> Note that "id" isn't accepted here, you have to use "name".
--
Mit freundlichen Grüßen / Regards
Sven Kieske
Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
More information about the Users
mailing list