vCloud API Programming Guide
128
VMware, Inc.
Example 7-16.
VimServer Element
Request:
GET http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101
Response:
200 OK
Content-Type: application/vnd.vmware.admin.vmwvirtuaxml
...
<vmext:VimServer xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1" name="VC2"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101" ...>
<vcloud:Link rel="down" type="application/vnd.vmware.admin.vmsObjectRxml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/
vmsList"/>
<vcloud:Link rel="down" type="application/vnd.vmware.admin.resourcePxml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/
resourcePoolList"/>
<vcloud:Link rel="add" type="application/vnd.vmware.admin.importVmAsVApxml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/
importVmAsVApp"/>
<vcloud:Link rel="add" type="application/vnd.vmware.admin.importVmAsVAppTemplatxml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/
importVmAsVAppTemplate"/>
<vcloud:Link rel="edit" type="application/vnd.vmware.admin.vmwvirtuaxml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101"/>
<vcloud:Link rel="unregister"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/action/
unregister"/>
<vcloud:Link rel="reconnect"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/action/
forcevimserverreconnect"/>
<vmext:Username>administrator</vmext:Username>
<vmext:Url>https://10.147.20.155:443</vmext:Url>
<vmext:IsEnabled>true</vmext:IsEnabled>
<vmext:ShieldManagerIP>10.147.41.67</vmext:ShieldManagerIP>
<vmext:ShieldManagerUserName>admin</vmext:ShieldManagerUserName>
</vmext:VimServer>
The
resourcePoolList
from
a
VimServer
element
(see
Example 7
‐
17
)
includes
the
MoRef
and
VimObjectType
values
for
all
accessible
datastores
and
resource
pools
associated
with
that
vCenter
server.
Example 7-17.
Resource Pool List
Request:
GET http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/resourcePoolList
Response:
200 OK
Content-Type: application/vnd.vmware.admin.resourcepxml
...
<vmext:ResourcePoolList xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1" ... >
<vcloud:Link rel="up" type="application/vnd.vmware.admin.vmwvirtuaxml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101"/>
<vmext:ResourcePool name="gasare-vc2-rp">
<vmext:MoRef>resgroup-3582</vmext:MoRef>
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
<vmext:DataStoreRefs>
<vmext:VimObjectRef>
<vmext:MoRef>datastore-418</vmext:MoRef>
<vmext:VimObjectType>DATASTORE</vmext:VimObjectType>
</vmext:VimObjectRef>
<vmext:VimObjectRef>
Содержание 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...