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
If
Cloud
Director
loses
it
connection
to
a
vCenter
Server,
or
if
you
change
the
connection
settings,
a
system
administrator
can
make
a
POST
request
to
the
server’s
action/forcevimserverreconnect
link
to
try
forcing
a
reconnection,
as
shown
in
Example 7
‐
8
.
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
A
system
administrator
can
use
the
hostReferences
link
returned
in
a
VMWExtension
response
to
request
a
list
of
all
ESX/ESXi
hosts
in
the
vCloud.
Example 7
‐
9
makes
such
a
request,
using
the
hostReferences
link
returned
in
Example 7
‐
1
.
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.vmwhostrefxml
...
<vmext:VMWHostReferences xmlns:vmext="http://www.vmware.com/vcloud/extension/v1" ... >
<vcloud:Link rel="up" type="application/vnd.vmware.admin.vmwExxml"
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
A
system
administrator
can
use
the
href
attribute
value
of
any
HostReference
in
a
VMWHostReferences
element
to
get
detailed
information
about
a
specific
host,
as
shown
in
Example 7
‐
10
.
Содержание VCLOUD API 1.0 - TECHNICAL NOTE
Страница 10: ...vCloud API Programming Guide 10 VMware Inc...
Страница 20: ...vCloud API Programming Guide 20 VMware Inc...
Страница 32: ...vCloud API Programming Guide 32 VMware Inc...
Страница 90: ...vCloud API Programming Guide 90 VMware Inc...
Страница 150: ...vCloud API Programming Guide 150 VMware Inc...
Страница 170: ...vCloud API Programming Guide 170 VMware Inc...
Страница 202: ...vCloud API Programming Guide 202 VMware Inc...
Страница 212: ...vCloud API Programming Guide 212 VMware Inc...