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...
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 715upgradesthe
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 718doesthisbymakingaPOSTrequesttotheprovidervdcslink
returnedinExample 71.
ToretrievethevaluesyouneedfortheDataStoreRefs
andResourcePoolRefelementsintherequestbody,
startbylistingthevCenterServersregisteredtothisvCloud(see“ListvCenterServersRegisteredtoavCloud”
onpage 120),thenGEToneofthevCenterServerURLslistedintheresponse.TheresultisaVimServer
element,asshowninExample 716.

Table of Contents

Related product manuals