Datastore Rename Datastore
Deprecated as of vSphere API 4.0, use Rename_Task.
Renames a datastore.
Required privileges: Datastore.Rename
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case Datastore/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"RenameDatastoreRequestType Object"
The new name to assign to the datastore.
No Content
DuplicateName: if another datastore in this datacenter already has the same name.
InvalidName: if the name is not a valid datastore name.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/Datastore/{moId}/RenameDatastore