Class VcHostConnectSpec

Extends VcDynamicData
Specifies the parameters needed to add a single host. This includes a small set of optional information about the host configuration. This allows the network and datastore configuration of the host to be synchronized with the naming conventions of the datacenter, as well as the configuration of a vim account (the username/password for the virtual machine files that is created on disk).


Name Type Description
force boolean If this flag is set to "true", then the connection succeeds even if the host is already being managed by another VirtualCenter server. The original VirtualCenter server loses connection to the host.
hostName String The DNS name or IP address of the host. (Required for adding a host.)
managementIp String The IP address of the VirtualCenter server that will manage this host. This field can be used to control which IP address the VirtualCenter agent will send heartbeats to. If it is not set, VirtualCenter will use the local IP address used when communicating with the host. Setting this field is useful when the VirtualCenter server is behind a NAT in which case the external NAT address must be used.
password String The password for the administration account. (Required for adding a host.)
port Number The port number for the connection. If this is not specified, the default port number is used. For ESX 2.x hosts this is the authd port (902 by default). For ESX 3.x and above and VMware Server hosts this is the https port (443 by default). If this is a reconnect, the port number is unchanged.
sslThumbprint String The thumbprint of the SSL certificate, which the host is expected to have. If this value is set and matches the certificate thumbprint presented by the host, then the host is authenticated. If this value is not set or does not match the certificate thumbprint presented by the host, then the host's certificate is verified by checking whether it was signed by a recognized CA. <p> The thumbprint is always computed using the SHA1 hash and is the string representation of that hash in the format: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx where, 'x' represents a hexadecimal digit
userName String The administration account on the host. (Required for adding a host.)
vimAccountName String The username to be used for accessing the virtual machine files on the disk.
vimAccountPassword String The password to be used with the <a href="VcHostConnectSpec.html#vimAccountName">VcHostConnectSpec</a> property for accessing the virtual machine files on the disk.
vmFolder VcFolder The folder in which to store the existing virtual machines on the host. If this folder is not specified, a default folder is chosen (and possibly created) by the VirtualCenter. This folder exists (or is possibly created) on the VirtualCenter server and is called "Discovered VM".


Name Returns
VcHostConnectSpec() constructor
equals(Object ) boolean
getAdditionalBeanInfo() java.beans.BeanInfo[]
getBeanDescriptor() java.beans.BeanDescriptor
getDefaultEventIndex() Number
getDefaultPropertyIndex() Number
getDeserializer(String , java.lang.Class , javax.xml.namespace.QName ) org.apache.axis.encoding.Deserializer
getEventSetDescriptors() java.beans.EventSetDescriptor[]
getIcon(Number ) java.awt.Image
getMethodDescriptors() java.beans.MethodDescriptor[]
getPropertyDescriptors() java.beans.PropertyDescriptor[]
getSerializer(String , java.lang.Class , javax.xml.namespace.QName ) org.apache.axis.encoding.Serializer
getTypeDesc() org.apache.axis.description.TypeDesc
getVmFolder_ManagedObject() Object
hashCode() Number
isForce() boolean
setVmFolder_ManagedObject(Object ) void

Returned by


Referenced in

Method Returns
VcClusterComputeResource.addHost_Task(VcHostConnectSpec spec, boolean asConnected, VcResourcePool resourcePool, String license) VcTask
VcDatacenter.queryConnectionInfoViaSpec(VcHostConnectSpec ) VcHostConnectInfo
VcFolder.addStandaloneHost_Task(VcHostConnectSpec spec, VcComputeResourceConfigSpec compResSpec, boolean addConnected, String license) VcTask
VcHostSystem.reconnectHost_Task(VcHostConnectSpec cnxSpec, VcHostSystemReconnectSpec reconnectSpec) VcTask
VcStoragePod.addStandaloneHost_Task(VcHostConnectSpec spec, VcComputeResourceConfigSpec compResSpec, boolean addConnected, String license) VcTask