AddHostRequestType

AddHostRequestType
AddHostRequestType

The parameters of AddHost_Task.

JSON Example
{
    "spec": {
        "_typeName": "string",
        "hostName": "string",
        "port": 0,
        "sslThumbprint": "string",
        "userName": "string",
        "password": "string",
        "vmFolder": {
            "_typeName": "string",
            "type": "string",
            "value": "string"
        },
        "force": false,
        "vimAccountName": "string",
        "vimAccountPassword": "string",
        "managementIp": "string",
        "lockdownMode": "string",
        "hostGateway": {
            "_typeName": "string",
            "gatewayType": "string",
            "gatewayId": "string",
            "trustVerificationToken": "string",
            "hostAuthParams": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": "string"
                }
            ]
        }
    },
    "asConnected": false,
    "resourcePool": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "license": "string"
}
spec
Required

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).

boolean
asConnected
Required

Flag to specify whether or not the host should be connected immediately after it is added. The host will not be added if a connection attempt is made and fails.

resourcePool
Optional

Reference to an instance of the ResourcePool managed object.

string
license
Optional

Provide a licenseKey or licenseKeyType. See LicenseManager