vCloud API Programming Guide
126 VMware, Inc.
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... operation="Preparing Host (1)" ...>
...
</Task>
Unprepare a Host
UnprepareahosttomakeitunavailableforuseintheCloudDirectorenvironment.Asystemadministrator
canunprepareahostbymakingaPOSTrequesttothehost’saction/unprepareURL.Example 7‐12
unpreparesthehostreferencebyhttp://vcloud.example.com/api/v1.0/admin/extension/host/1.
Example 7-12. Unprepare a Host
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/host/1/action/unprepare
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... >
...
</Task>
Enable or Disable a Host
YoucandisableahosttopreventvAppsfromstartinguponthehost.Virtualmachinesthatarealready
runningonthehostarenotaffected.Toperformmaintenanceonahost,migrateallvAppsoffofthehostor
stopallvAppsandthendisablethehost.
Asystemadministrator
canenableordisableahostforuseinavCloudbymakingaPOSTrequesttothehost’s
action/enableoraction/disableURL.Example 7‐13disablesthehostreferencedby
http://vcloud.example.com/api/v1.0/admin/extension/host/1.
Example 7-13. Disable a Host
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/host/1/action/disable
Response:
204 No Content
Repair a Host
IftheCloudDirectoragentonahostcannotbecontacted,asystemadministratorcantrytorepairthehost
POSTrequesttothehost’saction/repairURL.Example 7‐14upgradesthehostagentforthehostreferenced
byhttp://vcloud.example.com/api/v1.0/admin/extension/host/1.