Create Esxs
Add/Remove one or more ESX hosts in the target cloud
Organization identifier
Sddc identifier
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'
Accepted
{
"updated": "string",
"user_id": "string",
"updated_by_user_id": "string",
"created": "string",
"version": 5,
"updated_by_user_name": "string",
"user_name": "string",
"id": "1d1c83ee-e0b7-4de9-b660-9a9ca1d22f32",
"status": "string",
"localized_error_message": "string",
"resource_id": "string",
"parent_task_id": "string",
"task_version": "string",
"correlation_id": "string",
"start_resource_entity_version": 0,
"customer_error_message": "string",
"sub_status": "string",
"task_type": "string",
"start_time": "string",
"task_progress_phases": [
{
"id": "string",
"name": "string",
"progress_percent": 0
}
],
"error_message": "string",
"org_id": "1d1c83ee-e0b7-4de9-b660-9a9ca1d22f32",
"end_resource_entity_version": 5,
"service_errors": [
{
"default_message": "string",
"original_service": "string",
"localized_message": "string",
"original_service_error_code": "string"
}
],
"org_type": "string",
"estimated_remaining_minutes": 4,
"params": {},
"progress_percent": 75,
"phase_in_progress": "string",
"resource_type": "string",
"end_time": "string"
}
The sddc is not in a state that's valid for updates
"ErrorResponse Object"
HTTP status code
Originating request URI
If true, client should retry operation
unique error code
localized error messages
Unauthorized
Access not allowed to the operation for the current user
"ErrorResponse Object"
HTTP status code
Originating request URI
If true, client should retry operation
unique error code
localized error messages
Cannot find the SDDC with the given identifier
"ErrorResponse Object"
HTTP status code
Originating request URI
If true, client should retry operation
unique error code
localized error messages
curl -X POST -H 'Authorization: <value>' https://{api_host}/vmc/api/orgs/{org}/sddcs/{sddc}/esxs