public class CdromStub extends com.vmware.vapi.internal.bindings.Stub implements Cdrom
Cdrom
API service.
WARNING: Internal class, subject to change in future versions.
CdromTypes.BackingInfo, CdromTypes.BackingSpec, CdromTypes.BackingType, CdromTypes.CreateSpec, CdromTypes.DeviceAccessType, CdromTypes.HostBusAdapterType, CdromTypes.Info, CdromTypes.Summary, CdromTypes.UpdateSpec
apiProvider, converter, ifaceId, securityContext
RESOURCE_TYPE
Constructor and Description |
---|
CdromStub(ApiProvider apiProvider,
StubConfigurationBase config) |
CdromStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
connect(java.lang.String vm,
java.lang.String cdrom)
Connects a virtual CD-ROM device of a powered-on virtual machine to its backing.
|
void |
connect(java.lang.String vm,
java.lang.String cdrom,
AsyncCallback<java.lang.Void> asyncCallback)
Connects a virtual CD-ROM device of a powered-on virtual machine to its backing.
|
void |
connect(java.lang.String vm,
java.lang.String cdrom,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Connects a virtual CD-ROM device of a powered-on virtual machine to its backing.
|
void |
connect(java.lang.String vm,
java.lang.String cdrom,
InvocationConfig invocationConfig)
Connects a virtual CD-ROM device of a powered-on virtual machine to its backing.
|
java.lang.String |
create(java.lang.String vm,
CdromTypes.CreateSpec spec)
Adds a virtual CD-ROM device to the virtual machine.
|
void |
create(java.lang.String vm,
CdromTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Adds a virtual CD-ROM device to the virtual machine.
|
void |
create(java.lang.String vm,
CdromTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Adds a virtual CD-ROM device to the virtual machine.
|
java.lang.String |
create(java.lang.String vm,
CdromTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Adds a virtual CD-ROM device to the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String cdrom)
Removes a virtual CD-ROM device from the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String cdrom,
AsyncCallback<java.lang.Void> asyncCallback)
Removes a virtual CD-ROM device from the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String cdrom,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Removes a virtual CD-ROM device from the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String cdrom,
InvocationConfig invocationConfig)
Removes a virtual CD-ROM device from the virtual machine.
|
void |
disconnect(java.lang.String vm,
java.lang.String cdrom)
Disconnects a virtual CD-ROM device of a powered-on virtual machine from its
backing.
|
void |
disconnect(java.lang.String vm,
java.lang.String cdrom,
AsyncCallback<java.lang.Void> asyncCallback)
Disconnects a virtual CD-ROM device of a powered-on virtual machine from its
backing.
|
void |
disconnect(java.lang.String vm,
java.lang.String cdrom,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Disconnects a virtual CD-ROM device of a powered-on virtual machine from its
backing.
|
void |
disconnect(java.lang.String vm,
java.lang.String cdrom,
InvocationConfig invocationConfig)
Disconnects a virtual CD-ROM device of a powered-on virtual machine from its
backing.
|
CdromTypes.Info |
get(java.lang.String vm,
java.lang.String cdrom)
Returns information about a virtual CD-ROM device.
|
void |
get(java.lang.String vm,
java.lang.String cdrom,
AsyncCallback<CdromTypes.Info> asyncCallback)
Returns information about a virtual CD-ROM device.
|
void |
get(java.lang.String vm,
java.lang.String cdrom,
AsyncCallback<CdromTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a virtual CD-ROM device.
|
CdromTypes.Info |
get(java.lang.String vm,
java.lang.String cdrom,
InvocationConfig invocationConfig)
Returns information about a virtual CD-ROM device.
|
java.util.List<CdromTypes.Summary> |
list(java.lang.String vm)
Returns commonly used information about the virtual CD-ROM devices belonging to
the virtual machine.
|
void |
list(java.lang.String vm,
AsyncCallback<java.util.List<CdromTypes.Summary>> asyncCallback)
Returns commonly used information about the virtual CD-ROM devices belonging to
the virtual machine.
|
void |
list(java.lang.String vm,
AsyncCallback<java.util.List<CdromTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual CD-ROM devices belonging to
the virtual machine.
|
java.util.List<CdromTypes.Summary> |
list(java.lang.String vm,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual CD-ROM devices belonging to
the virtual machine.
|
void |
update(java.lang.String vm,
java.lang.String cdrom,
CdromTypes.UpdateSpec spec)
Updates the configuration of a virtual CD-ROM device.
|
void |
update(java.lang.String vm,
java.lang.String cdrom,
CdromTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates the configuration of a virtual CD-ROM device.
|
void |
update(java.lang.String vm,
java.lang.String cdrom,
CdromTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates the configuration of a virtual CD-ROM device.
|
void |
update(java.lang.String vm,
java.lang.String cdrom,
CdromTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Updates the configuration of a virtual CD-ROM device.
|
public CdromStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public CdromStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<CdromTypes.Summary> list(java.lang.String vm)
Cdrom
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<CdromTypes.Summary> list(java.lang.String vm, InvocationConfig invocationConfig)
Cdrom
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
public void list(java.lang.String vm, AsyncCallback<java.util.List<CdromTypes.Summary>> asyncCallback)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
List of commonly used information about virtual CD-ROM devices.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
public void list(java.lang.String vm, AsyncCallback<java.util.List<CdromTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
List of commonly used information about virtual CD-ROM devices.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
list
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public CdromTypes.Info get(java.lang.String vm, java.lang.String cdrom)
Cdrom
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.public CdromTypes.Info get(java.lang.String vm, java.lang.String cdrom, InvocationConfig invocationConfig)
Cdrom
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
get
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String vm, java.lang.String cdrom, AsyncCallback<CdromTypes.Info> asyncCallback)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Information about the specified virtual CD-ROM device.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
get
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String vm, java.lang.String cdrom, AsyncCallback<CdromTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Information about the specified virtual CD-ROM device.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
get
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.lang.String create(java.lang.String vm, CdromTypes.CreateSpec spec)
Cdrom
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual CD-ROM device.com.vmware.vcenter.vm.hardware.Cdrom
.public java.lang.String create(java.lang.String vm, CdromTypes.CreateSpec spec, InvocationConfig invocationConfig)
Cdrom
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
create
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual CD-ROM device.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.vm.hardware.Cdrom
.public void create(java.lang.String vm, CdromTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Virtual CD-ROM device identifier.
The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.
Operation Errors:
Error
- if the system reported that the CD-ROM device was created but was unable to
confirm the creation because the identifier of the new device could not be
determined.
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
NotAllowedInCurrentState
- if the virtual machine is suspended or if the virtual machine is powered on and
virtual CD-ROM type is IDE.
UnableToAllocateResource
- if the specified storage address is unavailable; for example, if the SCSI
adapter requested does not exist.
ResourceInUse
- if the specified storage address is in use.
InvalidArgument
- if the specified storage address is out of bounds.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unsupported
- if the guest operating system of the virtual machine is not supported and spec
includes null
properties that default to guest-specific values.
create
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual CD-ROM device.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String vm, CdromTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Virtual CD-ROM device identifier.
The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.
Operation Errors:
Error
- if the system reported that the CD-ROM device was created but was unable to
confirm the creation because the identifier of the new device could not be
determined.
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine is not found.
NotAllowedInCurrentState
- if the virtual machine is suspended or if the virtual machine is powered on and
virtual CD-ROM type is IDE.
UnableToAllocateResource
- if the specified storage address is unavailable; for example, if the SCSI
adapter requested does not exist.
ResourceInUse
- if the specified storage address is in use.
InvalidArgument
- if the specified storage address is out of bounds.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
Unsupported
- if the guest operating system of the virtual machine is not supported and spec
includes null
properties that default to guest-specific values.
create
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual CD-ROM device.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void update(java.lang.String vm, java.lang.String cdrom, CdromTypes.UpdateSpec spec)
Cdrom
Synchronous method overload. Result of the invocation will be reported as a method return value.
update
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.spec
- Specification for updating the virtual CD-ROM device.public void update(java.lang.String vm, java.lang.String cdrom, CdromTypes.UpdateSpec spec, InvocationConfig invocationConfig)
Cdrom
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
update
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.spec
- Specification for updating the virtual CD-ROM device.invocationConfig
- Configuration for the method invocation.public void update(java.lang.String vm, java.lang.String cdrom, CdromTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
NotAllowedInCurrentState
- if one or more of the properties 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 CD-ROM device.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
update
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.spec
- Specification for updating the virtual CD-ROM device.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String vm, java.lang.String cdrom, CdromTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
NotAllowedInCurrentState
- if one or more of the properties 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 CD-ROM device.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
update
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.spec
- Specification for updating the virtual CD-ROM device.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String vm, java.lang.String cdrom)
Cdrom
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void delete(java.lang.String vm, java.lang.String cdrom, InvocationConfig invocationConfig)
Cdrom
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
delete
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String vm, java.lang.String cdrom, AsyncCallback<java.lang.Void> asyncCallback)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
NotAllowedInCurrentState
- if the virtual machine is suspended or if the virtual machine is powered on and
virtual CD-ROM type is IDE.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
delete
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String vm, java.lang.String cdrom, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Cdrom
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
NotAllowedInCurrentState
- if the virtual machine is suspended or if the virtual machine is powered on and
virtual CD-ROM type is IDE.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
delete
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void connect(java.lang.String vm, java.lang.String cdrom)
Cdrom
For a powered-off virtual machine, the
Cdrom.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.CdromTypes.UpdateSpec)
method may be used to
configure the virtual CD-ROM device to start in the connected state when the
virtual machine is powered on.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void connect(java.lang.String vm, java.lang.String cdrom, InvocationConfig invocationConfig)
Cdrom
For a powered-off virtual machine, the
Cdrom.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.CdromTypes.UpdateSpec)
method may be used to
configure the virtual CD-ROM device to start in the connected state when the
virtual machine is powered on.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
connect
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.invocationConfig
- Configuration for the method invocation.public void connect(java.lang.String vm, java.lang.String cdrom, AsyncCallback<java.lang.Void> asyncCallback)
Cdrom
For a powered-off virtual machine, the
Cdrom.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.CdromTypes.UpdateSpec)
method may be used to
configure the virtual CD-ROM device to start in the connected state when the
virtual machine is powered on.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
AlreadyInDesiredState
- if the virtual CD-ROM device is already connected.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
connect
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void connect(java.lang.String vm, java.lang.String cdrom, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Cdrom
For a powered-off virtual machine, the
Cdrom.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.CdromTypes.UpdateSpec)
method may be used to
configure the virtual CD-ROM device to start in the connected state when the
virtual machine is powered on.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
AlreadyInDesiredState
- if the virtual CD-ROM device is already connected.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
connect
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void disconnect(java.lang.String vm, java.lang.String cdrom)
Cdrom
For a powered-off virtual
machine, the Cdrom.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.CdromTypes.UpdateSpec)
method may be
used to configure the virtual CD-ROM device to start in the disconnected state
when the virtual machine is powered on.
Synchronous method overload. Result of the invocation will be reported as a method return value.
disconnect
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.public void disconnect(java.lang.String vm, java.lang.String cdrom, InvocationConfig invocationConfig)
Cdrom
For a powered-off virtual
machine, the Cdrom.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.CdromTypes.UpdateSpec)
method may be
used to configure the virtual CD-ROM device to start in the disconnected state
when the virtual machine is powered on.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
disconnect
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.invocationConfig
- Configuration for the method invocation.public void disconnect(java.lang.String vm, java.lang.String cdrom, AsyncCallback<java.lang.Void> asyncCallback)
Cdrom
For a powered-off virtual
machine, the Cdrom.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.CdromTypes.UpdateSpec)
method may be
used to configure the virtual CD-ROM device to start in the disconnected state
when the virtual machine is powered on.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
AlreadyInDesiredState
- if the virtual CD-ROM device is already disconnected.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
disconnect
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void disconnect(java.lang.String vm, java.lang.String cdrom, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Cdrom
For a powered-off virtual
machine, the Cdrom.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.CdromTypes.UpdateSpec)
method may be
used to configure the virtual CD-ROM device to start in the disconnected state
when the virtual machine is powered on.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual CD-ROM device is not found.
AlreadyInDesiredState
- if the virtual CD-ROM device is already disconnected.
NotAllowedInCurrentState
- if the virtual machine is not powered on.
ResourceBusy
- if the virtual machine is busy performing another operation.
ResourceInaccessible
- if the virtual machine's configuration state cannot be accessed.
ServiceUnavailable
- if the system is unable to communicate with a service to complete the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if the user doesn't have the required privileges.
disconnect
in interface Cdrom
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.cdrom
- Virtual CD-ROM device identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Cdrom
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.