Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

VM disks deleted from datastor when not included in json config post to rest api

$
0
0

Does anyone know if it's expected behavior to delete a vmdk from a datastore when it's not included in the json config submission to the rest service? e.g: I decide to grow hard disk 2 and exclude hard disk one cause it isn't being changed:

example of original config:

"value": "[{\"Id\":0,\"Capacity\":60,\"CapacityMin\":60,\"Device\":null,\"Label\":null,\"VolumeId\":\"SCSI (0:0)\",\"ExternalId\":\"6000C29b-b3fd-dec0-afdf-3b62ec4a8595\",\"StoragePath\":\"t880fb01\",\"StoragePolicy\":null,\"Properties\":[{\"PropertyName\":\"Name\",\"PropertyValue\":\"Hard disk 1\",\"IsHidden\":false,\"IsRuntime\":false,\"IsEncrypted\":false}],\"NoDelete\":true,\"NoEdit\":false,\"NoEditStoragePolicy\":true,\"NoEditProperties\":true,\"IsClone\":false},{\"Id\":1,\"Capacity\":14,\"CapacityMin\":12,\"Device\":null,\"Label\":null,\"VolumeId\":\"SCSI (0:1)\",\"ExternalId\":\"6000C299-a22a-200f-6b63-1937de692dbc\",\"StoragePath\":\"t880fb01\",\"StoragePolicy\":null,\"Properties\":[{\"PropertyName\":\"Name\",\"PropertyValue\":\"Hard disk 2\",\"IsHidden\":false,\"IsRuntime\":false,\"IsEncrypted\":false}],\"NoDelete\":false,\"NoEdit\":false,\"NoEditStoragePolicy\":true,\"NoEditProperties\":true,\"IsClone\":false},{\"Id\":2,\"Capacity\":20,\"CapacityMin\":20,\"Device\":null,\"Label\":null,\"VolumeId\":\"SCSI (0:2)\",\"ExternalId\":\"6000C291-6a9c-985d-197f-991d6c2361b5\",\"StoragePath\":\"t880fb01\",\"StoragePolicy\":null,\"Properties\":[{\"PropertyName\":\"Name\",\"PropertyValue\":\"Hard disk 3\",\"IsHidden\":false,\"IsRuntime\":false,\"IsEncrypted\":false}],\"NoDelete\":false,\"NoEdit\":false,\"NoEditStoragePolicy\":true,\"NoEditProperties\":true,\"IsClone\":false}]"

adjusted config to grow disk with id "1":

 

{\"Id\":1,\"Capacity\":20,\"CapacityMin\":12,\"Device\":null,\"Label\":null,\"VolumeId\":\"SCSI (0:1)\",\"ExternalId\":\"6000C299-a22a-200f-6b63-1937de692dbc\",\"StoragePath\":\"t880fb01\",\"StoragePolicy\":null,\"Properties\":[{\"PropertyName\":\"Name\",\"PropertyValue\":\"Hard disk 2\",\"IsHidden\":false,\"IsRuntime\":false,\"IsEncrypted\":false}],\"NoDelete\":false,\"NoEdit\":false,\"NoEditStoragePolicy\":true,\"NoEditProperties\":true,\"IsClone\":false}

 

submitting the last config rather than editing the first results the deletion of the other two vmdks from the datastore ....


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>