public class EthernetStub extends com.vmware.vapi.internal.bindings.Stub implements Ethernet
Ethernet
API service.
WARNING: Internal class, subject to change in future versions.
EthernetTypes.BackingInfo, EthernetTypes.BackingSpec, EthernetTypes.BackingType, EthernetTypes.CreateSpec, EthernetTypes.EmulationType, EthernetTypes.Info, EthernetTypes.MacAddressType, EthernetTypes.Summary, EthernetTypes.UpdateSpec
apiProvider, converter, ifaceId, securityContext
_VAPI_SERVICE_ID, RESOURCE_TYPE
Constructor and Description |
---|
EthernetStub(ApiProvider apiProvider,
StubConfigurationBase config) |
EthernetStub(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 nic)
Connects a virtual Ethernet adapter of a powered-on virtual machine to its
backing.
|
void |
connect(java.lang.String vm,
java.lang.String nic,
AsyncCallback<java.lang.Void> asyncCallback)
Connects a virtual Ethernet adapter of a powered-on virtual machine to its
backing.
|
void |
connect(java.lang.String vm,
java.lang.String nic,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Connects a virtual Ethernet adapter of a powered-on virtual machine to its
backing.
|
void |
connect(java.lang.String vm,
java.lang.String nic,
InvocationConfig invocationConfig)
Connects a virtual Ethernet adapter of a powered-on virtual machine to its
backing.
|
java.lang.String |
create(java.lang.String vm,
EthernetTypes.CreateSpec spec)
Adds a virtual Ethernet adapter to the virtual machine.
|
void |
create(java.lang.String vm,
EthernetTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback)
Adds a virtual Ethernet adapter to the virtual machine.
|
void |
create(java.lang.String vm,
EthernetTypes.CreateSpec spec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Adds a virtual Ethernet adapter to the virtual machine.
|
java.lang.String |
create(java.lang.String vm,
EthernetTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Adds a virtual Ethernet adapter to the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String nic)
Removes a virtual Ethernet adapter from the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String nic,
AsyncCallback<java.lang.Void> asyncCallback)
Removes a virtual Ethernet adapter from the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String nic,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Removes a virtual Ethernet adapter from the virtual machine.
|
void |
delete(java.lang.String vm,
java.lang.String nic,
InvocationConfig invocationConfig)
Removes a virtual Ethernet adapter from the virtual machine.
|
void |
disconnect(java.lang.String vm,
java.lang.String nic)
Disconnects a virtual Ethernet adapter of a powered-on virtual machine from its
backing.
|
void |
disconnect(java.lang.String vm,
java.lang.String nic,
AsyncCallback<java.lang.Void> asyncCallback)
Disconnects a virtual Ethernet adapter of a powered-on virtual machine from its
backing.
|
void |
disconnect(java.lang.String vm,
java.lang.String nic,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Disconnects a virtual Ethernet adapter of a powered-on virtual machine from its
backing.
|
void |
disconnect(java.lang.String vm,
java.lang.String nic,
InvocationConfig invocationConfig)
Disconnects a virtual Ethernet adapter of a powered-on virtual machine from its
backing.
|
EthernetTypes.Info |
get(java.lang.String vm,
java.lang.String nic)
Returns information about a virtual Ethernet adapter.
|
void |
get(java.lang.String vm,
java.lang.String nic,
AsyncCallback<EthernetTypes.Info> asyncCallback)
Returns information about a virtual Ethernet adapter.
|
void |
get(java.lang.String vm,
java.lang.String nic,
AsyncCallback<EthernetTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Returns information about a virtual Ethernet adapter.
|
EthernetTypes.Info |
get(java.lang.String vm,
java.lang.String nic,
InvocationConfig invocationConfig)
Returns information about a virtual Ethernet adapter.
|
java.util.List<EthernetTypes.Summary> |
list(java.lang.String vm)
Returns commonly used information about the virtual Ethernet adapters belonging
to the virtual machine.
|
void |
list(java.lang.String vm,
AsyncCallback<java.util.List<EthernetTypes.Summary>> asyncCallback)
Returns commonly used information about the virtual Ethernet adapters belonging
to the virtual machine.
|
void |
list(java.lang.String vm,
AsyncCallback<java.util.List<EthernetTypes.Summary>> asyncCallback,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual Ethernet adapters belonging
to the virtual machine.
|
java.util.List<EthernetTypes.Summary> |
list(java.lang.String vm,
InvocationConfig invocationConfig)
Returns commonly used information about the virtual Ethernet adapters belonging
to the virtual machine.
|
void |
update(java.lang.String vm,
java.lang.String nic,
EthernetTypes.UpdateSpec spec)
Updates the configuration of a virtual Ethernet adapter.
|
void |
update(java.lang.String vm,
java.lang.String nic,
EthernetTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates the configuration of a virtual Ethernet adapter.
|
void |
update(java.lang.String vm,
java.lang.String nic,
EthernetTypes.UpdateSpec spec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates the configuration of a virtual Ethernet adapter.
|
void |
update(java.lang.String vm,
java.lang.String nic,
EthernetTypes.UpdateSpec spec,
InvocationConfig invocationConfig)
Updates the configuration of a virtual Ethernet adapter.
|
public EthernetStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public EthernetStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<EthernetTypes.Summary> list(java.lang.String vm)
Ethernet
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<EthernetTypes.Summary> list(java.lang.String vm, InvocationConfig invocationConfig)
Ethernet
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<EthernetTypes.Summary>> asyncCallback)
Ethernet
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of commonly used information about virtual Ethernet adapters.
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<EthernetTypes.Summary>> asyncCallback, InvocationConfig invocationConfig)
Ethernet
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
List of commonly used information about virtual Ethernet adapters.
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 Ethernet
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 EthernetTypes.Info get(java.lang.String vm, java.lang.String nic)
Ethernet
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.public EthernetTypes.Info get(java.lang.String vm, java.lang.String nic, InvocationConfig invocationConfig)
Ethernet
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.invocationConfig
- Configuration for the method invocation.public void get(java.lang.String vm, java.lang.String nic, AsyncCallback<EthernetTypes.Info> asyncCallback)
Ethernet
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Information about the specified virtual Ethernet adapter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual Ethernet adapter 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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String vm, java.lang.String nic, AsyncCallback<EthernetTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Ethernet
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Information about the specified virtual Ethernet adapter.
Operation Errors:
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or virtual Ethernet adapter 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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.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, EthernetTypes.CreateSpec spec)
Ethernet
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual Ethernet adapter.com.vmware.vcenter.vm.hardware.Ethernet
.public java.lang.String create(java.lang.String vm, EthernetTypes.CreateSpec spec, InvocationConfig invocationConfig)
Ethernet
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual Ethernet adapter.invocationConfig
- Configuration for the method invocation.com.vmware.vcenter.vm.hardware.Ethernet
.public void create(java.lang.String vm, EthernetTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback)
Ethernet
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Virtual Ethernet adapter identifier.
The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.
Operation Errors:
Error
- if the system reported that the Ethernet adapter was created but was unable to
confirm the creation because the identifier of the new adapter could not be
determined.
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or network backing is not found.
UnableToAllocateResource
- if the virtual machine already has the maximum number of supported Ethernet
adapters.
InvalidArgument
- if the specified PCI address is out of bounds, HOST_DEVICE is specified as the
type, or a backing cannot be found in the case that backing is left null
.
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual Ethernet adapter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String vm, EthernetTypes.CreateSpec spec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Ethernet
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Virtual Ethernet adapter identifier.
The return value will be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.
Operation Errors:
Error
- if the system reported that the Ethernet adapter was created but was unable to
confirm the creation because the identifier of the new adapter could not be
determined.
Error
- if the system reports an error while responding to the request.
NotFound
- if the virtual machine or network backing is not found.
UnableToAllocateResource
- if the virtual machine already has the maximum number of supported Ethernet
adapters.
InvalidArgument
- if the specified PCI address is out of bounds, HOST_DEVICE is specified as the
type, or a backing cannot be found in the case that backing is left null
.
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.spec
- Specification for the new virtual Ethernet adapter.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 nic, EthernetTypes.UpdateSpec spec)
Ethernet
Synchronous method overload. Result of the invocation will be reported as a method return value.
update
in interface Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.spec
- Specification for updating the virtual Ethernet adapter.public void update(java.lang.String vm, java.lang.String nic, EthernetTypes.UpdateSpec spec, InvocationConfig invocationConfig)
Ethernet
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.spec
- Specification for updating the virtual Ethernet adapter.invocationConfig
- Configuration for the method invocation.public void update(java.lang.String vm, java.lang.String nic, EthernetTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback)
Ethernet
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.
InvalidArgument
- if HOST_DEVICE is specified as the type.
NotFound
- if the virtual machine, virtual Ethernet adapter, or backing network is not
found.
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.spec
- Specification for updating the virtual Ethernet adapter.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String vm, java.lang.String nic, EthernetTypes.UpdateSpec spec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Ethernet
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.
InvalidArgument
- if HOST_DEVICE is specified as the type.
NotFound
- if the virtual machine, virtual Ethernet adapter, or backing network is not
found.
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.spec
- Specification for updating the virtual Ethernet adapter.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 nic)
Ethernet
Synchronous method overload. Result of the invocation will be reported as a method return value.
delete
in interface Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.public void delete(java.lang.String vm, java.lang.String nic, InvocationConfig invocationConfig)
Ethernet
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String vm, java.lang.String nic, AsyncCallback<java.lang.Void> asyncCallback)
Ethernet
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 Ethernet adapter is not found.
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String vm, java.lang.String nic, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Ethernet
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 Ethernet adapter is not found.
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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.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 nic)
Ethernet
For a powered-off virtual
machine, the Ethernet.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.EthernetTypes.UpdateSpec)
method may
be used to configure the virtual Ethernet adapter 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.
connect
in interface Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.public void connect(java.lang.String vm, java.lang.String nic, InvocationConfig invocationConfig)
Ethernet
For a powered-off virtual
machine, the Ethernet.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.EthernetTypes.UpdateSpec)
method may
be used to configure the virtual Ethernet adapter 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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.invocationConfig
- Configuration for the method invocation.public void connect(java.lang.String vm, java.lang.String nic, AsyncCallback<java.lang.Void> asyncCallback)
Ethernet
For a powered-off virtual
machine, the Ethernet.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.EthernetTypes.UpdateSpec)
method may
be used to configure the virtual Ethernet adapter 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 Ethernet adapter is not found.
AlreadyInDesiredState
- if the virtual Ethernet adapter 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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void connect(java.lang.String vm, java.lang.String nic, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Ethernet
For a powered-off virtual
machine, the Ethernet.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.EthernetTypes.UpdateSpec)
method may
be used to configure the virtual Ethernet adapter 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 Ethernet adapter is not found.
AlreadyInDesiredState
- if the virtual Ethernet adapter 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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.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 nic)
Ethernet
For a powered-off virtual
machine, the Ethernet.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.EthernetTypes.UpdateSpec)
method may
be used to configure the virtual Ethernet adapter 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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.public void disconnect(java.lang.String vm, java.lang.String nic, InvocationConfig invocationConfig)
Ethernet
For a powered-off virtual
machine, the Ethernet.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.EthernetTypes.UpdateSpec)
method may
be used to configure the virtual Ethernet adapter 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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.invocationConfig
- Configuration for the method invocation.public void disconnect(java.lang.String vm, java.lang.String nic, AsyncCallback<java.lang.Void> asyncCallback)
Ethernet
For a powered-off virtual
machine, the Ethernet.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.EthernetTypes.UpdateSpec)
method may
be used to configure the virtual Ethernet adapter 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 Ethernet adapter is not found.
AlreadyInDesiredState
- if the virtual Ethernet adapter 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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void disconnect(java.lang.String vm, java.lang.String nic, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Ethernet
For a powered-off virtual
machine, the Ethernet.update(java.lang.String, java.lang.String, com.vmware.vcenter.vm.hardware.EthernetTypes.UpdateSpec)
method may
be used to configure the virtual Ethernet adapter 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 Ethernet adapter is not found.
AlreadyInDesiredState
- if the virtual Ethernet adapter 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 Ethernet
vm
- Virtual machine identifier.
The parameter must be an identifier for the resource type: VirtualMachine
.nic
- Virtual Ethernet adapter identifier.
The parameter must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Ethernet
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.