Hi, I'm facing an issue with the vCloud API using JSON. I'm trying to update a virtual machine disk. When I retrieve the GET /vApp/{id}/virtualHardwareSection/disks I get in the Hard Disk ...
See more...
Hi, I'm facing an issue with the vCloud API using JSON. I'm trying to update a virtual machine disk. When I retrieve the GET /vApp/{id}/virtualHardwareSection/disks I get in the Hard Disk 1 item the following hostresource "hostResource" : [ { "value" : "", "otherAttributes" : { "{http://www.vmware.com/vcloud/v1.5}storageProfileHref" : "https://exampledomain.com/api/vdcStorageProfile/61fe5387-8551-4fs9-927f-dd1b63a82b26", "{http://www.vmware.com/vcloud/v1.5}busType" : "6", "{http://www.vmware.com/vcloud/v1.5}busSubType" : "VirtualSCSI", "{http://www.vmware.com/vcloud/v1.5}capacity" : "10240", "{http://www.vmware.com/vcloud/v1.5}iops" : "0", "{http://www.vmware.com/vcloud/v1.5}storageProfileOverrideVmDefault" : "false" } } ], now updating the value of the "{http://www.vmware.com/vcloud/v1.5}capacity" and sending it back with a PUT request I get the following error message: { "otherAttributes" : { }, "tenantError" : null, "stackTrace" : null, "majorErrorCode" : 400, "message" : "'capacity' attribute expected for element HostResource for rasd item with InstanceID=2000", "minorErrorCode" : "BAD_REQUEST", "vendorSpecificErrorCode" : null, "vcloudExtension" : [ ] } Is there anything I'm missing? Thanks in advanced. Housam Smadi