Virtual Disk Manager Extend Virtual Disk Task
Deprecated as of vSphere 6.5, use HostExtendDisk_Task instead.
Expand the capacity of a virtual disk to the new capacity.
If the eagerZero flag is not specified, - the extended disk region of a zerothick disk will be zeroedthick - the extended disk region of a eagerzerothick disk will be eagerzeroedthick - a thin-provisioned disk will always be extended as a thin-provisioned disk. If the eagerZero flag TRUE, the extended region of the disk will always be eagerly zeroed. If the eagerZero flag FALSE, the extended region of a zeroedthick or eagerzeroedthick the disk will not be eagerly zeroed. This condition has no effect on a thin source disk.
The datacenter parameter may be omitted if a URL is used to name the disk.
Requires Datastore.FileManagement privilege on the datastore where the virtual disk resides.
Required privileges: System.View
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 VirtualDiskManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
Show optional properties
{
"name": "string",
"newCapacityKb": 0
}
{
"name": "string",
"datacenter": {
"_typeName": "string",
"type": "string",
"value": "string"
},
"newCapacityKb": 0,
"eagerZero": false
}
The name of the disk, either a datastore path or a URL referring to the virtual disk whose capacity should be expanded.
The new capacty of the virtual disk in Kb.
If true, the extended part of the disk will be explicitly filled with zeroes.
This method returns a Task object with which to monitor the operation.
{
"_typeName": "string",
"type": "string",
"value": "string"
}
FileFault: if an error occurs extending the virtual disk.
InvalidDatastore: if the operation cannot be performed on the datastore.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}