EasyManuals Logo

VMware VCLOUD API 1.0 - API User Manual

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
Page #138 background imageLoading...
Page #138 background image
vCloud API Programming Guide
138 VMware, Inc.
Response:
200 OK
...
<vmext:VMWNetworkPool xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1" xsi:type="vmext:VlanPoolType"
name="NewVlanPool">
...
<vmext:VMWNetworkPool>
Theresponse,mostofwhichisnotshownhere,echoestherequest.
Remove a Network Pool
Toremoveanetworkpool,asystemadministratorcanmakeaDELETErequestto itshrefattributevalue.The
responsecontainsaTaskthattracksthedeleteoperation.
Example 7-29. Remove a Network Pool
Request:
DELETE http://vcloud.example.com/api/v1.0/admin/extension/networkPool/41
Response:
204 No Content
Import a Virtual Machine from vCenter
AsystemadministratorcanimportvirtualmachinesfromanyvCenterregisteredtoavCloud.Thevirtual
machinescanbeimportedtoanyvDCinthevCloud,andcanbeimportedinvApporvApptemplateform.
Discover the Virtual Machines in a vCenter
AGETrequesttothevmsListURLinaVimServerresponsebodyreturnsalistofvirtualmachinesregistered
tothatvCenterserver.Example 730retrievesthelistofvirtualmachinesfromthevmsListURLshownin
Example 73onpage 121.
Example 7-30. Discover the Virtual Machines in a vCenter
Request:
GET http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100/vmsList
Response:
200 OK
Content-Type: application/vnd.vmware.admin.vmsobjectrefslist+xml
...
<vmext:VmObjectRefsList xmlns:vmext="http://www.vmware.com/vcloud/extension/v1"
xmlns:vcloud="http://www.vmware.com/vcloud/v1" ...>
<vmext:VmObjectRef name="Win2K8">
<vcloud:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
name="vCenter-PA-001"
href="http://vcloud.example.com/api/v1.0/admin/extension/vimServer/100"/>
<vcloud:MoRef>vm-642</vcloud:MoRef>
<vcloud:VimObjectType>VIRTUAL_MACHINE</vcloud:VimObjectType>
</vmext:VmObjectRef>
<vmext:VmObjectRef ...>
...
</vmext:VmObjectRef>
</vmext:VmObjectRefsList>

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the VMware VCLOUD API 1.0 - API and is the answer not in the manual?

VMware VCLOUD API 1.0 - API Specifications

General IconGeneral
BrandVMware
ModelVCLOUD API 1.0 - API
CategorySoftware
LanguageEnglish

Related product manuals