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.3.0 APIs.
{
"newName": "string"
}
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.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}