EasyManua.ls Logo

VMware VCLOUD API 1.0 - API

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 712
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 713disablesthehostreferencedby
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 714upgradesthehostagentforthehostreferenced
byhttp://vcloud.example.com/api/v1.0/admin/extension/host/1.

Table of Contents

Related product manuals