mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	[vcloud|compute] improve models add tests
Improve the models to work with the current api version. add tests that use fake-data, that was captured from a real vCloud. Also removed a couple of dead code. Tests have been added for everything that changed or have been added. All the existing but untouched parts have not been tested.
This commit is contained in:
		
							parent
							
								
									3499179991
								
							
						
					
					
						commit
						750fb59f25
					
				
					 31 changed files with 1401 additions and 197 deletions
				
			
		
							
								
								
									
										110
									
								
								tests/vcloud/data/api_+_v1.0_+_admin_+_network_+_2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										110
									
								
								tests/vcloud/data/api_+_v1.0_+_admin_+_network_+_2
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,110 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<ExternalNetwork xmlns="http://www.vmware.com/vcloud/v1" name="ParentNetwork1" type="application/vnd.vmware.admin.network+xml" href="https://vcloud.example.com/api/v1.0/admin/network/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1 http://vcloud.example.com/api/v1.0/schema/master.xsd">
 | 
			
		||||
    <Description>Internet Connection</Description>
 | 
			
		||||
    <Configuration>
 | 
			
		||||
        <IpScope>
 | 
			
		||||
            <IsInherited>false</IsInherited>
 | 
			
		||||
            <Gateway>172.0.0.1</Gateway>
 | 
			
		||||
            <Netmask>255.255.255.0</Netmask>
 | 
			
		||||
            <Dns1>172.0.0.2</Dns1>
 | 
			
		||||
            <Dns2>172.0.0.190</Dns2>
 | 
			
		||||
            <IpRanges>
 | 
			
		||||
                <IpRange>
 | 
			
		||||
                    <StartAddress>172.0.0.142</StartAddress>
 | 
			
		||||
                    <EndAddress>172.0.0.156</EndAddress>
 | 
			
		||||
                </IpRange>
 | 
			
		||||
                <IpRange>
 | 
			
		||||
                    <StartAddress>172.0.0.160</StartAddress>
 | 
			
		||||
                    <EndAddress>172.0.0.184</EndAddress>
 | 
			
		||||
                </IpRange>
 | 
			
		||||
                <IpRange>
 | 
			
		||||
                    <StartAddress>172.0.0.195</StartAddress>
 | 
			
		||||
                    <EndAddress>172.0.0.235</EndAddress>
 | 
			
		||||
                </IpRange>
 | 
			
		||||
            </IpRanges>
 | 
			
		||||
            <AllocatedIpAddresses>
 | 
			
		||||
                <IpAddress>172.0.0.153</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.147</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.221</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.226</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.151</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.161</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.164</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.163</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.218</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.173</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.172</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.175</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.178</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.197</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.180</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.201</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.156</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.202</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.183</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.149</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.214</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.171</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.162</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.198</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.224</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.195</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.196</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.150</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.169</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.170</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.176</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.200</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.179</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.205</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.213</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.210</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.215</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.219</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.208</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.216</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.217</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.204</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.232</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.154</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.235</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.146</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.209</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.211</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.199</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.155</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.142</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.160</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.212</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.177</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.167</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.166</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.168</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.165</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.181</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.184</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.143</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.230</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.206</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.233</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.222</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.225</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.220</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.227</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.148</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.228</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.229</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.231</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.152</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.145</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.174</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.182</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.203</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.207</IpAddress>
 | 
			
		||||
                <IpAddress>172.0.0.144</IpAddress>
 | 
			
		||||
            </AllocatedIpAddresses>
 | 
			
		||||
        </IpScope>
 | 
			
		||||
        <FenceMode>isolated</FenceMode>
 | 
			
		||||
    </Configuration>
 | 
			
		||||
    <ProviderInfo>NETWORK:dvportgroup-230 on com.vmware.vcloud.entity.vimserver:35935555</ProviderInfo>
 | 
			
		||||
</ExternalNetwork>
 | 
			
		||||
							
								
								
									
										5
									
								
								tests/vcloud/data/api_+_v1.0_+_login
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/vcloud/data/api_+_v1.0_+_login
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<OrgList xmlns="http://www.vmware.com/vcloud/v1" type="application/vnd.vmware.vcloud.orgList+xml" href="https://vcloud.example.com/api/v1.0/org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1 http://vcloud.example.com/api/v1.0/schema/master.xsd">
 | 
			
		||||
    <Org type="application/vnd.vmware.vcloud.org+xml" name="Org1" href="https://vcloud.example.com/api/v1.0/org/1"/>
 | 
			
		||||
    <Org type="application/vnd.vmware.vcloud.org+xml" name="Org2" href="https://vcloud.example.com/api/v1.0/org/2"/>
 | 
			
		||||
</OrgList>
 | 
			
		||||
							
								
								
									
										44
									
								
								tests/vcloud/data/api_+_v1.0_+_network_+_1
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								tests/vcloud/data/api_+_v1.0_+_network_+_1
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,44 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<OrgNetwork xmlns="http://www.vmware.com/vcloud/v1" name="Network1" type="application/vnd.vmware.vcloud.network+xml" href="https://vcloud.example.com/api/v1.0/network/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1 http://vcloud.example.com/api/v1.0/schema/master.xsd">
 | 
			
		||||
    <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" href="https://vcloud.example.com/api/v1.0/org/1"/>
 | 
			
		||||
    <Description>Some fancy Network</Description>
 | 
			
		||||
    <Configuration>
 | 
			
		||||
        <IpScope>
 | 
			
		||||
            <IsInherited>false</IsInherited>
 | 
			
		||||
            <Gateway>192.168.0.1</Gateway>
 | 
			
		||||
            <Netmask>255.255.255.0</Netmask>
 | 
			
		||||
            <Dns1>172.0.0.2</Dns1>
 | 
			
		||||
            <Dns2>172.0.0.190</Dns2>
 | 
			
		||||
            <IpRanges>
 | 
			
		||||
                <IpRange>
 | 
			
		||||
                    <StartAddress>192.168.0.101</StartAddress>
 | 
			
		||||
                    <EndAddress>192.168.0.150</EndAddress>
 | 
			
		||||
                </IpRange>
 | 
			
		||||
            </IpRanges>
 | 
			
		||||
            <AllocatedIpAddresses>
 | 
			
		||||
                <IpAddress>192.168.0.1</IpAddress>
 | 
			
		||||
            </AllocatedIpAddresses>
 | 
			
		||||
        </IpScope>
 | 
			
		||||
        <ParentNetwork type="application/vnd.vmware.admin.network+xml" name="ParentNetwork1" href="https://vcloud.example.com/api/v1.0/admin/network/2"/>
 | 
			
		||||
        <FenceMode>natRouted</FenceMode>
 | 
			
		||||
        <Features>
 | 
			
		||||
            <DhcpService>
 | 
			
		||||
                <IsEnabled>false</IsEnabled>
 | 
			
		||||
                <DefaultLeaseTime>3600</DefaultLeaseTime>
 | 
			
		||||
                <MaxLeaseTime>7200</MaxLeaseTime>
 | 
			
		||||
                <IpRange>
 | 
			
		||||
                    <StartAddress>192.168.0.151</StartAddress>
 | 
			
		||||
                    <EndAddress>192.168.0.254</EndAddress>
 | 
			
		||||
                </IpRange>
 | 
			
		||||
            </DhcpService>
 | 
			
		||||
            <FirewallService>
 | 
			
		||||
                <IsEnabled>true</IsEnabled>
 | 
			
		||||
            </FirewallService>
 | 
			
		||||
            <NatService>
 | 
			
		||||
                <IsEnabled>false</IsEnabled>
 | 
			
		||||
                <NatType>portForwarding</NatType>
 | 
			
		||||
                <Policy>allowTraffic</Policy>
 | 
			
		||||
            </NatService>
 | 
			
		||||
        </Features>
 | 
			
		||||
    </Configuration>
 | 
			
		||||
</OrgNetwork>
 | 
			
		||||
							
								
								
									
										31
									
								
								tests/vcloud/data/api_+_v1.0_+_network_+_2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								tests/vcloud/data/api_+_v1.0_+_network_+_2
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,31 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<OrgNetwork xmlns="http://www.vmware.com/vcloud/v1" name="Network2" type="application/vnd.vmware.vcloud.network+xml" href="https://vcloud.example.com/api/v1.0/network/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1 http://vcloud.example.com/api/v1.0/schema/master.xsd">
 | 
			
		||||
    <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" href="https://vcloud.example.com/api/v1.0/org/1"/>
 | 
			
		||||
    <Description>Description</Description>
 | 
			
		||||
    <Configuration>
 | 
			
		||||
        <IpScope>
 | 
			
		||||
            <IsInherited>false</IsInherited>
 | 
			
		||||
            <Gateway>192.168.251.254</Gateway>
 | 
			
		||||
            <Netmask>255.255.255.0</Netmask>
 | 
			
		||||
            <Dns1>192.168.251.254</Dns1>
 | 
			
		||||
            <IpRanges>
 | 
			
		||||
                <IpRange>
 | 
			
		||||
                    <StartAddress>192.168.251.101</StartAddress>
 | 
			
		||||
                    <EndAddress>192.168.251.200</EndAddress>
 | 
			
		||||
                </IpRange>
 | 
			
		||||
            </IpRanges>
 | 
			
		||||
        </IpScope>
 | 
			
		||||
        <FenceMode>isolated</FenceMode>
 | 
			
		||||
        <Features>
 | 
			
		||||
            <DhcpService>
 | 
			
		||||
                <IsEnabled>false</IsEnabled>
 | 
			
		||||
                <DefaultLeaseTime>3600</DefaultLeaseTime>
 | 
			
		||||
                <MaxLeaseTime>7200</MaxLeaseTime>
 | 
			
		||||
                <IpRange>
 | 
			
		||||
                    <StartAddress>192.168.251.1</StartAddress>
 | 
			
		||||
                    <EndAddress>192.168.251.100</EndAddress>
 | 
			
		||||
                </IpRange>
 | 
			
		||||
            </DhcpService>
 | 
			
		||||
        </Features>
 | 
			
		||||
    </Configuration>
 | 
			
		||||
</OrgNetwork>
 | 
			
		||||
							
								
								
									
										17
									
								
								tests/vcloud/data/api_+_v1.0_+_org_+_1
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tests/vcloud/data/api_+_v1.0_+_org_+_1
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<Org xmlns="http://www.vmware.com/vcloud/v1" name="Org1" type="application/vnd.vmware.vcloud.org+xml" href="https://vcloud.example.com/api/v1.0/org/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1 http://vcloud.example.com/api/v1.0/schema/master.xsd">
 | 
			
		||||
    <Link rel="down" type="application/vnd.vmware.vcloud.vdc+xml" name="vDC1" href="https://vcloud.example.com/api/v1.0/vdc/1"/>
 | 
			
		||||
    <Link rel="down" type="application/vnd.vmware.vcloud.tasksList+xml" href="https://vcloud.example.com/api/v1.0/tasksList/1"/>
 | 
			
		||||
    <Link rel="down" type="application/vnd.vmware.vcloud.catalog+xml" name="Catalog1" href="https://vcloud.example.com/api/v1.0/catalog/1"/>
 | 
			
		||||
    <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/org/1/catalog/1/controlAccess/"/>
 | 
			
		||||
    <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/org/1/catalog/1/action/controlAccess"/>
 | 
			
		||||
    <Link rel="down" type="application/vnd.vmware.vcloud.catalog+xml" name="Catalog2" href="https://vcloud.example.com/api/v1.0/catalog/2"/>
 | 
			
		||||
    <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/org/1/catalog/2/controlAccess/"/>
 | 
			
		||||
    <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/org/1/catalog/2/action/controlAccess"/>
 | 
			
		||||
    <Link rel="down" type="application/vnd.vmware.vcloud.network+xml" name="Network1" href="https://vcloud.example.com/api/v1.0/network/1"/>
 | 
			
		||||
    <Link rel="down" type="application/vnd.vmware.vcloud.network+xml" name="Network2" href="https://vcloud.example.com/api/v1.0/network/2"/>
 | 
			
		||||
    <Description>Some fancy
 | 
			
		||||
 | 
			
		||||
Description</Description>
 | 
			
		||||
    <FullName>My Full Name</FullName>
 | 
			
		||||
</Org>
 | 
			
		||||
							
								
								
									
										369
									
								
								tests/vcloud/data/api_+_v1.0_+_vApp_+_vapp-1
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										369
									
								
								tests/vcloud/data/api_+_v1.0_+_vApp_+_vapp-1
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,369 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<VApp xmlns="http://www.vmware.com/vcloud/v1" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1" deployed="true" status="8" name="vApp1" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1 http://vcloud.example.com/api/v1.0/schema/vmwextensions.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd http://www.vmware.com/vcloud/v1 http://vcloud.example.com/api/v1.0/schema/master.xsd">
 | 
			
		||||
    <Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/power/action/powerOn"/>
 | 
			
		||||
    <Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/power/action/powerOff"/>
 | 
			
		||||
    <Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/action/deploy"/>
 | 
			
		||||
    <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/action/undeploy"/>
 | 
			
		||||
    <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/controlAccess/"/>
 | 
			
		||||
    <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/action/controlAccess"/>
 | 
			
		||||
    <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="https://vcloud.example.com/api/v1.0/vdc/652994200"/>
 | 
			
		||||
    <Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
 | 
			
		||||
    <Description>Some Description of a vApp</Description>
 | 
			
		||||
    <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/leaseSettingsSection/" ovf:required="false">
 | 
			
		||||
        <ovf:Info>Lease settings section</ovf:Info>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/leaseSettingsSection/"/>
 | 
			
		||||
        <DeploymentLeaseInSeconds>0</DeploymentLeaseInSeconds>
 | 
			
		||||
        <StorageLeaseInSeconds>0</StorageLeaseInSeconds>
 | 
			
		||||
    </LeaseSettingsSection>
 | 
			
		||||
    <ovf:StartupSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/startupSection/" vcloud:type="application/vnd.vmware.vcloud.startupSection+xml">
 | 
			
		||||
        <ovf:Info>VApp startup section</ovf:Info>
 | 
			
		||||
        <ovf:Item ovf:stopDelay="0" ovf:stopAction="guestShutdown" ovf:startDelay="30" ovf:startAction="powerOn" ovf:order="2" ovf:id="vm1"/>
 | 
			
		||||
        <ovf:Item ovf:stopDelay="30" ovf:stopAction="guestShutdown" ovf:startDelay="0" ovf:startAction="powerOn" ovf:order="1" ovf:id="vm2"/>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.startupSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/startupSection/"/>
 | 
			
		||||
    </ovf:StartupSection>
 | 
			
		||||
    <ovf:NetworkSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/networkSection/" vcloud:type="application/vnd.vmware.vcloud.networkSection+xml">
 | 
			
		||||
        <ovf:Info>The list of logical networks</ovf:Info>
 | 
			
		||||
        <ovf:Network ovf:name="Network1">
 | 
			
		||||
            <ovf:Description/>
 | 
			
		||||
        </ovf:Network>
 | 
			
		||||
    </ovf:NetworkSection>
 | 
			
		||||
    <NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/networkConfigSection/" ovf:required="false">
 | 
			
		||||
        <ovf:Info>The configuration parameters for logical networks</ovf:Info>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/networkConfigSection/"/>
 | 
			
		||||
        <NetworkConfig networkName="Network1">
 | 
			
		||||
            <Description>Some Network Description</Description>
 | 
			
		||||
            <Configuration>
 | 
			
		||||
                <IpScope>
 | 
			
		||||
                    <IsInherited>false</IsInherited>
 | 
			
		||||
                    <Gateway>192.168.2.1</Gateway>
 | 
			
		||||
                    <Netmask>255.255.255.0</Netmask>
 | 
			
		||||
                    <Dns1>192.168.2.1</Dns1>
 | 
			
		||||
                    <IpRanges>
 | 
			
		||||
                        <IpRange>
 | 
			
		||||
                            <StartAddress>192.168.2.101</StartAddress>
 | 
			
		||||
                            <EndAddress>192.168.2.150</EndAddress>
 | 
			
		||||
                        </IpRange>
 | 
			
		||||
                    </IpRanges>
 | 
			
		||||
                    <AllocatedIpAddresses>
 | 
			
		||||
                        <IpAddress>192.168.2.101</IpAddress>
 | 
			
		||||
                        <IpAddress>192.168.2.1</IpAddress>
 | 
			
		||||
                        <IpAddress>192.168.2.102</IpAddress>
 | 
			
		||||
                    </AllocatedIpAddresses>
 | 
			
		||||
                </IpScope>
 | 
			
		||||
                <ParentNetwork type="application/vnd.vmware.vcloud.network+xml" name="Network1" href="https://vcloud.example.com/api/v1.0/network/1"/>
 | 
			
		||||
                <FenceMode>natRouted</FenceMode>
 | 
			
		||||
                <Features>
 | 
			
		||||
                    <DhcpService>
 | 
			
		||||
                        <IsEnabled>false</IsEnabled>
 | 
			
		||||
                        <DefaultLeaseTime>7200</DefaultLeaseTime>
 | 
			
		||||
                        <MaxLeaseTime>7200</MaxLeaseTime>
 | 
			
		||||
                        <IpRange/>
 | 
			
		||||
                    </DhcpService>
 | 
			
		||||
                    <FirewallService>
 | 
			
		||||
                        <IsEnabled>true</IsEnabled>
 | 
			
		||||
                    </FirewallService>
 | 
			
		||||
                    <NatService>
 | 
			
		||||
                        <IsEnabled>true</IsEnabled>
 | 
			
		||||
                        <NatType>ipTranslation</NatType>
 | 
			
		||||
                        <Policy>allowTraffic</Policy>
 | 
			
		||||
                        <NatRule>
 | 
			
		||||
                            <OneToOneVmRule>
 | 
			
		||||
                                <MappingMode>automatic</MappingMode>
 | 
			
		||||
                                <ExternalIP>192.168.1.102</ExternalIP>
 | 
			
		||||
                                <VAppScopedVmId>vm1</VAppScopedVmId>
 | 
			
		||||
                                <VmNicId>0</VmNicId>
 | 
			
		||||
                            </OneToOneVmRule>
 | 
			
		||||
                        </NatRule>
 | 
			
		||||
                        <NatRule>
 | 
			
		||||
                            <OneToOneVmRule>
 | 
			
		||||
                                <MappingMode>automatic</MappingMode>
 | 
			
		||||
                                <ExternalIP>192.168.1.103</ExternalIP>
 | 
			
		||||
                                <VAppScopedVmId>vm2</VAppScopedVmId>
 | 
			
		||||
                                <VmNicId>0</VmNicId>
 | 
			
		||||
                            </OneToOneVmRule>
 | 
			
		||||
                        </NatRule>
 | 
			
		||||
                    </NatService>
 | 
			
		||||
                </Features>
 | 
			
		||||
            </Configuration>
 | 
			
		||||
            <IsDeployed>true</IsDeployed>
 | 
			
		||||
        </NetworkConfig>
 | 
			
		||||
    </NetworkConfigSection>
 | 
			
		||||
    <Children>
 | 
			
		||||
        <Vm deployed="true" status="8" name="vm2" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2">
 | 
			
		||||
            <VCloudExtension required="false">
 | 
			
		||||
                <vmext:VimObjectRef>
 | 
			
		||||
                    <vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="vm2.example.com" href="https://vcloud.example.com/api/v1.0/admin/extension/vimServer/2"/>
 | 
			
		||||
                    <vmext:MoRef>vm-595</vmext:MoRef>
 | 
			
		||||
                    <vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
 | 
			
		||||
                </vmext:VimObjectRef>
 | 
			
		||||
            </VCloudExtension>
 | 
			
		||||
            <Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOn"/>
 | 
			
		||||
            <Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOff"/>
 | 
			
		||||
            <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/action/undeploy"/>
 | 
			
		||||
            <Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
 | 
			
		||||
            <Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2"/>
 | 
			
		||||
            <Link rel="screen:thumbnail" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/screen"/>
 | 
			
		||||
            <Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/media/action/insertMedia"/>
 | 
			
		||||
            <Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/media/action/ejectMedia"/>
 | 
			
		||||
            <Description/>
 | 
			
		||||
            <ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
 | 
			
		||||
                <ovf:Info>Virtual hardware requirements</ovf:Info>
 | 
			
		||||
                <ovf:System>
 | 
			
		||||
                    <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
 | 
			
		||||
                    <vssd:InstanceID>0</vssd:InstanceID>
 | 
			
		||||
                    <vssd:VirtualSystemIdentifier>vm2</vssd:VirtualSystemIdentifier>
 | 
			
		||||
                    <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
 | 
			
		||||
                </ovf:System>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:Address>00:50:56:01:02:03</rasd:Address>
 | 
			
		||||
                    <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
                    <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
 | 
			
		||||
                    <rasd:Connection vcloud:ipAddress="192.168.2.102" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">Network1</rasd:Connection>
 | 
			
		||||
                    <rasd:Description>PCNet32 ethernet adapter</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>Network adapter 0</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>1</rasd:InstanceID>
 | 
			
		||||
                    <rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
 | 
			
		||||
                    <rasd:ResourceType>10</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:Address>0</rasd:Address>
 | 
			
		||||
                    <rasd:Description>SCSI Controller</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>2</rasd:InstanceID>
 | 
			
		||||
                    <rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
 | 
			
		||||
                    <rasd:ResourceType>6</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
                    <rasd:Description>Hard disk</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>Hard disk 1</rasd:ElementName>
 | 
			
		||||
                    <rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
 | 
			
		||||
                    <rasd:InstanceID>2000</rasd:InstanceID>
 | 
			
		||||
                    <rasd:Parent>2</rasd:Parent>
 | 
			
		||||
                    <rasd:ResourceType>17</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:Address>0</rasd:Address>
 | 
			
		||||
                    <rasd:Description>IDE Controller</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>IDE Controller 0</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>3</rasd:InstanceID>
 | 
			
		||||
                    <rasd:ResourceType>5</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
                    <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
 | 
			
		||||
                    <rasd:Description>CD/DVD Drive</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
 | 
			
		||||
                    <rasd:HostResource/>
 | 
			
		||||
                    <rasd:InstanceID>3002</rasd:InstanceID>
 | 
			
		||||
                    <rasd:Parent>3</rasd:Parent>
 | 
			
		||||
                    <rasd:ResourceType>15</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
 | 
			
		||||
                    <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
 | 
			
		||||
                    <rasd:Description>Number of Virtual CPUs</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>4</rasd:InstanceID>
 | 
			
		||||
                    <rasd:Reservation>0</rasd:Reservation>
 | 
			
		||||
                    <rasd:ResourceType>3</rasd:ResourceType>
 | 
			
		||||
                    <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
 | 
			
		||||
                    <rasd:Weight>0</rasd:Weight>
 | 
			
		||||
                    <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
 | 
			
		||||
                    <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
 | 
			
		||||
                    <rasd:Description>Memory Size</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>512 MB of memory</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>5</rasd:InstanceID>
 | 
			
		||||
                    <rasd:Reservation>0</rasd:Reservation>
 | 
			
		||||
                    <rasd:ResourceType>4</rasd:ResourceType>
 | 
			
		||||
                    <rasd:VirtualQuantity>512</rasd:VirtualQuantity>
 | 
			
		||||
                    <rasd:Weight>0</rasd:Weight>
 | 
			
		||||
                    <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/disks"/>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/disks"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/media"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/networkCards"/>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/networkCards"/>
 | 
			
		||||
            </ovf:VirtualHardwareSection>
 | 
			
		||||
            <ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="80" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="rhel5_64Guest">
 | 
			
		||||
                <ovf:Info>Specifies the operating system installed</ovf:Info>
 | 
			
		||||
                <ovf:Description>Red Hat Enterprise Linux 5 (64-bit)</ovf:Description>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/operatingSystemSection/"/>
 | 
			
		||||
            </ovf:OperatingSystemSection>
 | 
			
		||||
            <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/networkConnectionSection/" ovf:required="false">
 | 
			
		||||
                <ovf:Info>Specifies the available VM network connections</ovf:Info>
 | 
			
		||||
                <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
 | 
			
		||||
                <NetworkConnection network="Network1">
 | 
			
		||||
                    <NetworkConnectionIndex>0</NetworkConnectionIndex>
 | 
			
		||||
                    <IpAddress>192.168.2.102</IpAddress>
 | 
			
		||||
                    <ExternalIpAddress>192.168.1.103</ExternalIpAddress>
 | 
			
		||||
                    <IsConnected>true</IsConnected>
 | 
			
		||||
                    <MACAddress>00:50:56:01:00:03</MACAddress>
 | 
			
		||||
                    <IpAddressAllocationMode>POOL</IpAddressAllocationMode>
 | 
			
		||||
                </NetworkConnection>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/networkConnectionSection/"/>
 | 
			
		||||
            </NetworkConnectionSection>
 | 
			
		||||
            <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/guestCustomizationSection/" ovf:required="false">
 | 
			
		||||
                <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
 | 
			
		||||
                <Enabled>true</Enabled>
 | 
			
		||||
                <ChangeSid>false</ChangeSid>
 | 
			
		||||
                <VirtualMachineId>2</VirtualMachineId>
 | 
			
		||||
                <JoinDomainEnabled>false</JoinDomainEnabled>
 | 
			
		||||
                <UseOrgSettings>false</UseOrgSettings>
 | 
			
		||||
                <AdminPasswordEnabled>true</AdminPasswordEnabled>
 | 
			
		||||
                <AdminPasswordAuto>true</AdminPasswordAuto>
 | 
			
		||||
                <AdminPassword>password</AdminPassword>
 | 
			
		||||
                <ResetPasswordRequired>false</ResetPasswordRequired>
 | 
			
		||||
                <CustomizationScript/>
 | 
			
		||||
                <ComputerName>vm2</ComputerName>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/guestCustomizationSection/"/>
 | 
			
		||||
            </GuestCustomizationSection>
 | 
			
		||||
            <VAppScopedLocalId>vmware_RHEL5-U5-64-small_v02</VAppScopedLocalId>
 | 
			
		||||
        </Vm>
 | 
			
		||||
        <Vm deployed="true" status="8" name="vm1" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1">
 | 
			
		||||
            <VCloudExtension required="false">
 | 
			
		||||
                <vmext:VimObjectRef>
 | 
			
		||||
                    <vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="vm1.example.com" href="https://vcloud.example.com/api/v1.0/admin/extension/vimServer/1"/>
 | 
			
		||||
                    <vmext:MoRef>vm-594</vmext:MoRef>
 | 
			
		||||
                    <vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
 | 
			
		||||
                </vmext:VimObjectRef>
 | 
			
		||||
            </VCloudExtension>
 | 
			
		||||
            <Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/power/action/powerOn"/>
 | 
			
		||||
            <Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/power/action/powerOff"/>
 | 
			
		||||
            <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/action/undeploy"/>
 | 
			
		||||
            <Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
 | 
			
		||||
            <Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1"/>
 | 
			
		||||
            <Link rel="screen:thumbnail" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/screen"/>
 | 
			
		||||
            <Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/media/action/insertMedia"/>
 | 
			
		||||
            <Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/media/action/ejectMedia"/>
 | 
			
		||||
            <Description/>
 | 
			
		||||
            <ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
 | 
			
		||||
                <ovf:Info>Virtual hardware requirements</ovf:Info>
 | 
			
		||||
                <ovf:System>
 | 
			
		||||
                    <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
 | 
			
		||||
                    <vssd:InstanceID>0</vssd:InstanceID>
 | 
			
		||||
                    <vssd:VirtualSystemIdentifier>vm1</vssd:VirtualSystemIdentifier>
 | 
			
		||||
                    <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
 | 
			
		||||
                </ovf:System>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:Address>00:50:56:01:02:04</rasd:Address>
 | 
			
		||||
                    <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
                    <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
 | 
			
		||||
                    <rasd:Connection vcloud:ipAddress="192.168.2.101" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">Network1</rasd:Connection>
 | 
			
		||||
                    <rasd:Description>PCNet32 ethernet adapter</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>Network adapter 0</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>1</rasd:InstanceID>
 | 
			
		||||
                    <rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
 | 
			
		||||
                    <rasd:ResourceType>10</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:Address>0</rasd:Address>
 | 
			
		||||
                    <rasd:Description>SCSI Controller</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>2</rasd:InstanceID>
 | 
			
		||||
                    <rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
 | 
			
		||||
                    <rasd:ResourceType>6</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
                    <rasd:Description>Hard disk</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>Hard disk 1</rasd:ElementName>
 | 
			
		||||
                    <rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
 | 
			
		||||
                    <rasd:InstanceID>2000</rasd:InstanceID>
 | 
			
		||||
                    <rasd:Parent>2</rasd:Parent>
 | 
			
		||||
                    <rasd:ResourceType>17</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:Address>0</rasd:Address>
 | 
			
		||||
                    <rasd:Description>IDE Controller</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>IDE Controller 0</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>3</rasd:InstanceID>
 | 
			
		||||
                    <rasd:ResourceType>5</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item>
 | 
			
		||||
                    <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
                    <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
 | 
			
		||||
                    <rasd:Description>CD/DVD Drive</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
 | 
			
		||||
                    <rasd:HostResource/>
 | 
			
		||||
                    <rasd:InstanceID>3002</rasd:InstanceID>
 | 
			
		||||
                    <rasd:Parent>3</rasd:Parent>
 | 
			
		||||
                    <rasd:ResourceType>15</rasd:ResourceType>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
 | 
			
		||||
                    <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
 | 
			
		||||
                    <rasd:Description>Number of Virtual CPUs</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>4</rasd:InstanceID>
 | 
			
		||||
                    <rasd:Reservation>0</rasd:Reservation>
 | 
			
		||||
                    <rasd:ResourceType>3</rasd:ResourceType>
 | 
			
		||||
                    <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
 | 
			
		||||
                    <rasd:Weight>0</rasd:Weight>
 | 
			
		||||
                    <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu"/>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
 | 
			
		||||
                    <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
 | 
			
		||||
                    <rasd:Description>Memory Size</rasd:Description>
 | 
			
		||||
                    <rasd:ElementName>512 MB of memory</rasd:ElementName>
 | 
			
		||||
                    <rasd:InstanceID>5</rasd:InstanceID>
 | 
			
		||||
                    <rasd:Reservation>0</rasd:Reservation>
 | 
			
		||||
                    <rasd:ResourceType>4</rasd:ResourceType>
 | 
			
		||||
                    <rasd:VirtualQuantity>512</rasd:VirtualQuantity>
 | 
			
		||||
                    <rasd:Weight>0</rasd:Weight>
 | 
			
		||||
                    <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory"/>
 | 
			
		||||
                </ovf:Item>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu"/>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory"/>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/disks"/>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/disks"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/media"/>
 | 
			
		||||
                <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/networkCards"/>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/networkCards"/>
 | 
			
		||||
            </ovf:VirtualHardwareSection>
 | 
			
		||||
            <ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="80" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="rhel5_64Guest">
 | 
			
		||||
                <ovf:Info>Specifies the operating system installed</ovf:Info>
 | 
			
		||||
                <ovf:Description>Red Hat Enterprise Linux 5 (64-bit)</ovf:Description>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/operatingSystemSection/"/>
 | 
			
		||||
            </ovf:OperatingSystemSection>
 | 
			
		||||
            <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/networkConnectionSection/" ovf:required="false">
 | 
			
		||||
                <ovf:Info>Specifies the available VM network connections</ovf:Info>
 | 
			
		||||
                <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
 | 
			
		||||
                <NetworkConnection network="Network1">
 | 
			
		||||
                    <NetworkConnectionIndex>0</NetworkConnectionIndex>
 | 
			
		||||
                    <IpAddress>192.168.2.101</IpAddress>
 | 
			
		||||
                    <ExternalIpAddress>192.168.1.102</ExternalIpAddress>
 | 
			
		||||
                    <IsConnected>true</IsConnected>
 | 
			
		||||
                    <MACAddress>00:50:56:01:02:04</MACAddress>
 | 
			
		||||
                    <IpAddressAllocationMode>POOL</IpAddressAllocationMode>
 | 
			
		||||
                </NetworkConnection>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/networkConnectionSection/"/>
 | 
			
		||||
            </NetworkConnectionSection>
 | 
			
		||||
            <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/guestCustomizationSection/" ovf:required="false">
 | 
			
		||||
                <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
 | 
			
		||||
                <Enabled>true</Enabled>
 | 
			
		||||
                <ChangeSid>false</ChangeSid>
 | 
			
		||||
                <VirtualMachineId>1</VirtualMachineId>
 | 
			
		||||
                <JoinDomainEnabled>false</JoinDomainEnabled>
 | 
			
		||||
                <UseOrgSettings>false</UseOrgSettings>
 | 
			
		||||
                <AdminPasswordEnabled>true</AdminPasswordEnabled>
 | 
			
		||||
                <AdminPasswordAuto>true</AdminPasswordAuto>
 | 
			
		||||
                <AdminPassword>password</AdminPassword>
 | 
			
		||||
                <ResetPasswordRequired>false</ResetPasswordRequired>
 | 
			
		||||
                <CustomizationScript/>
 | 
			
		||||
                <ComputerName>vm1</ComputerName>
 | 
			
		||||
                <Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/guestCustomizationSection/"/>
 | 
			
		||||
            </GuestCustomizationSection>
 | 
			
		||||
            <VAppScopedLocalId>vmware_RHEL5-U5-64-small_v01</VAppScopedLocalId>
 | 
			
		||||
        </Vm>
 | 
			
		||||
    </Children>
 | 
			
		||||
</VApp>
 | 
			
		||||
							
								
								
									
										139
									
								
								tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-1
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										139
									
								
								tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-1
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,139 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<Vm xmlns="http://www.vmware.com/vcloud/v1" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1" deployed="true" status="8" name="vm1" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1 http://vcloud.example.com/api/v1.0/schema/vmwextensions.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd http://www.vmware.com/vcloud/v1 http://vcloud.example.com/api/v1.0/schema/master.xsd">
 | 
			
		||||
    <VCloudExtension required="false">
 | 
			
		||||
        <vmext:VimObjectRef>
 | 
			
		||||
            <vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="vm1.example.com" href="https://vcloud.example.com/api/v1.0/admin/extension/vimServer/1"/>
 | 
			
		||||
            <vmext:MoRef>vm-594</vmext:MoRef>
 | 
			
		||||
            <vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
 | 
			
		||||
        </vmext:VimObjectRef>
 | 
			
		||||
    </VCloudExtension>
 | 
			
		||||
    <Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/power/action/powerOn"/>
 | 
			
		||||
    <Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/power/action/powerOff"/>
 | 
			
		||||
    <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/action/undeploy"/>
 | 
			
		||||
    <Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1006933678"/>
 | 
			
		||||
    <Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1"/>
 | 
			
		||||
    <Link rel="screen:thumbnail" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/screen"/>
 | 
			
		||||
    <Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/media/action/insertMedia"/>
 | 
			
		||||
    <Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/media/action/ejectMedia"/>
 | 
			
		||||
    <Description/>
 | 
			
		||||
    <ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
 | 
			
		||||
        <ovf:Info>Virtual hardware requirements</ovf:Info>
 | 
			
		||||
        <ovf:System>
 | 
			
		||||
            <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
 | 
			
		||||
            <vssd:InstanceID>0</vssd:InstanceID>
 | 
			
		||||
            <vssd:VirtualSystemIdentifier>vm1</vssd:VirtualSystemIdentifier>
 | 
			
		||||
            <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
 | 
			
		||||
        </ovf:System>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:Address>00:50:56:01:02:04</rasd:Address>
 | 
			
		||||
            <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
            <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
 | 
			
		||||
            <rasd:Connection vcloud:ipAddress="192.168.2.101" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">Network1</rasd:Connection>
 | 
			
		||||
            <rasd:Description>PCNet32 ethernet adapter</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>Network adapter 0</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>1</rasd:InstanceID>
 | 
			
		||||
            <rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
 | 
			
		||||
            <rasd:ResourceType>10</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:Address>0</rasd:Address>
 | 
			
		||||
            <rasd:Description>SCSI Controller</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>2</rasd:InstanceID>
 | 
			
		||||
            <rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
 | 
			
		||||
            <rasd:ResourceType>6</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
            <rasd:Description>Hard disk</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>Hard disk 1</rasd:ElementName>
 | 
			
		||||
            <rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
 | 
			
		||||
            <rasd:InstanceID>2000</rasd:InstanceID>
 | 
			
		||||
            <rasd:Parent>2</rasd:Parent>
 | 
			
		||||
            <rasd:ResourceType>17</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:Address>0</rasd:Address>
 | 
			
		||||
            <rasd:Description>IDE Controller</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>IDE Controller 0</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>3</rasd:InstanceID>
 | 
			
		||||
            <rasd:ResourceType>5</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
            <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
 | 
			
		||||
            <rasd:Description>CD/DVD Drive</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
 | 
			
		||||
            <rasd:HostResource/>
 | 
			
		||||
            <rasd:InstanceID>3002</rasd:InstanceID>
 | 
			
		||||
            <rasd:Parent>3</rasd:Parent>
 | 
			
		||||
            <rasd:ResourceType>15</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
 | 
			
		||||
            <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
 | 
			
		||||
            <rasd:Description>Number of Virtual CPUs</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>4</rasd:InstanceID>
 | 
			
		||||
            <rasd:Reservation>0</rasd:Reservation>
 | 
			
		||||
            <rasd:ResourceType>3</rasd:ResourceType>
 | 
			
		||||
            <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
 | 
			
		||||
            <rasd:Weight>0</rasd:Weight>
 | 
			
		||||
            <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu"/>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
 | 
			
		||||
            <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
 | 
			
		||||
            <rasd:Description>Memory Size</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>512 MB of memory</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>5</rasd:InstanceID>
 | 
			
		||||
            <rasd:Reservation>0</rasd:Reservation>
 | 
			
		||||
            <rasd:ResourceType>4</rasd:ResourceType>
 | 
			
		||||
            <rasd:VirtualQuantity>512</rasd:VirtualQuantity>
 | 
			
		||||
            <rasd:Weight>0</rasd:Weight>
 | 
			
		||||
            <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory"/>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu"/>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory"/>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/disks"/>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/disks"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/media"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/networkCards"/>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/networkCards"/>
 | 
			
		||||
    </ovf:VirtualHardwareSection>
 | 
			
		||||
    <ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="80" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="rhel5_64Guest">
 | 
			
		||||
        <ovf:Info>Specifies the operating system installed</ovf:Info>
 | 
			
		||||
        <ovf:Description>Red Hat Enterprise Linux 5 (64-bit)</ovf:Description>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/operatingSystemSection/"/>
 | 
			
		||||
    </ovf:OperatingSystemSection>
 | 
			
		||||
    <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/networkConnectionSection/" ovf:required="false">
 | 
			
		||||
        <ovf:Info>Specifies the available VM network connections</ovf:Info>
 | 
			
		||||
        <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
 | 
			
		||||
        <NetworkConnection network="Network1">
 | 
			
		||||
            <NetworkConnectionIndex>0</NetworkConnectionIndex>
 | 
			
		||||
            <IpAddress>192.168.2.101</IpAddress>
 | 
			
		||||
            <ExternalIpAddress>192.168.1.102</ExternalIpAddress>
 | 
			
		||||
            <IsConnected>true</IsConnected>
 | 
			
		||||
            <MACAddress>00:50:56:01:02:04</MACAddress>
 | 
			
		||||
            <IpAddressAllocationMode>POOL</IpAddressAllocationMode>
 | 
			
		||||
        </NetworkConnection>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/networkConnectionSection/"/>
 | 
			
		||||
    </NetworkConnectionSection>
 | 
			
		||||
    <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/guestCustomizationSection/" ovf:required="false">
 | 
			
		||||
        <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
 | 
			
		||||
        <Enabled>true</Enabled>
 | 
			
		||||
        <ChangeSid>false</ChangeSid>
 | 
			
		||||
        <VirtualMachineId>1</VirtualMachineId>
 | 
			
		||||
        <JoinDomainEnabled>false</JoinDomainEnabled>
 | 
			
		||||
        <UseOrgSettings>false</UseOrgSettings>
 | 
			
		||||
        <AdminPasswordEnabled>true</AdminPasswordEnabled>
 | 
			
		||||
        <AdminPasswordAuto>true</AdminPasswordAuto>
 | 
			
		||||
        <AdminPassword>password</AdminPassword>
 | 
			
		||||
        <ResetPasswordRequired>false</ResetPasswordRequired>
 | 
			
		||||
        <CustomizationScript/>
 | 
			
		||||
        <ComputerName>vm1</ComputerName>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/guestCustomizationSection/"/>
 | 
			
		||||
    </GuestCustomizationSection>
 | 
			
		||||
    <VAppScopedLocalId>vmware_RHEL5-U5-64-small_v01</VAppScopedLocalId>
 | 
			
		||||
</Vm>
 | 
			
		||||
							
								
								
									
										148
									
								
								tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										148
									
								
								tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-2
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,148 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<Vm xmlns="http://www.vmware.com/vcloud/v1" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1" deployed="true" status="8" name="vm2" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1 http://vcloud.example.com/api/v1.0/schema/vmwextensions.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd http://www.vmware.com/vcloud/v1 http://vcloud.example.com/api/v1.0/schema/master.xsd">
 | 
			
		||||
    <VCloudExtension required="false">
 | 
			
		||||
        <vmext:VimObjectRef>
 | 
			
		||||
            <vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="vm2.example.com" href="https://vcloud.example.com/api/v1.0/admin/extension/vimServer/2"/>
 | 
			
		||||
            <vmext:MoRef>vm-595</vmext:MoRef>
 | 
			
		||||
            <vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
 | 
			
		||||
        </vmext:VimObjectRef>
 | 
			
		||||
    </VCloudExtension>
 | 
			
		||||
    <Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOn"/>
 | 
			
		||||
    <Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOff"/>
 | 
			
		||||
    <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/action/undeploy"/>
 | 
			
		||||
    <Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1006933678"/>
 | 
			
		||||
    <Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2"/>
 | 
			
		||||
    <Link rel="screen:thumbnail" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/screen"/>
 | 
			
		||||
    <Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/media/action/insertMedia"/>
 | 
			
		||||
    <Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/media/action/ejectMedia"/>
 | 
			
		||||
    <Description>Some VM Description</Description>
 | 
			
		||||
    <ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
 | 
			
		||||
        <ovf:Info>Virtual hardware requirements</ovf:Info>
 | 
			
		||||
        <ovf:System>
 | 
			
		||||
            <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
 | 
			
		||||
            <vssd:InstanceID>0</vssd:InstanceID>
 | 
			
		||||
            <vssd:VirtualSystemIdentifier>vm2</vssd:VirtualSystemIdentifier>
 | 
			
		||||
            <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
 | 
			
		||||
        </ovf:System>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:Address>00:50:56:01:02:03</rasd:Address>
 | 
			
		||||
            <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
            <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
 | 
			
		||||
            <rasd:Connection vcloud:ipAddress="192.168.2.102" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">Network1</rasd:Connection>
 | 
			
		||||
            <rasd:Description>PCNet32 ethernet adapter</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>Network adapter 0</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>1</rasd:InstanceID>
 | 
			
		||||
            <rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
 | 
			
		||||
            <rasd:ResourceType>10</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:Address>0</rasd:Address>
 | 
			
		||||
            <rasd:Description>SCSI Controller</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>2</rasd:InstanceID>
 | 
			
		||||
            <rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
 | 
			
		||||
            <rasd:ResourceType>6</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
            <rasd:Description>Hard disk</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>Hard disk 1</rasd:ElementName>
 | 
			
		||||
            <rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
 | 
			
		||||
            <rasd:InstanceID>2000</rasd:InstanceID>
 | 
			
		||||
            <rasd:Parent>2</rasd:Parent>
 | 
			
		||||
            <rasd:ResourceType>17</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:AddressOnParent>1</rasd:AddressOnParent>
 | 
			
		||||
            <rasd:Description>Hard disk</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>Hard disk 2</rasd:ElementName>
 | 
			
		||||
            <rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
 | 
			
		||||
            <rasd:InstanceID>3000</rasd:InstanceID>
 | 
			
		||||
            <rasd:Parent>2</rasd:Parent>
 | 
			
		||||
            <rasd:ResourceType>17</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:Address>0</rasd:Address>
 | 
			
		||||
            <rasd:Description>IDE Controller</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>IDE Controller 0</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>3</rasd:InstanceID>
 | 
			
		||||
            <rasd:ResourceType>5</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item>
 | 
			
		||||
            <rasd:AddressOnParent>0</rasd:AddressOnParent>
 | 
			
		||||
            <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
 | 
			
		||||
            <rasd:Description>CD/DVD Drive</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
 | 
			
		||||
            <rasd:HostResource/>
 | 
			
		||||
            <rasd:InstanceID>3002</rasd:InstanceID>
 | 
			
		||||
            <rasd:Parent>3</rasd:Parent>
 | 
			
		||||
            <rasd:ResourceType>15</rasd:ResourceType>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
 | 
			
		||||
            <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
 | 
			
		||||
            <rasd:Description>Number of Virtual CPUs</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>4</rasd:InstanceID>
 | 
			
		||||
            <rasd:Reservation>0</rasd:Reservation>
 | 
			
		||||
            <rasd:ResourceType>3</rasd:ResourceType>
 | 
			
		||||
            <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
 | 
			
		||||
            <rasd:Weight>0</rasd:Weight>
 | 
			
		||||
            <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
 | 
			
		||||
            <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
 | 
			
		||||
            <rasd:Description>Memory Size</rasd:Description>
 | 
			
		||||
            <rasd:ElementName>512 MB of memory</rasd:ElementName>
 | 
			
		||||
            <rasd:InstanceID>5</rasd:InstanceID>
 | 
			
		||||
            <rasd:Reservation>0</rasd:Reservation>
 | 
			
		||||
            <rasd:ResourceType>4</rasd:ResourceType>
 | 
			
		||||
            <rasd:VirtualQuantity>512</rasd:VirtualQuantity>
 | 
			
		||||
            <rasd:Weight>0</rasd:Weight>
 | 
			
		||||
            <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
 | 
			
		||||
        </ovf:Item>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/disks"/>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/disks"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/media"/>
 | 
			
		||||
        <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/networkCards"/>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/networkCards"/>
 | 
			
		||||
    </ovf:VirtualHardwareSection>
 | 
			
		||||
    <ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="80" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="rhel5_64Guest">
 | 
			
		||||
        <ovf:Info>Specifies the operating system installed</ovf:Info>
 | 
			
		||||
        <ovf:Description>Red Hat Enterprise Linux 5 (64-bit)</ovf:Description>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/operatingSystemSection/"/>
 | 
			
		||||
    </ovf:OperatingSystemSection>
 | 
			
		||||
    <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/networkConnectionSection/" ovf:required="false">
 | 
			
		||||
        <ovf:Info>Specifies the available VM network connections</ovf:Info>
 | 
			
		||||
        <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
 | 
			
		||||
        <NetworkConnection network="Network1">
 | 
			
		||||
            <NetworkConnectionIndex>0</NetworkConnectionIndex>
 | 
			
		||||
            <IpAddress>192.168.2.102</IpAddress>
 | 
			
		||||
            <ExternalIpAddress>192.168.1.103</ExternalIpAddress>
 | 
			
		||||
            <IsConnected>true</IsConnected>
 | 
			
		||||
            <MACAddress>00:50:56:01:02:03</MACAddress>
 | 
			
		||||
            <IpAddressAllocationMode>POOL</IpAddressAllocationMode>
 | 
			
		||||
        </NetworkConnection>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/networkConnectionSection/"/>
 | 
			
		||||
    </NetworkConnectionSection>
 | 
			
		||||
    <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/guestCustomizationSection/" ovf:required="false">
 | 
			
		||||
        <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
 | 
			
		||||
        <Enabled>true</Enabled>
 | 
			
		||||
        <ChangeSid>false</ChangeSid>
 | 
			
		||||
        <VirtualMachineId>2</VirtualMachineId>
 | 
			
		||||
        <JoinDomainEnabled>false</JoinDomainEnabled>
 | 
			
		||||
        <UseOrgSettings>false</UseOrgSettings>
 | 
			
		||||
        <AdminPasswordEnabled>true</AdminPasswordEnabled>
 | 
			
		||||
        <AdminPasswordAuto>true</AdminPasswordAuto>
 | 
			
		||||
        <AdminPassword>password</AdminPassword>
 | 
			
		||||
        <ResetPasswordRequired>false</ResetPasswordRequired>
 | 
			
		||||
        <CustomizationScript/>
 | 
			
		||||
        <ComputerName>vm2</ComputerName>
 | 
			
		||||
        <Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/guestCustomizationSection/"/>
 | 
			
		||||
    </GuestCustomizationSection>
 | 
			
		||||
    <VAppScopedLocalId>vmware_RHEL5-U5-64-small_v02</VAppScopedLocalId>
 | 
			
		||||
</Vm>
 | 
			
		||||
							
								
								
									
										61
									
								
								tests/vcloud/data/api_+_v1.0_+_vdc_+_1
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										61
									
								
								tests/vcloud/data/api_+_v1.0_+_vdc_+_1
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,61 @@
 | 
			
		|||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<Vdc xmlns="http://www.vmware.com/vcloud/v1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1" status="1" name="vDC1" type="application/vnd.vmware.vcloud.vdc+xml" href="https://vcloud.example.com/api/v1.0/vdc/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1 http://vcloud.example.com/api/v1.0/schema/vmwextensions.xsd http://www.vmware.com/vcloud/v1 http://vcloud.example.com/api/v1.0/schema/master.xsd">
 | 
			
		||||
    <VCloudExtension required="false">
 | 
			
		||||
        <vmext:VimObjectRef>
 | 
			
		||||
            <vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="host.example.com" href="https://vcloud.example.com/api/v1.0/admin/extension/vimServer/1"/>
 | 
			
		||||
            <vmext:MoRef>resgroup-1</vmext:MoRef>
 | 
			
		||||
            <vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
 | 
			
		||||
        </vmext:VimObjectRef>
 | 
			
		||||
    </VCloudExtension>
 | 
			
		||||
    <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" href="https://vcloud.example.com/api/v1.0/org/1"/>
 | 
			
		||||
    <Link rel="add" type="application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/uploadVAppTemplate"/>
 | 
			
		||||
    <Link rel="add" type="application/vnd.vmware.vcloud.media+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/media"/>
 | 
			
		||||
    <Link rel="add" type="application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/instantiateVAppTemplate"/>
 | 
			
		||||
    <Link rel="add" type="application/vnd.vmware.vcloud.cloneVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/cloneVApp"/>
 | 
			
		||||
    <Link rel="add" type="application/vnd.vmware.vcloud.cloneVAppTemplateParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/cloneVAppTemplate"/>
 | 
			
		||||
    <Link rel="add" type="application/vnd.vmware.vcloud.cloneMediaParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/cloneMedia"/>
 | 
			
		||||
    <Link rel="add" type="application/vnd.vmware.vcloud.captureVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/captureVApp"/>
 | 
			
		||||
    <Link rel="add" type="application/vnd.vmware.vcloud.composeVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/composeVApp"/>
 | 
			
		||||
    <Link rel="move" type="application/vnd.vmware.vcloud.moveMediaParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/moveMedia"/>
 | 
			
		||||
    <Link rel="move" type="application/vnd.vmware.vcloud.moveVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/moveVApp"/>
 | 
			
		||||
    <Link rel="move" type="application/vnd.vmware.vcloud.moveVAppTemplateParams+xml" href="https://vcloud.example.com/api/v1.0/vdc/1/action/moveVAppTemplate"/>
 | 
			
		||||
    <Description>Some Description</Description>
 | 
			
		||||
    <AllocationModel>AllocationVApp</AllocationModel>
 | 
			
		||||
    <StorageCapacity>
 | 
			
		||||
        <Units>MB</Units>
 | 
			
		||||
        <Allocated>10240</Allocated>
 | 
			
		||||
        <Limit>102400</Limit>
 | 
			
		||||
        <Used>101650</Used>
 | 
			
		||||
        <Overhead>0</Overhead>
 | 
			
		||||
    </StorageCapacity>
 | 
			
		||||
    <ComputeCapacity>
 | 
			
		||||
        <Cpu>
 | 
			
		||||
            <Units>MHz</Units>
 | 
			
		||||
            <Allocated>20000</Allocated>
 | 
			
		||||
            <Limit>40000</Limit>
 | 
			
		||||
            <Used>2000</Used>
 | 
			
		||||
            <Overhead>0</Overhead>
 | 
			
		||||
        </Cpu>
 | 
			
		||||
        <Memory>
 | 
			
		||||
            <Units>MB</Units>
 | 
			
		||||
            <Allocated>1024</Allocated>
 | 
			
		||||
            <Limit>10240</Limit>
 | 
			
		||||
            <Used>8385</Used>
 | 
			
		||||
            <Overhead>0</Overhead>
 | 
			
		||||
        </Memory>
 | 
			
		||||
    </ComputeCapacity>
 | 
			
		||||
    <ResourceEntities>
 | 
			
		||||
        <ResourceEntity type="application/vnd.vmware.vcloud.vApp+xml" name="vApp_1" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
 | 
			
		||||
        <ResourceEntity type="application/vnd.vmware.vcloud.vApp+xml" name="vApp_2" href="https://vcloud.example.com/api/v1.0/vApp/vapp-2"/>
 | 
			
		||||
        <ResourceEntity type="application/vnd.vmware.vcloud.media+xml" name="media1" href="https://vcloud.example.com/api/v1.0/media/1"/>
 | 
			
		||||
        <ResourceEntity type="application/vnd.vmware.vcloud.media+xml" name="media2" href="https://vcloud.example.com/api/v1.0/media/2"/>
 | 
			
		||||
    </ResourceEntities>
 | 
			
		||||
    <AvailableNetworks>
 | 
			
		||||
        <Network type="application/vnd.vmware.vcloud.network+xml" name="network1" href="https://vcloud.example.com/api/v1.0/network/1"/>
 | 
			
		||||
        <Network type="application/vnd.vmware.vcloud.network+xml" name="network2" href="https://vcloud.example.com/api/v1.0/network/2"/>
 | 
			
		||||
    </AvailableNetworks>
 | 
			
		||||
    <NicQuota>10</NicQuota>
 | 
			
		||||
    <NetworkQuota>10</NetworkQuota>
 | 
			
		||||
    <VmQuota>10</VmQuota>
 | 
			
		||||
    <IsEnabled>true</IsEnabled>
 | 
			
		||||
</Vdc>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue