EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Force Reconnection to a Vcenter Server; List Esx;Esxi Hosts in a Vcloud; Get Information about a Host

VMware VCLOUD API 1.0 - API
212 pages
Print Icon
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
124 VMware, Inc.
Example 7-7. Unregister a vCenter Server and vShield Manager
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100/action/unregister
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... >
...
</Task>
Force Reconnection to a vCenter Server
IfCloudDirectorlosesitconnectiontoavCenterServer,orifyouchangetheconnectionsettings,asystem
administratorcanmakeaPOSTrequesttotheserversaction/forcevimserverreconnectlinktotryforcing
areconnection,asshowninExample 78.
Example 7-8. Force Reconnection to a vCenter Server
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100/action/
forcevimserverreconnect
Response:
204 No Content
List ESX/ESXi Hosts in a vCloud
AsystemadministratorcanusethehostReferenceslinkreturnedinaVMWExtensionresponsetorequesta
listofallESX/ESXihostsinthevCloud.Example 79makessucharequest,usingthehostReferenceslink
returnedinExample 71.
Example 7-9. List ESX/ESXi Hosts in a vCloud
Request:
GET http://vcloud.example.com/api/v1.0/admin/extension/hostReferences
Response:
200 OK
Content-Type: application/vnd.vmware.admin.vmwhostreferences+xml
...
<vmext:VMWHostReferences xmlns:vmext="http://www.vmware.com/vcloud/extension/v1" ... >
<vcloud:Link rel="up" type="application/vnd.vmware.admin.vmwExtension+xml"
href="http://vcloud.example.com/api/v1.0/admin/extension"/>
<vmext:HostReference type="application/vnd.vmware.admin.host+xml" name="10.115.121.12"
href="http://vcloud.example.com/api/v1.0/admin/extension/host/180"/>
<vmext:HostReference ... >
<vmext:HostReference ... >
</vmext:VMWHostReferences>
Get Information About a Host
AsystemadministratorcanusethehrefattributevalueofanyHostReferenceinaVMWHostReferences
elementtogetdetailedinformationaboutaspecifichost,asshowninExample 710.

Table of Contents

Related product manuals