At times, there may arise a situation where there's a need to change the primary datastore of a cluster, after a cluster is created using SDDC Manager or after a brownfield import.
SDDC Manager, Applicable to all VCF versions
curl -s -k -X GET http://localhost/inventory/extensions/vi/domainInventory?domainIds={domainID} | jq '.[0]' > domain.json curl -s -k -H "Content-Type:application/json" -X PUT http://localhost/inventory/extensions/vi/clusters -d @domain.json