Create ESXs
DescriptionAdd/Remove one or more ESX hosts in the target cloud
Request
URLURL
Path Parameters
Path Parameters
Organization identifier
Sddc identifier
Query Parameters
Query Parameters
If = ‘add’, will add the esx. If = ‘remove’, will delete the esx/esxs bound to a single cluster (Cluster Id is mandatory for non cluster 1 esx remove). If = ‘force-remove’, will delete the esx even if it can lead to data loss (This is an privileged operation). If = ‘addToAll’, will add esxs to all clusters in the SDDC (This is an privileged operation). If = ‘removeFromAll’, will delete the esxs from all clusters in the SDDC (This is an privileged operation). If = ‘attach-diskgroup’, will attach the provided diskgroups to a given host (privileged). If = ‘detach-diskgroup’, will detach the diskgroups of a given host (privileged). Default behaviour is ‘add’
Request Body
{
"num_hosts": 0
}
Availability zone where the hosts should be provisioned. (Can be specified only for privileged host operations).
An optional cluster id if the esxs operation has to be on a specific cluster.
An optional list of ESX IDs to remove.
An option to indicate if the host needs to be strictly placed in a placement group. Fail the operation otherwise.
Authentication
Response
Response BodyResponse Body
202 Accepted
Errors
The sddc is not in a state that’s valid for updates
Unauthorized
Access not allowed to the operation for the current user
Cannot find the SDDC with the given identifier
Code Samples
cURL Command
Vendor Extensions
x-vmc-ui-servicename: esxs
x-vmw-vapi-methodname: create