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...
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.vmwvirtualcenter+xml
...
<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.vmsObjectRefsList+xml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/
vmsList"/>
<vcloud:Link rel="down" type="application/vnd.vmware.admin.resourcePoolList+xml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/
resourcePoolList"/>
<vcloud:Link rel="add" type="application/vnd.vmware.admin.importVmAsVAppParams+xml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/
importVmAsVApp"/>
<vcloud:Link rel="add" type="application/vnd.vmware.admin.importVmAsVAppTemplateParams+xml"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/101/
importVmAsVAppTemplate"/>
<vcloud:Link rel="edit" type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
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>
TheresourcePoolListfromaVimServerelement(seeExample 717)includestheMoRefand
VimObjectTypevaluesforallaccessibledatastoresandresourcepoolsassociatedwiththatvCenterserver.
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.resourcepoollist+xml
...
<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.vmwvirtualcenter+xml"
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>

Table of Contents

Related product manuals