curl -X POST -https://{vcenter-host}/sdk/vim25/{release}/ContainerView/{moId}/container/DestroyView -H "Accept: application/json" -H "vmware-api-session-id <session-id>"
{
"_typeName": "ManagedObjectNotFound",
"obj": {
"_typeName": "ManagedObjectReference",
"value": "#####",
"type": "ContainerView"
},
"faultstring": "The object 'vim.view.ContainerView:######' has already been deleted or has not been completely created"
}
VMware vCenter Server 8.x
The API endpoint using CURL is failing due to the special characters appended to the view object ID.
If we want to destroy the vCenter ContainerView object, we suggest to use one of the followings.
(or)
curl -X POST -https://{vcenter-host}/sdk/vim25/{release}/ContainerView/{moId}/container/DestroyView -H "Accept: application/json" -H "vmware-api-session-id <session-id>" --globoff