VMware vSphere Automation SDK for .NET 7.0.0.1
vmware::vcenter::vm::hardware::Disk Interface Reference

The Disk interface provides methods for configuring the virtual disks of a virtual machine. More...

Inherited by vmware::vcenter::vm::hardware::DiskStub.

List of all members.

Public Member Functions

global::System.Collections.Generic.List
< vmware.vcenter.vm.hardware.DiskTypes.Summary
List (string vm)
 Returns commonly used information about the virtual disks belonging to the virtual machine.
global::System.Collections.Generic.List
< vmware.vcenter.vm.hardware.DiskTypes.Summary
List (string vm, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns commonly used information about the virtual disks belonging to the virtual machine.
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.List
< vmware.vcenter.vm.hardware.DiskTypes.Summary > > 
ListAsync (string vm)
 Returns commonly used information about the virtual disks belonging to the virtual machine.
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.List
< vmware.vcenter.vm.hardware.DiskTypes.Summary > > 
ListAsync (string vm, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns commonly used information about the virtual disks belonging to the virtual machine.
vmware.vcenter.vm.hardware.DiskTypes.Info Get (string vm, string disk)
 Returns information about a virtual disk.
vmware.vcenter.vm.hardware.DiskTypes.Info Get (string vm, string disk, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about a virtual disk.
global::System.Threading.Tasks.Task
< vmware.vcenter.vm.hardware.DiskTypes.Info
GetAsync (string vm, string disk)
 Returns information about a virtual disk.
global::System.Threading.Tasks.Task
< vmware.vcenter.vm.hardware.DiskTypes.Info
GetAsync (string vm, string disk, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Returns information about a virtual disk.
string Create (string vm, vmware.vcenter.vm.hardware.DiskTypes.CreateSpec spec)
 Adds a virtual disk to the virtual machine.
string Create (string vm, vmware.vcenter.vm.hardware.DiskTypes.CreateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Adds a virtual disk to the virtual machine.
global::System.Threading.Tasks.Task
< string > 
CreateAsync (string vm, vmware.vcenter.vm.hardware.DiskTypes.CreateSpec spec)
 Adds a virtual disk to the virtual machine.
global::System.Threading.Tasks.Task
< string > 
CreateAsync (string vm, vmware.vcenter.vm.hardware.DiskTypes.CreateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Adds a virtual disk to the virtual machine.
void Update (string vm, string disk, vmware.vcenter.vm.hardware.DiskTypes.UpdateSpec spec)
 Updates the configuration of a virtual disk.
void Update (string vm, string disk, vmware.vcenter.vm.hardware.DiskTypes.UpdateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Updates the configuration of a virtual disk.
global::System.Threading.Tasks.Task UpdateAsync (string vm, string disk, vmware.vcenter.vm.hardware.DiskTypes.UpdateSpec spec)
 Updates the configuration of a virtual disk.
global::System.Threading.Tasks.Task UpdateAsync (string vm, string disk, vmware.vcenter.vm.hardware.DiskTypes.UpdateSpec spec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Updates the configuration of a virtual disk.
void Delete (string vm, string disk)
 Removes a virtual disk from the virtual machine.
void Delete (string vm, string disk, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Removes a virtual disk from the virtual machine.
global::System.Threading.Tasks.Task DeleteAsync (string vm, string disk)
 Removes a virtual disk from the virtual machine.
global::System.Threading.Tasks.Task DeleteAsync (string vm, string disk, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Removes a virtual disk from the virtual machine.

Detailed Description

The Disk interface provides methods for configuring the virtual disks of a virtual machine.

A virtual disk has a backing such as a VMDK file. The backing has an independent lifecycle from the virtual machine when it is detached from the virtual machine. The Disk.Create method provides the ability to create a new virtual disk. When creating a virtual disk, a new VMDK file may be created or an existing VMDK file may used as a backing. Once a VMDK file is associated with a virtual machine, its lifecycle will be bound to the virtual machine. In other words, it will be deleted when the virtual machine is deleted. The Disk.Delete method provides the ability to detach a VMDK file from the virtual machine. The Disk.Delete method does not delete the VMDK file that backs the virtual disk. Once detached, the VMDK file will not be destroyed when the virtual machine to which it was associated is deleted.


Member Function Documentation

string vmware::vcenter::vm::hardware::Disk::Create ( string  vm,
vmware.vcenter.vm.hardware.DiskTypes.CreateSpec  spec 
)

Adds a virtual disk to the virtual machine.

While adding the virtual disk, a new VMDK file may be created or an existing VMDK file may be used to back the virtual disk.

Exceptions:
vmware.vapi.std.errors.Errorif system reported that the disk device was created but was unable to confirm the creation because the identifier of the new device could not be determined.
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE.
vmware.vapi.std.errors.UnableToAllocateResourceif the specified storage address is unavailable; for example, if the SCSI adapter requested does not exist.
vmware.vapi.std.errors.ResourceInUseif the specified storage address is in use.
vmware.vapi.std.errors.InvalidArgumentif the specified storage address is out of bounds or if the specified storage policy is invalid.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
vmware.vapi.std.errors.Unsupportedif the guest operating system of the virtual machine is not supported and spec includes null fields that default to guest-specific values.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
specSpecification for the new virtual disk.
Returns:
Virtual disk identifier. The result will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .

Implemented in vmware::vcenter::vm::hardware::DiskStub.

string vmware::vcenter::vm::hardware::Disk::Create ( string  vm,
vmware.vcenter.vm.hardware.DiskTypes.CreateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Adds a virtual disk to the virtual machine.

While adding the virtual disk, a new VMDK file may be created or an existing VMDK file may be used to back the virtual disk.

Exceptions:
vmware.vapi.std.errors.Errorif system reported that the disk device was created but was unable to confirm the creation because the identifier of the new device could not be determined.
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE.
vmware.vapi.std.errors.UnableToAllocateResourceif the specified storage address is unavailable; for example, if the SCSI adapter requested does not exist.
vmware.vapi.std.errors.ResourceInUseif the specified storage address is in use.
vmware.vapi.std.errors.InvalidArgumentif the specified storage address is out of bounds or if the specified storage policy is invalid.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
vmware.vapi.std.errors.Unsupportedif the guest operating system of the virtual machine is not supported and spec includes null fields that default to guest-specific values.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
specSpecification for the new virtual disk.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Virtual disk identifier. The result will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task<string> vmware::vcenter::vm::hardware::Disk::CreateAsync ( string  vm,
vmware.vcenter.vm.hardware.DiskTypes.CreateSpec  spec 
)

Adds a virtual disk to the virtual machine.

While adding the virtual disk, a new VMDK file may be created or an existing VMDK file may be used to back the virtual disk.

Exceptions:
vmware.vapi.std.errors.Errorif system reported that the disk device was created but was unable to confirm the creation because the identifier of the new device could not be determined.
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE.
vmware.vapi.std.errors.UnableToAllocateResourceif the specified storage address is unavailable; for example, if the SCSI adapter requested does not exist.
vmware.vapi.std.errors.ResourceInUseif the specified storage address is in use.
vmware.vapi.std.errors.InvalidArgumentif the specified storage address is out of bounds or if the specified storage policy is invalid.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
vmware.vapi.std.errors.Unsupportedif the guest operating system of the virtual machine is not supported and spec includes null fields that default to guest-specific values.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
specSpecification for the new virtual disk.
Returns:
Virtual disk identifier. The result will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task<string> vmware::vcenter::vm::hardware::Disk::CreateAsync ( string  vm,
vmware.vcenter.vm.hardware.DiskTypes.CreateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Adds a virtual disk to the virtual machine.

While adding the virtual disk, a new VMDK file may be created or an existing VMDK file may be used to back the virtual disk.

Exceptions:
vmware.vapi.std.errors.Errorif system reported that the disk device was created but was unable to confirm the creation because the identifier of the new device could not be determined.
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE.
vmware.vapi.std.errors.UnableToAllocateResourceif the specified storage address is unavailable; for example, if the SCSI adapter requested does not exist.
vmware.vapi.std.errors.ResourceInUseif the specified storage address is in use.
vmware.vapi.std.errors.InvalidArgumentif the specified storage address is out of bounds or if the specified storage policy is invalid.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
vmware.vapi.std.errors.Unsupportedif the guest operating system of the virtual machine is not supported and spec includes null fields that default to guest-specific values.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
specSpecification for the new virtual disk.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Virtual disk identifier. The result will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .

Implemented in vmware::vcenter::vm::hardware::DiskStub.

void vmware::vcenter::vm::hardware::Disk::Delete ( string  vm,
string  disk 
)

Removes a virtual disk from the virtual machine.

This method does not destroy the VMDK file that backs the virtual disk. It only detaches the VMDK file from the virtual machine. Once detached, the VMDK file will not be destroyed when the virtual machine to which it was associated is deleted.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .

Implemented in vmware::vcenter::vm::hardware::DiskStub.

void vmware::vcenter::vm::hardware::Disk::Delete ( string  vm,
string  disk,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Removes a virtual disk from the virtual machine.

This method does not destroy the VMDK file that backs the virtual disk. It only detaches the VMDK file from the virtual machine. Once detached, the VMDK file will not be destroyed when the virtual machine to which it was associated is deleted.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task vmware::vcenter::vm::hardware::Disk::DeleteAsync ( string  vm,
string  disk 
)

Removes a virtual disk from the virtual machine.

This method does not destroy the VMDK file that backs the virtual disk. It only detaches the VMDK file from the virtual machine. Once detached, the VMDK file will not be destroyed when the virtual machine to which it was associated is deleted.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task vmware::vcenter::vm::hardware::Disk::DeleteAsync ( string  vm,
string  disk,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Removes a virtual disk from the virtual machine.

This method does not destroy the VMDK file that backs the virtual disk. It only detaches the VMDK file from the virtual machine. Once detached, the VMDK file will not be destroyed when the virtual machine to which it was associated is deleted.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the virtual machine is suspended or if the virtual machine is powered on and virtual disk type is IDE.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::vcenter::vm::hardware::DiskStub.

vmware.vcenter.vm.hardware.DiskTypes.Info vmware::vcenter::vm::hardware::Disk::Get ( string  vm,
string  disk 
)

Returns information about a virtual disk.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
Returns:
Information about the specified virtual disk.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

vmware.vcenter.vm.hardware.DiskTypes.Info vmware::vcenter::vm::hardware::Disk::Get ( string  vm,
string  disk,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns information about a virtual disk.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Information about the specified virtual disk.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task<vmware.vcenter.vm.hardware.DiskTypes.Info> vmware::vcenter::vm::hardware::Disk::GetAsync ( string  vm,
string  disk,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns information about a virtual disk.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Information about the specified virtual disk.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task<vmware.vcenter.vm.hardware.DiskTypes.Info> vmware::vcenter::vm::hardware::Disk::GetAsync ( string  vm,
string  disk 
)

Returns information about a virtual disk.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
Returns:
Information about the specified virtual disk.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Collections.Generic.List<vmware.vcenter.vm.hardware.DiskTypes.Summary> vmware::vcenter::vm::hardware::Disk::List ( string  vm,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns commonly used information about the virtual disks belonging to the virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
List of commonly used information about the virtual disks.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Collections.Generic.List<vmware.vcenter.vm.hardware.DiskTypes.Summary> vmware::vcenter::vm::hardware::Disk::List ( string  vm)

Returns commonly used information about the virtual disks belonging to the virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
Returns:
List of commonly used information about the virtual disks.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.vcenter.vm.hardware.DiskTypes.Summary> > vmware::vcenter::vm::hardware::Disk::ListAsync ( string  vm,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Returns commonly used information about the virtual disks belonging to the virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
List of commonly used information about the virtual disks.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.vcenter.vm.hardware.DiskTypes.Summary> > vmware::vcenter::vm::hardware::Disk::ListAsync ( string  vm)

Returns commonly used information about the virtual disks belonging to the virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine is not found.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
Returns:
List of commonly used information about the virtual disks.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

void vmware::vcenter::vm::hardware::Disk::Update ( string  vm,
string  disk,
vmware.vcenter.vm.hardware.DiskTypes.UpdateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Updates the configuration of a virtual disk.

An update method can be used to detach the existing VMDK file and attach another VMDK file to the virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif one or more of the fields specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual disk.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
specSpecification for updating the virtual disk.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::vcenter::vm::hardware::DiskStub.

void vmware::vcenter::vm::hardware::Disk::Update ( string  vm,
string  disk,
vmware.vcenter.vm.hardware.DiskTypes.UpdateSpec  spec 
)

Updates the configuration of a virtual disk.

An update method can be used to detach the existing VMDK file and attach another VMDK file to the virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif one or more of the fields specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual disk.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
specSpecification for updating the virtual disk.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task vmware::vcenter::vm::hardware::Disk::UpdateAsync ( string  vm,
string  disk,
vmware.vcenter.vm.hardware.DiskTypes.UpdateSpec  spec 
)

Updates the configuration of a virtual disk.

An update method can be used to detach the existing VMDK file and attach another VMDK file to the virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif one or more of the fields specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual disk.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
specSpecification for updating the virtual disk.

Implemented in vmware::vcenter::vm::hardware::DiskStub.

global::System.Threading.Tasks.Task vmware::vcenter::vm::hardware::Disk::UpdateAsync ( string  vm,
string  disk,
vmware.vcenter.vm.hardware.DiskTypes.UpdateSpec  spec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Updates the configuration of a virtual disk.

An update method can be used to detach the existing VMDK file and attach another VMDK file to the virtual machine.

Exceptions:
vmware.vapi.std.errors.Errorif the system reports an error while responding to the request.
vmware.vapi.std.errors.NotFoundif the virtual machine or virtual disk is not found.
vmware.vapi.std.errors.NotAllowedInCurrentStateif one or more of the fields specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual disk.
vmware.vapi.std.errors.ResourceBusyif the virtual machine is busy performing another operation.
vmware.vapi.std.errors.ResourceInaccessibleif the virtual machine's configuration state cannot be accessed.
vmware.vapi.std.errors.ServiceUnavailableif the system is unable to communicate with a service to complete the request.
vmware.vapi.std.errors.Unauthenticatedif the user can not be authenticated.
vmware.vapi.std.errors.Unauthorizedif the user doesn't have the required privileges.
Parameters:
vmVirtual machine identifier. The parameter must be an identifier for the resource type: VirtualMachine .
diskVirtual disk identifier. The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk .
specSpecification for updating the virtual disk.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::vcenter::vm::hardware::DiskStub.


The documentation for this interface was generated from the following file: