|
| Local Methods | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |
This managed object type provides a way to manage and manipulate virtual disks on datastores. The source and the destination names are in the form of a URL or a datastore path.
A URL has the form
scheme://authority/folder/path?dcPath=dcPath&dsName=dsNamewhere
http or https.A datastore path has the form
[datastore] pathwhere
Properties
| Name | Type | Description |
|---|---|---|
| None | ||
Methods
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| sourceName | xsd:string |
The name of the source, either a datastore path
or a URL referring to the virtual disk to be copied.
|
| sourceDatacenter* P | ManagedObjectReference
to a Datacenter |
If sourceName is a datastore path, the
datacenter for that datastore path.
If not specified, sourceName must be a URL.
|
| destName | xsd:string |
The name of the destination, either a datastore path
or a URL referring to the virtual disk to be created.
|
| destDatacenter* P | ManagedObjectReference
to a Datacenter |
If destName is a datastore path, the datacenter
for that datastore path.
If not specified, destName must be a URL.
|
| destSpec* | VirtualDiskSpec |
The specification of the virtual disk to be created.
If not specified the specification of the source disk is used.
|
| force* | xsd:boolean |
If true, overwrite any indentically named disk at the destination.
If not specified, it is assumed to be false
|
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs cloning the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a
URL referring to the virtual disk to be created.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
| spec | VirtualDiskSpec |
The specification of the virtual disk to be created.
|
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs creating the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk that should be defragmented.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs defragmenting the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk to be deleted.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs deleting the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk whose capacity should be expanded.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
| newCapacityKb | xsd:long |
The new capacty of the virtual disk in Kb.
|
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs extending the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk that should be inflated.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs inflating the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
sourceName and sourceDatacenter to the destination
location specified by destName and destDatacenter.
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| sourceName | xsd:string |
The name of the source, either a datastore path
or a URL referring to the virtual disk to be moved.
|
| sourceDatacenter* P | ManagedObjectReference
to a Datacenter |
If sourceName is a datastore path, the
datacenter for that datastore path.
If not specified, sourceName must be a URL.
|
| destName | xsd:string |
The name of the destination, either a datastore path
or a URL referring to the destination virtual disk.
|
| destDatacenter* P | ManagedObjectReference
to a Datacenter |
If destName is a datastore path, the datacenter
for that datastore path.
If not specified, destName must be a URL.
|
| force* | xsd:boolean |
If true, overwrite any indentically named disk at the destination.
If not specified, it is assumed to be false
|
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a Task |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs renaming the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk for which to return the
percentage of fragmentation.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
Return Value
| Type | Description |
|---|---|
| xsd:int | The percentage of fragmentation (as an integer between 0 and 100) of the sparse virtual disk. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs reading the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk from which to get geometry information.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
Return Value
| Type | Description |
|---|---|
| HostDiskDimensionsChs | The geometry information for this virtual disk. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs reading the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk from which to get SCSI inquiry
page 0x83 data.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
Return Value
| Type | Description |
|---|---|
| xsd:string | The hex representation of the unique ID for this virtual disk. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs reading the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk whose SCSI inquiry page 0x83
data should be set.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
| uuid | xsd:string |
The hex representation of the unique ID for this virtual disk.
|
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs updating the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk that should be shrink.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
| copy* | xsd:boolean |
Set to true to make a shrunk copy, false to shrink the original
virtual disk.
|
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs shrinking the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Experimental. Subject to change
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
| name | xsd:string |
The name of the disk, either a datastore path or a URL
referring to the virtual disk whose blocks should be overwritten
with zeroes.
|
| datacenter* P | ManagedObjectReference
to a Datacenter |
If name is a datastore path, the datacenter for
that datastore path.
If not specified, name must be a URL.
|
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if an error occurs zero filling the virtual disk. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| Top of page | Local Methods | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |