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 #77 background imageLoading...
Page #77 background image
VMware, Inc. 77
Chapter 5 Datacenter Operations
ReconfigurationlinksinthebodyofaVmcanappearintwoplaces:
IndividualLinkelementsintheovf:Itemelementsdefiningcpuandmemory.Theselinksappearinthe
ovf:Itemitself,andhavetype="application/vnd.vmware.vcloud.rasdItem+xml".
Linkstogroupsofrelatedovf:Itemelements(disks,networkcards,andmediadevices).Theselinks
appearattheendoftheovf:VirtualHardwareSection,andhave
type="application/vnd.vmware.vcloud.rasdItemsList+xml".
Retrieve or Modify the Network Connection of a Virtual Machine
Example 513retrievestheNetworkConnectionSectionconfigurationoftheVmshowninExample 512.
Example 514modifiesthesectionandusestheURLintheeditlinkfromthatsectiontoapplythechangesto
theVm.
Example 5-13. Retrieve the Network Connection of a Virtual Machine
Request:
GET http://vcloud.example.com/api/v1.0/vApp/vm-4/networkConnectionSection/
Response:
200 OK
Content-Type: application/vnd.vmware.vcloud.networkconnectionsection+xml
...
<NetworkConnectionSection ...
href="http://vcloud.example.com/api/v1.0/vApp/vm-4/networkConnectionSection/" ...>
<ovf:Info>Specifies the available VM network connections</ovf:Info>
<PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
<NetworkConnection network="vAppNetwork">
<NetworkConnectionIndex>0</NetworkConnectionIndex>
<IpAddress>10.147.122.134</IpAddress>
<IsConnected>false</IsConnected>
<MACAddress>00:50:56:01:01:49</MACAddress>
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
</NetworkConnection>
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml"
href="http://vcloud.example.com/api/v1.0/vApp/vm-4
networkConnectionSection/"/>
</NetworkConnectionSection>
ThemodifiedNetworkConnectionSectionintherequestbodychangesthevalueintheIpAddresselement.
Example 5-14. Modify the Network Connection of a Virtual Machine
Request:
PUT "http://vcloud.example.com/api/v1.0/vApp/vm-4/networkConnectionSection/
Content-type: application/vnd.vmware.vcloud.networkConnectionSection+xml
...
<NetworkConnectionSection ...
href="http://vcloud.example.com/api/v1.0/vApp/vm-4/networkConnectionSection/" ...>
<ovf:Info>Specifies the available VM network connections</ovf:Info>
<PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
<NetworkConnection network="vAppNetwork">
<NetworkConnectionIndex>0</NetworkConnectionIndex>
<IpAddress>10.147.115.1</IpAddress>
<IsConnected>false</IsConnected>
<MACAddress>00:50:56:01:01:49</MACAddress>
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
</NetworkConnection>
</NetworkConnectionSection>

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