VMware, Inc.
123
Chapter 7 VMware vSphere Platform Operations
Example 7-6.
Register a vCenter Server and vShield Manager
Request:
POST http://vcloud.example.com/api/v1.0/admin/extension/action/registervimserver
Content-Type: application/vnd.vmware.admin.registerVimServexml
...
<vmext:RegisterVimServerParams xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1">
<vmext:VimServer name="VC-22">
<vmext:Username>Administrator</vmext:Username>
<vmext:Password>Pa55w0rd</vmext:Password>
<vmext:Url>https://10.100.121.123:443</vmext:Url>
<vmext:IsEnabled>false</vmext:IsEnabled>
</vmext:VimServer>
<vmext:ShieldManager name="VSM-VC-22">
<vmext:Username>Administrator</vmext:Username>
<vmext:Password>Pa55w0rd</vmext:Password>
<vmext:Url>https://10.100.121.66</vmext:Url>
</vmext:ShieldManager>
</vmext:RegisterVimServerParams>
Response:
200 OK
Content-Type: application/vnd.vmware.admin.registerVimServexml
...
<vmext:RegisterVimServerParams xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1"
type="application/vnd.vmware.admin.vmwprovxml">
<vmext:VimServer type="application/vnd.vmware.admin.vmwvirtuaxml" name="VC-22"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100">
<vmext:Username>Administrator</vmext:Username>
<vmext:Url>https://10.100.121.123:443</vmext:Url>
<vmext:IsEnabled>false</vmext:IsEnabled>
</vmext:VimServer>
<vmext:ShieldManager>
<vmext:AssociatedVimServer type="application/vnd.vmware.admin.vmwvirtuaxml"
name="VSM-VC-22"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100"/>
<vmext:Username>Administrator</vmext:Username>
<vmext:Url>https://10.100.121.66</vmext:Url>
</vmext:ShieldManager>
</vmext:RegisterVimServerParams>
Unregister a vCenter Server and vShield Manager
Unregistering
a
vCenter
server
makes
it
and
its
vShield
Manager
server
unavailable
for
use
in
the
Cloud
Director
environment.
A
system
administrator
can
unregister
a
vCenter
server
and
vShield
manager
by
making
a
POST
request
to
the
vCenter
server’s
action/unregister
URL.
Example 7
‐
7
unregisters
the
vCenter
server
referenced
by
http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100.
N
OTE
You
must
disable
the
vCenter
server
before
you
unregister
it.
Содержание 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...