Storage Pod Batch Add Standalone Hosts Task

Storage Pod Batch Add Standalone Hosts Task

Adds a list of hosts to inventory, as standalone hosts, in a single invocation.

The operation returns a result containing a list of hosts that are successfully added.

In addition to the Host.Inventory.AddStandaloneHost privilege, the operation requires System.View privilege on the VM folder that the VMs of the host will be placed on.

Required privileges: Host.Inventory.AddStandaloneHost

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/StoragePod/{moId}/BatchAddStandaloneHosts_Task
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case StoragePod/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.


Request Body
BatchAddStandaloneHostsRequestType of type(s) application/json
Required

Show optional properties

{
    "addConnected": false
}
{
    "newHosts": [
        {
            "_typeName": "string",
            "hostCnxSpec": {
                "_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"
                        }
                    ]
                }
            },
            "esxLicense": "string"
        }
    ],
    "compResSpec": {
        "_typeName": "string",
        "vmSwapPlacement": "string",
        "spbmEnabled": false,
        "defaultHardwareVersionKey": "string",
        "desiredSoftwareSpec": {
            "_typeName": "string",
            "baseImageSpec": {
                "_typeName": "string",
                "version": "string"
            },
            "vendorAddOnSpec": {
                "_typeName": "string",
                "name": "string",
                "version": "string"
            },
            "components": [
                {
                    "_typeName": "string",
                    "name": "string",
                    "version": "string"
                }
            ],
            "removedComponents": [
                "string"
            ]
        },
        "maximumHardwareVersionKey": "string",
        "enableConfigManager": false,
        "hostSeedSpec": {
            "_typeName": "string",
            "singleHostSpec": {
                "_typeName": "string",
                "newHostCnxSpec": {
                    "_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"
                            }
                        ]
                    }
                },
                "existingHost": {
                    "_typeName": "string",
                    "type": "string",
                    "value": "string"
                }
            }
        }
    },
    "addConnected": false
}
newHosts
Optional

Specifies a list of host specifications for new hosts.

compResSpec
Optional

Changes to apply to the compute resource configuration.

boolean
addConnected
Required

Flag to specify whether or not hosts should be connected at the time they are added. A host will not be added if a connection attempt is made and fails.

Authentication
This operation uses the following authentication methods.
Responses
200

This method returns a Task object with which to monitor the operation.

Returns MoRefTask of type(s) application/json
This response body class contains all of the following: MoRefExtensibleManagedObject
{
    "_typeName": "string",
    "type": "string",
    "value": "string"
}