VMware, Inc. 127
Chapter 7 VMware vSphere Platform Operations
Example 7-14. Repair a Host
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/host/1/action/repair
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... >
...
</Task>
Upgrade a Host Agent
NewreleasesofvCenterCloudDirectormayincludeanewversionofthehostagent.Asystemadministrator
canupgradethehostagentonahosttotheversionincludedinthecurrentinstallationofCloudDirectorby
makingaPOSTrequesttothehost’saction/upgradeURL.Example 7‐15upgradesthe
hostagentforthehost
referencedbyhttp://vcloud.example.com/api/v1.0/admin/extension/host/1.
Example 7-15. Upgrade a Host Agent
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/host/1/action/upgrade
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... operation="Upgrading Host (1)" ...>
...
</Task>
Create a Provider vDC
AnVMWProviderVdcisanextendedrepresentationofaProviderVdcobject.Itincludeselementsthatallow
asystemadministratortospecifyresourcessuchasdatastoresandresourcepoolsprovidedbyavCenter
instanceregisteredtothevCloud.OnlyasystemadministratorcanviewormodifyaVMWProviderVdc.An
organizationadministratoror
otherprivilegedusercanexamineallotherpropertiesofaprovidervDC(see
“ExaminetheContentsofaProvidervDC”onpage 103).
AfterasystemadministratorcreatesaVMWProviderVdc,itbecomesvisibleasamemberofthe
ProviderVdcReferenceselementofaVCloud.See“GetanAdministrativeViewofaCloud”
onpage 93.
Asystemadministratorcanusetherel="add"linkforprovidervdcsinaVMWExtensionbodytoadda
providervDCtoavCloud.Example 7‐18doesthisbymakingaPOSTrequesttotheprovidervdcslink
returnedinExample 7‐1.
ToretrievethevaluesyouneedfortheDataStoreRefs
andResourcePoolRefelementsintherequestbody,
startbylistingthevCenterServersregisteredtothisvCloud(see“ListvCenterServersRegisteredtoavCloud”
onpage 120),thenGEToneofthevCenterServerURLslistedintheresponse.TheresultisaVimServer
element,asshowninExample 7‐16.