Host_CreateSpec

Host_CreateSpec
Host_CreateSpec

The Host.CreateSpec structure defines the information used to create a host.

JSON Example
{
    "hostname": "string",
    "port": 0,
    "user_name": "string",
    "password": "string",
    "folder": "string",
    "thumbprint_verification": "string",
    "thumbprint": "string",
    "force_add": false
}
string
hostname
Required

The IP address or DNS resolvable name of the host.

integer As int64
port
Optional

The port of the host. If unset, port 443 will be used.

string
user_name
Required

The administrator account on the host.

string As password
password
Required

The password for the administrator account on the host.

string
folder
Required

Host and cluster folder in which the new standalone host should be created. This field is currently required. In the future, if this field is unset, the system will attempt to choose a suitable folder for the host; if a folder cannot be chosen, the host creation operation will fail. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: Folder. When operations return a value of this structure as a result, the field will be an identifier for the resource type: Folder.

thumbprint_verification
Required

The Host.CreateSpec.ThumbprintVerification enumerated type defines the thumbprint verification schemes for a host's SSL certificate.
NONE : Accept the host's thumbprint without verifying it.
THUMBPRINT : Host's SSL certificate verified by checking its thumbprint against the specified thumbprint.

string
thumbprint
Optional

The thumbprint of the SSL certificate, which the host is expected to have. 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. This field is optional and it is only relevant when the value of Host.CreateSpec.thumbprint-verification is THUMBPRINT.

boolean
force_add
Optional

Whether host should be added to the vCenter Server even if it is being managed by another vCenter Server. The original vCenterServer loses connection to the host. If unset, forceAdd is default to false.

Parameter To