[{"label":"Latest (v1.1)","version":"latest"}]
vmc

Addhostprechecktask SDDCs

Description

Triggers an add host precheck task

Request

Request

URL

URL


post
https://vmc.vmware.com/vmc/api/orgs/{org}/sddcs/{sddc}/add-hosts-precheck
Copy

Path Parameters

Path Parameters

string
org Required

Organization identifier


string
sddc Required

Sddc identifier


Request Body

Request Body

EsxConfig of type(s) application/json Required

esxConfig

{
	"num_hosts": 0
}
integer as int32
num_hosts Required

string
availability_zone Optional

Availability zone where the hosts should be provisioned. (Can be specified only for privileged host operations).


string
cluster_id Optional

An optional cluster id if the esxs operation has to be on a specific cluster.


array of string as UUID
esxs Optional

An optional list of ESX IDs to remove.


boolean
strict_placement Optional

An option to indicate if the host needs to be strictly placed in a placement group. Fail the operation otherwise.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

202 Accepted returns Task of type(s) application/json
This response body class contains all of the following: AbstractEntity, InlineTask1
Errors

Errors

400

Bad Request.


401

Unauthorized


403

Access not allowed to the operation for the current user.


404

Cannot find the SDDC with the given id.

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"availability_zone":"string","cluster_id":"string","esxs":["string"],"num_hosts":0,"strict_placement":false}' https://vmc.vmware.com/vmc/api/orgs/{org}/sddcs/{sddc}/add-hosts-precheck
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vmc-ui-servicename: sddcs
x-vmw-vapi-methodname: addHostPrecheckTask


[{"label":"Latest (v1.1)","version":"latest"}]
vmc
Feedback

Was this page helpful?