AddHostRequestType

AddHostRequestType
AddHostRequestType

The parameters of AddHost_Task.

JSON Example
{
    "spec": {
        "_typeName": "string",
        "hostName": "string",
        "port": 0,
        "sslThumbprint": "string",
        "sslCertificate": "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.

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

the resource pool for the root resource pool from the host.

Required privileges: Resource.AssignVMToPool

string
license
Optional

Provide a licenseKey or licenseKeyType. See LicenseManager