fog 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. data/.gitignore +1 -0
  2. data/Rakefile +3 -3
  3. data/changelog.txt +213 -0
  4. data/docs/compute/index.markdown +15 -1
  5. data/fog.gemspec +3 -3
  6. data/lib/fog.rb +1 -1
  7. data/lib/fog/aws.rb +9 -0
  8. data/lib/fog/aws/auto_scaling.rb +3 -1
  9. data/lib/fog/aws/cloud_formation.rb +2 -0
  10. data/lib/fog/aws/cloud_watch.rb +2 -0
  11. data/lib/fog/aws/compute.rb +9 -3
  12. data/lib/fog/aws/elasticache.rb +8 -1
  13. data/lib/fog/aws/elb.rb +2 -0
  14. data/lib/fog/aws/models/cloud_watch/metric_statistic.rb +1 -2
  15. data/lib/fog/aws/models/compute/security_group.rb +1 -1
  16. data/lib/fog/aws/models/compute/server.rb +3 -1
  17. data/lib/fog/aws/models/dns/records.rb +3 -3
  18. data/lib/fog/aws/models/elb/load_balancer.rb +6 -0
  19. data/lib/fog/aws/models/storage/file.rb +2 -2
  20. data/lib/fog/aws/models/storage/files.rb +4 -4
  21. data/lib/fog/aws/parsers/compute/describe_instance_status.rb +64 -0
  22. data/lib/fog/aws/parsers/compute/describe_security_groups.rb +1 -1
  23. data/lib/fog/aws/parsers/sqs/receive_message.rb +1 -1
  24. data/lib/fog/aws/parsers/sts/get_session_token.rb +31 -0
  25. data/lib/fog/aws/rds.rb +36 -1
  26. data/lib/fog/aws/requests/compute/describe_availability_zones.rb +3 -0
  27. data/lib/fog/aws/requests/compute/describe_instance_status.rb +36 -0
  28. data/lib/fog/aws/requests/compute/describe_security_groups.rb +2 -0
  29. data/lib/fog/aws/requests/elb/set_load_balancer_listener_ssl_certificate.rb +27 -0
  30. data/lib/fog/aws/requests/rds/create_db_instance.rb +64 -1
  31. data/lib/fog/aws/requests/rds/delete_db_instance.rb +19 -3
  32. data/lib/fog/aws/requests/rds/describe_db_instances.rb +40 -1
  33. data/lib/fog/aws/requests/rds/describe_db_reserved_instances.rb +1 -1
  34. data/lib/fog/aws/requests/rds/modify_db_instance.rb +24 -1
  35. data/lib/fog/aws/requests/rds/reboot_db_instance.rb +17 -1
  36. data/lib/fog/aws/requests/storage/{hash_to_acl.rb → acl_utils.rb} +8 -0
  37. data/lib/fog/aws/requests/storage/copy_object.rb +8 -0
  38. data/lib/fog/aws/requests/storage/get_bucket_acl.rb +7 -1
  39. data/lib/fog/aws/requests/storage/get_object_acl.rb +7 -1
  40. data/lib/fog/aws/requests/storage/get_object_http_url.rb +4 -3
  41. data/lib/fog/aws/requests/storage/get_object_https_url.rb +4 -3
  42. data/lib/fog/aws/requests/storage/put_bucket_acl.rb +2 -2
  43. data/lib/fog/aws/requests/storage/put_object_acl.rb +1 -1
  44. data/lib/fog/aws/requests/sts/get_federation_token.rb +20 -0
  45. data/lib/fog/aws/requests/sts/get_session_token.rb +18 -0
  46. data/lib/fog/aws/simpledb.rb +5 -1
  47. data/lib/fog/aws/sns.rb +2 -0
  48. data/lib/fog/aws/sqs.rb +5 -1
  49. data/lib/fog/aws/storage.rb +6 -0
  50. data/lib/fog/aws/sts.rb +137 -0
  51. data/lib/fog/bin.rb +1 -0
  52. data/lib/fog/bin/aws.rb +2 -0
  53. data/lib/fog/bin/clodo.rb +31 -0
  54. data/lib/fog/brightbox/compute.rb +7 -0
  55. data/lib/fog/brightbox/models/compute/cloud_ip.rb +10 -2
  56. data/lib/fog/brightbox/models/compute/firewall_policies.rb +29 -0
  57. data/lib/fog/brightbox/models/compute/firewall_policy.rb +65 -0
  58. data/lib/fog/brightbox/models/compute/firewall_rule.rb +54 -0
  59. data/lib/fog/brightbox/models/compute/firewall_rules.rb +24 -0
  60. data/lib/fog/brightbox/models/compute/image.rb +2 -0
  61. data/lib/fog/brightbox/models/compute/server.rb +41 -6
  62. data/lib/fog/brightbox/models/compute/server_group.rb +56 -17
  63. data/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb +14 -0
  64. data/lib/fog/clodo.rb +34 -0
  65. data/lib/fog/clodo/compute.rb +152 -0
  66. data/lib/fog/clodo/models/compute/image.rb +31 -0
  67. data/lib/fog/clodo/models/compute/images.rb +28 -0
  68. data/lib/fog/clodo/models/compute/server.rb +163 -0
  69. data/lib/fog/clodo/models/compute/servers.rb +36 -0
  70. data/lib/fog/clodo/requests/compute/add_ip_address.rb +49 -0
  71. data/lib/fog/clodo/requests/compute/create_server.rb +112 -0
  72. data/lib/fog/clodo/requests/compute/delete_ip_address.rb +47 -0
  73. data/lib/fog/clodo/requests/compute/delete_server.rb +44 -0
  74. data/lib/fog/clodo/requests/compute/get_image_details.rb +20 -0
  75. data/lib/fog/clodo/requests/compute/get_server_details.rb +49 -0
  76. data/lib/fog/clodo/requests/compute/list_images.rb +48 -0
  77. data/lib/fog/clodo/requests/compute/list_images_detail.rb +61 -0
  78. data/lib/fog/clodo/requests/compute/list_servers.rb +50 -0
  79. data/lib/fog/clodo/requests/compute/list_servers_detail.rb +51 -0
  80. data/lib/fog/clodo/requests/compute/move_ip_address.rb +34 -0
  81. data/lib/fog/clodo/requests/compute/reboot_server.rb +19 -0
  82. data/lib/fog/clodo/requests/compute/rebuild_server.rb +21 -0
  83. data/lib/fog/clodo/requests/compute/server_action.rb +25 -0
  84. data/lib/fog/clodo/requests/compute/start_server.rb +19 -0
  85. data/lib/fog/clodo/requests/compute/stop_server.rb +19 -0
  86. data/lib/fog/compute.rb +3 -0
  87. data/lib/fog/core/credentials.rb +3 -3
  88. data/lib/fog/core/errors.rb +2 -0
  89. data/lib/fog/core/wait_for.rb +1 -1
  90. data/lib/fog/dnsmadeeasy/dns.rb +1 -1
  91. data/lib/fog/libvirt/compute.rb +2 -0
  92. data/lib/fog/libvirt/models/compute/nodes.rb +1 -3
  93. data/lib/fog/libvirt/models/compute/server.rb +8 -1
  94. data/lib/fog/providers.rb +1 -0
  95. data/lib/fog/rackspace/dns.rb +10 -2
  96. data/lib/fog/rackspace/load_balancers.rb +3 -0
  97. data/lib/fog/rackspace/models/compute/server.rb +2 -2
  98. data/lib/fog/rackspace/models/dns/callback.rb +3 -1
  99. data/lib/fog/rackspace/models/dns/record.rb +4 -0
  100. data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +18 -8
  101. data/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb +1 -2
  102. data/lib/fog/rackspace/requests/load_balancers/get_error_page.rb +15 -0
  103. data/lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb +8 -2
  104. data/lib/fog/rackspace/requests/load_balancers/remove_error_page.rb +15 -0
  105. data/lib/fog/rackspace/requests/load_balancers/set_error_page.rb +21 -0
  106. data/lib/fog/vcloud/compute.rb +7 -1
  107. data/lib/fog/vcloud/models/compute/catalogs.rb +4 -5
  108. data/lib/fog/vcloud/models/compute/helpers/status.rb +37 -0
  109. data/lib/fog/vcloud/models/compute/network.rb +13 -49
  110. data/lib/fog/vcloud/models/compute/networks.rb +12 -3
  111. data/lib/fog/vcloud/models/compute/organization.rb +44 -0
  112. data/lib/fog/vcloud/models/compute/organizations.rb +29 -0
  113. data/lib/fog/vcloud/models/compute/server.rb +35 -56
  114. data/lib/fog/vcloud/models/compute/servers.rb +11 -13
  115. data/lib/fog/vcloud/models/compute/vapp.rb +41 -0
  116. data/lib/fog/vcloud/models/compute/vapps.rb +32 -0
  117. data/lib/fog/vcloud/models/compute/vdc.rb +11 -26
  118. data/lib/fog/vcloud/models/compute/vdcs.rb +6 -8
  119. data/lib/fog/vcloud/requests/compute/get_server.rb +10 -0
  120. data/lib/fog/vsphere/compute.rb +1 -0
  121. data/lib/fog/vsphere/models/compute/server.rb +18 -0
  122. data/lib/fog/vsphere/models/compute/servers.rb +8 -2
  123. data/lib/fog/vsphere/requests/compute/datacenters.rb +34 -0
  124. data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +132 -91
  125. data/lib/fog/vsphere/requests/compute/vm_clone.rb +76 -37
  126. data/spec/lib/fog/aws/parsers/sqs/receive_message_spec.rb +58 -0
  127. data/tests/aws/models/elb/model_tests.rb +5 -0
  128. data/tests/aws/requests/compute/instance_tests.rb +23 -0
  129. data/tests/aws/requests/compute/security_group_tests.rb +1 -0
  130. data/tests/aws/requests/elb/listener_tests.rb +4 -0
  131. data/tests/aws/requests/storage/{hash_to_acl_tests.rb → acl_utils_tests.rb} +38 -2
  132. data/tests/aws/requests/storage/bucket_tests.rb +0 -3
  133. data/tests/aws/requests/storage/object_tests.rb +2 -4
  134. data/tests/aws/requests/sts/get_federation_token_tests.rb +21 -0
  135. data/tests/aws/requests/sts/session_token_tests.rb +16 -0
  136. data/tests/brightbox/requests/compute/account_tests.rb +11 -6
  137. data/tests/brightbox/requests/compute/api_client_tests.rb +23 -12
  138. data/tests/brightbox/requests/compute/cloud_ip_tests.rb +32 -17
  139. data/tests/brightbox/requests/compute/helper.rb +29 -3
  140. data/tests/brightbox/requests/compute/image_tests.rb +17 -14
  141. data/tests/brightbox/requests/compute/interface_tests.rb +3 -2
  142. data/tests/brightbox/requests/compute/load_balancer_tests.rb +57 -11
  143. data/tests/brightbox/requests/compute/server_group_tests.rb +29 -22
  144. data/tests/brightbox/requests/compute/server_tests.rb +41 -22
  145. data/tests/brightbox/requests/compute/server_type_tests.rb +7 -6
  146. data/tests/brightbox/requests/compute/user_tests.rb +11 -16
  147. data/tests/brightbox/requests/compute/zone_tests.rb +7 -6
  148. data/tests/clodo/requests/compute/image_tests.rb +36 -0
  149. data/tests/clodo/requests/compute/server_tests.rb +152 -0
  150. data/tests/compute/helper.rb +1 -1
  151. data/tests/core/credential_tests.rb +2 -2
  152. data/tests/glesys/requests/compute/helper.rb +91 -66
  153. data/tests/glesys/requests/compute/ip_tests.rb +1 -1
  154. data/tests/glesys/requests/compute/server_tests.rb +5 -5
  155. data/tests/helpers/mock_helper.rb +2 -0
  156. data/tests/rackspace/models/dns/zone_tests.rb +14 -0
  157. data/tests/rackspace/models/{access_list_tests.rb → load_balancers/access_list_tests.rb} +0 -0
  158. data/tests/rackspace/models/{access_lists_tests.rb → load_balancers/access_lists_tests.rb} +0 -0
  159. data/tests/rackspace/models/{load_balancer_tests.rb → load_balancers/load_balancer_tests.rb} +25 -0
  160. data/tests/rackspace/models/{load_balancers_tests.rb → load_balancers/load_balancers_tests.rb} +0 -0
  161. data/tests/rackspace/models/{node_tests.rb → load_balancers/node_tests.rb} +0 -0
  162. data/tests/rackspace/models/{nodes_tests.rb → load_balancers/nodes_tests.rb} +0 -0
  163. data/tests/rackspace/models/{virtual_ip_tests.rb → load_balancers/virtual_ip_tests.rb} +0 -0
  164. data/tests/rackspace/models/{virtual_ips_tests.rb → load_balancers/virtual_ips_tests.rb} +0 -0
  165. data/tests/rackspace/requests/dns/dns_tests.rb +4 -2
  166. data/tests/rackspace/requests/load_balancers/error_page_tests.rb +31 -0
  167. data/tests/rackspace/requests/load_balancers/helper.rb +27 -11
  168. data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +4 -1
  169. data/tests/rackspace/requests/load_balancers/node_tests.rb +24 -25
  170. data/tests/slicehost/requests/compute/slice_tests.rb +2 -2
  171. data/tests/storm_on_demand/requests/compute/server_tests.rb +3 -3
  172. data/tests/vcloud/data/api_+_v1.0_+_admin_+_network_+_2 +110 -0
  173. data/tests/vcloud/data/api_+_v1.0_+_login +5 -0
  174. data/tests/vcloud/data/api_+_v1.0_+_network_+_1 +44 -0
  175. data/tests/vcloud/data/api_+_v1.0_+_network_+_2 +31 -0
  176. data/tests/vcloud/data/api_+_v1.0_+_org_+_1 +17 -0
  177. data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vapp-1 +369 -0
  178. data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-1 +139 -0
  179. data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-2 +155 -0
  180. data/tests/vcloud/data/api_+_v1.0_+_vdc_+_1 +61 -0
  181. data/tests/vcloud/models/compute/conn_helper.rb +20 -0
  182. data/tests/vcloud/models/compute/network_tests.rb +65 -0
  183. data/tests/vcloud/models/compute/networks_tests.rb +42 -0
  184. data/tests/vcloud/models/compute/organization_tests.rb +13 -0
  185. data/tests/vcloud/models/compute/organizations_tests.rb +14 -0
  186. data/tests/vcloud/models/compute/server_tests.rb +136 -0
  187. data/tests/vcloud/models/compute/servers_tests.rb +10 -89
  188. data/tests/vcloud/models/compute/vapp_tests.rb +27 -0
  189. data/tests/vcloud/models/compute/vapps_tests.rb +17 -0
  190. data/tests/vcloud/models/compute/vdc_tests.rb +42 -0
  191. data/tests/vcloud/models/compute/vdcs_tests.rb +17 -0
  192. data/tests/vsphere/requests/compute/vm_clone_tests.rb +2 -6
  193. metadata +151 -55
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <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">
3
+ <Org type="application/vnd.vmware.vcloud.org+xml" name="Org1" href="https://vcloud.example.com/api/v1.0/org/1"/>
4
+ <Org type="application/vnd.vmware.vcloud.org+xml" name="Org2" href="https://vcloud.example.com/api/v1.0/org/2"/>
5
+ </OrgList>
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <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">
3
+ <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" href="https://vcloud.example.com/api/v1.0/org/1"/>
4
+ <Description>Some fancy Network</Description>
5
+ <Configuration>
6
+ <IpScope>
7
+ <IsInherited>false</IsInherited>
8
+ <Gateway>192.168.0.1</Gateway>
9
+ <Netmask>255.255.255.0</Netmask>
10
+ <Dns1>172.0.0.2</Dns1>
11
+ <Dns2>172.0.0.190</Dns2>
12
+ <IpRanges>
13
+ <IpRange>
14
+ <StartAddress>192.168.0.101</StartAddress>
15
+ <EndAddress>192.168.0.150</EndAddress>
16
+ </IpRange>
17
+ </IpRanges>
18
+ <AllocatedIpAddresses>
19
+ <IpAddress>192.168.0.1</IpAddress>
20
+ </AllocatedIpAddresses>
21
+ </IpScope>
22
+ <ParentNetwork type="application/vnd.vmware.admin.network+xml" name="ParentNetwork1" href="https://vcloud.example.com/api/v1.0/admin/network/2"/>
23
+ <FenceMode>natRouted</FenceMode>
24
+ <Features>
25
+ <DhcpService>
26
+ <IsEnabled>false</IsEnabled>
27
+ <DefaultLeaseTime>3600</DefaultLeaseTime>
28
+ <MaxLeaseTime>7200</MaxLeaseTime>
29
+ <IpRange>
30
+ <StartAddress>192.168.0.151</StartAddress>
31
+ <EndAddress>192.168.0.254</EndAddress>
32
+ </IpRange>
33
+ </DhcpService>
34
+ <FirewallService>
35
+ <IsEnabled>true</IsEnabled>
36
+ </FirewallService>
37
+ <NatService>
38
+ <IsEnabled>false</IsEnabled>
39
+ <NatType>portForwarding</NatType>
40
+ <Policy>allowTraffic</Policy>
41
+ </NatService>
42
+ </Features>
43
+ </Configuration>
44
+ </OrgNetwork>
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <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">
3
+ <Link rel="up" type="application/vnd.vmware.vcloud.org+xml" href="https://vcloud.example.com/api/v1.0/org/1"/>
4
+ <Description>Description</Description>
5
+ <Configuration>
6
+ <IpScope>
7
+ <IsInherited>false</IsInherited>
8
+ <Gateway>192.168.251.254</Gateway>
9
+ <Netmask>255.255.255.0</Netmask>
10
+ <Dns1>192.168.251.254</Dns1>
11
+ <IpRanges>
12
+ <IpRange>
13
+ <StartAddress>192.168.251.101</StartAddress>
14
+ <EndAddress>192.168.251.200</EndAddress>
15
+ </IpRange>
16
+ </IpRanges>
17
+ </IpScope>
18
+ <FenceMode>isolated</FenceMode>
19
+ <Features>
20
+ <DhcpService>
21
+ <IsEnabled>false</IsEnabled>
22
+ <DefaultLeaseTime>3600</DefaultLeaseTime>
23
+ <MaxLeaseTime>7200</MaxLeaseTime>
24
+ <IpRange>
25
+ <StartAddress>192.168.251.1</StartAddress>
26
+ <EndAddress>192.168.251.100</EndAddress>
27
+ </IpRange>
28
+ </DhcpService>
29
+ </Features>
30
+ </Configuration>
31
+ </OrgNetwork>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <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">
3
+ <Link rel="down" type="application/vnd.vmware.vcloud.vdc+xml" name="vDC1" href="https://vcloud.example.com/api/v1.0/vdc/1"/>
4
+ <Link rel="down" type="application/vnd.vmware.vcloud.tasksList+xml" href="https://vcloud.example.com/api/v1.0/tasksList/1"/>
5
+ <Link rel="down" type="application/vnd.vmware.vcloud.catalog+xml" name="Catalog1" href="https://vcloud.example.com/api/v1.0/catalog/1"/>
6
+ <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/org/1/catalog/1/controlAccess/"/>
7
+ <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/org/1/catalog/1/action/controlAccess"/>
8
+ <Link rel="down" type="application/vnd.vmware.vcloud.catalog+xml" name="Catalog2" href="https://vcloud.example.com/api/v1.0/catalog/2"/>
9
+ <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/org/1/catalog/2/controlAccess/"/>
10
+ <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/org/1/catalog/2/action/controlAccess"/>
11
+ <Link rel="down" type="application/vnd.vmware.vcloud.network+xml" name="Network1" href="https://vcloud.example.com/api/v1.0/network/1"/>
12
+ <Link rel="down" type="application/vnd.vmware.vcloud.network+xml" name="Network2" href="https://vcloud.example.com/api/v1.0/network/2"/>
13
+ <Description>Some fancy
14
+
15
+ Description</Description>
16
+ <FullName>My Full Name</FullName>
17
+ </Org>
@@ -0,0 +1,369 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <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">
3
+ <Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/power/action/powerOn"/>
4
+ <Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/power/action/powerOff"/>
5
+ <Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/action/deploy"/>
6
+ <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/action/undeploy"/>
7
+ <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/controlAccess/"/>
8
+ <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/action/controlAccess"/>
9
+ <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="https://vcloud.example.com/api/v1.0/vdc/652994200"/>
10
+ <Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
11
+ <Description>Some Description of a vApp</Description>
12
+ <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/leaseSettingsSection/" ovf:required="false">
13
+ <ovf:Info>Lease settings section</ovf:Info>
14
+ <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/leaseSettingsSection/"/>
15
+ <DeploymentLeaseInSeconds>0</DeploymentLeaseInSeconds>
16
+ <StorageLeaseInSeconds>0</StorageLeaseInSeconds>
17
+ </LeaseSettingsSection>
18
+ <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">
19
+ <ovf:Info>VApp startup section</ovf:Info>
20
+ <ovf:Item ovf:stopDelay="0" ovf:stopAction="guestShutdown" ovf:startDelay="30" ovf:startAction="powerOn" ovf:order="2" ovf:id="vm1"/>
21
+ <ovf:Item ovf:stopDelay="30" ovf:stopAction="guestShutdown" ovf:startDelay="0" ovf:startAction="powerOn" ovf:order="1" ovf:id="vm2"/>
22
+ <Link rel="edit" type="application/vnd.vmware.vcloud.startupSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/startupSection/"/>
23
+ </ovf:StartupSection>
24
+ <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">
25
+ <ovf:Info>The list of logical networks</ovf:Info>
26
+ <ovf:Network ovf:name="Network1">
27
+ <ovf:Description/>
28
+ </ovf:Network>
29
+ </ovf:NetworkSection>
30
+ <NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/networkConfigSection/" ovf:required="false">
31
+ <ovf:Info>The configuration parameters for logical networks</ovf:Info>
32
+ <Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/networkConfigSection/"/>
33
+ <NetworkConfig networkName="Network1">
34
+ <Description>Some Network Description</Description>
35
+ <Configuration>
36
+ <IpScope>
37
+ <IsInherited>false</IsInherited>
38
+ <Gateway>192.168.2.1</Gateway>
39
+ <Netmask>255.255.255.0</Netmask>
40
+ <Dns1>192.168.2.1</Dns1>
41
+ <IpRanges>
42
+ <IpRange>
43
+ <StartAddress>192.168.2.101</StartAddress>
44
+ <EndAddress>192.168.2.150</EndAddress>
45
+ </IpRange>
46
+ </IpRanges>
47
+ <AllocatedIpAddresses>
48
+ <IpAddress>192.168.2.101</IpAddress>
49
+ <IpAddress>192.168.2.1</IpAddress>
50
+ <IpAddress>192.168.2.102</IpAddress>
51
+ </AllocatedIpAddresses>
52
+ </IpScope>
53
+ <ParentNetwork type="application/vnd.vmware.vcloud.network+xml" name="Network1" href="https://vcloud.example.com/api/v1.0/network/1"/>
54
+ <FenceMode>natRouted</FenceMode>
55
+ <Features>
56
+ <DhcpService>
57
+ <IsEnabled>false</IsEnabled>
58
+ <DefaultLeaseTime>7200</DefaultLeaseTime>
59
+ <MaxLeaseTime>7200</MaxLeaseTime>
60
+ <IpRange/>
61
+ </DhcpService>
62
+ <FirewallService>
63
+ <IsEnabled>true</IsEnabled>
64
+ </FirewallService>
65
+ <NatService>
66
+ <IsEnabled>true</IsEnabled>
67
+ <NatType>ipTranslation</NatType>
68
+ <Policy>allowTraffic</Policy>
69
+ <NatRule>
70
+ <OneToOneVmRule>
71
+ <MappingMode>automatic</MappingMode>
72
+ <ExternalIP>192.168.1.102</ExternalIP>
73
+ <VAppScopedVmId>vm1</VAppScopedVmId>
74
+ <VmNicId>0</VmNicId>
75
+ </OneToOneVmRule>
76
+ </NatRule>
77
+ <NatRule>
78
+ <OneToOneVmRule>
79
+ <MappingMode>automatic</MappingMode>
80
+ <ExternalIP>192.168.1.103</ExternalIP>
81
+ <VAppScopedVmId>vm2</VAppScopedVmId>
82
+ <VmNicId>0</VmNicId>
83
+ </OneToOneVmRule>
84
+ </NatRule>
85
+ </NatService>
86
+ </Features>
87
+ </Configuration>
88
+ <IsDeployed>true</IsDeployed>
89
+ </NetworkConfig>
90
+ </NetworkConfigSection>
91
+ <Children>
92
+ <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">
93
+ <VCloudExtension required="false">
94
+ <vmext:VimObjectRef>
95
+ <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"/>
96
+ <vmext:MoRef>vm-595</vmext:MoRef>
97
+ <vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
98
+ </vmext:VimObjectRef>
99
+ </VCloudExtension>
100
+ <Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOn"/>
101
+ <Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOff"/>
102
+ <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/action/undeploy"/>
103
+ <Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
104
+ <Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2"/>
105
+ <Link rel="screen:thumbnail" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/screen"/>
106
+ <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"/>
107
+ <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"/>
108
+ <Description/>
109
+ <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">
110
+ <ovf:Info>Virtual hardware requirements</ovf:Info>
111
+ <ovf:System>
112
+ <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
113
+ <vssd:InstanceID>0</vssd:InstanceID>
114
+ <vssd:VirtualSystemIdentifier>vm2</vssd:VirtualSystemIdentifier>
115
+ <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
116
+ </ovf:System>
117
+ <ovf:Item>
118
+ <rasd:Address>00:50:56:01:02:03</rasd:Address>
119
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
120
+ <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
121
+ <rasd:Connection vcloud:ipAddress="192.168.2.102" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">Network1</rasd:Connection>
122
+ <rasd:Description>PCNet32 ethernet adapter</rasd:Description>
123
+ <rasd:ElementName>Network adapter 0</rasd:ElementName>
124
+ <rasd:InstanceID>1</rasd:InstanceID>
125
+ <rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
126
+ <rasd:ResourceType>10</rasd:ResourceType>
127
+ </ovf:Item>
128
+ <ovf:Item>
129
+ <rasd:Address>0</rasd:Address>
130
+ <rasd:Description>SCSI Controller</rasd:Description>
131
+ <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
132
+ <rasd:InstanceID>2</rasd:InstanceID>
133
+ <rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
134
+ <rasd:ResourceType>6</rasd:ResourceType>
135
+ </ovf:Item>
136
+ <ovf:Item>
137
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
138
+ <rasd:Description>Hard disk</rasd:Description>
139
+ <rasd:ElementName>Hard disk 1</rasd:ElementName>
140
+ <rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
141
+ <rasd:InstanceID>2000</rasd:InstanceID>
142
+ <rasd:Parent>2</rasd:Parent>
143
+ <rasd:ResourceType>17</rasd:ResourceType>
144
+ </ovf:Item>
145
+ <ovf:Item>
146
+ <rasd:Address>0</rasd:Address>
147
+ <rasd:Description>IDE Controller</rasd:Description>
148
+ <rasd:ElementName>IDE Controller 0</rasd:ElementName>
149
+ <rasd:InstanceID>3</rasd:InstanceID>
150
+ <rasd:ResourceType>5</rasd:ResourceType>
151
+ </ovf:Item>
152
+ <ovf:Item>
153
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
154
+ <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
155
+ <rasd:Description>CD/DVD Drive</rasd:Description>
156
+ <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
157
+ <rasd:HostResource/>
158
+ <rasd:InstanceID>3002</rasd:InstanceID>
159
+ <rasd:Parent>3</rasd:Parent>
160
+ <rasd:ResourceType>15</rasd:ResourceType>
161
+ </ovf:Item>
162
+ <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
163
+ <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
164
+ <rasd:Description>Number of Virtual CPUs</rasd:Description>
165
+ <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
166
+ <rasd:InstanceID>4</rasd:InstanceID>
167
+ <rasd:Reservation>0</rasd:Reservation>
168
+ <rasd:ResourceType>3</rasd:ResourceType>
169
+ <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
170
+ <rasd:Weight>0</rasd:Weight>
171
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
172
+ </ovf:Item>
173
+ <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
174
+ <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
175
+ <rasd:Description>Memory Size</rasd:Description>
176
+ <rasd:ElementName>512 MB of memory</rasd:ElementName>
177
+ <rasd:InstanceID>5</rasd:InstanceID>
178
+ <rasd:Reservation>0</rasd:Reservation>
179
+ <rasd:ResourceType>4</rasd:ResourceType>
180
+ <rasd:VirtualQuantity>512</rasd:VirtualQuantity>
181
+ <rasd:Weight>0</rasd:Weight>
182
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
183
+ </ovf:Item>
184
+ <Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/"/>
185
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
186
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
187
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
188
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
189
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/disks"/>
190
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/disks"/>
191
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/media"/>
192
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/networkCards"/>
193
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/networkCards"/>
194
+ </ovf:VirtualHardwareSection>
195
+ <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">
196
+ <ovf:Info>Specifies the operating system installed</ovf:Info>
197
+ <ovf:Description>Red Hat Enterprise Linux 5 (64-bit)</ovf:Description>
198
+ <Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/operatingSystemSection/"/>
199
+ </ovf:OperatingSystemSection>
200
+ <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/networkConnectionSection/" ovf:required="false">
201
+ <ovf:Info>Specifies the available VM network connections</ovf:Info>
202
+ <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
203
+ <NetworkConnection network="Network1">
204
+ <NetworkConnectionIndex>0</NetworkConnectionIndex>
205
+ <IpAddress>192.168.2.102</IpAddress>
206
+ <ExternalIpAddress>192.168.1.103</ExternalIpAddress>
207
+ <IsConnected>true</IsConnected>
208
+ <MACAddress>00:50:56:01:00:03</MACAddress>
209
+ <IpAddressAllocationMode>POOL</IpAddressAllocationMode>
210
+ </NetworkConnection>
211
+ <Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/networkConnectionSection/"/>
212
+ </NetworkConnectionSection>
213
+ <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/guestCustomizationSection/" ovf:required="false">
214
+ <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
215
+ <Enabled>true</Enabled>
216
+ <ChangeSid>false</ChangeSid>
217
+ <VirtualMachineId>2</VirtualMachineId>
218
+ <JoinDomainEnabled>false</JoinDomainEnabled>
219
+ <UseOrgSettings>false</UseOrgSettings>
220
+ <AdminPasswordEnabled>true</AdminPasswordEnabled>
221
+ <AdminPasswordAuto>true</AdminPasswordAuto>
222
+ <AdminPassword>password</AdminPassword>
223
+ <ResetPasswordRequired>false</ResetPasswordRequired>
224
+ <CustomizationScript/>
225
+ <ComputerName>vm2</ComputerName>
226
+ <Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/guestCustomizationSection/"/>
227
+ </GuestCustomizationSection>
228
+ <VAppScopedLocalId>vmware_RHEL5-U5-64-small_v02</VAppScopedLocalId>
229
+ </Vm>
230
+ <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">
231
+ <VCloudExtension required="false">
232
+ <vmext:VimObjectRef>
233
+ <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"/>
234
+ <vmext:MoRef>vm-594</vmext:MoRef>
235
+ <vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
236
+ </vmext:VimObjectRef>
237
+ </VCloudExtension>
238
+ <Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/power/action/powerOn"/>
239
+ <Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/power/action/powerOff"/>
240
+ <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/action/undeploy"/>
241
+ <Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
242
+ <Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1"/>
243
+ <Link rel="screen:thumbnail" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/screen"/>
244
+ <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"/>
245
+ <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"/>
246
+ <Description/>
247
+ <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">
248
+ <ovf:Info>Virtual hardware requirements</ovf:Info>
249
+ <ovf:System>
250
+ <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
251
+ <vssd:InstanceID>0</vssd:InstanceID>
252
+ <vssd:VirtualSystemIdentifier>vm1</vssd:VirtualSystemIdentifier>
253
+ <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
254
+ </ovf:System>
255
+ <ovf:Item>
256
+ <rasd:Address>00:50:56:01:02:04</rasd:Address>
257
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
258
+ <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
259
+ <rasd:Connection vcloud:ipAddress="192.168.2.101" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">Network1</rasd:Connection>
260
+ <rasd:Description>PCNet32 ethernet adapter</rasd:Description>
261
+ <rasd:ElementName>Network adapter 0</rasd:ElementName>
262
+ <rasd:InstanceID>1</rasd:InstanceID>
263
+ <rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
264
+ <rasd:ResourceType>10</rasd:ResourceType>
265
+ </ovf:Item>
266
+ <ovf:Item>
267
+ <rasd:Address>0</rasd:Address>
268
+ <rasd:Description>SCSI Controller</rasd:Description>
269
+ <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
270
+ <rasd:InstanceID>2</rasd:InstanceID>
271
+ <rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
272
+ <rasd:ResourceType>6</rasd:ResourceType>
273
+ </ovf:Item>
274
+ <ovf:Item>
275
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
276
+ <rasd:Description>Hard disk</rasd:Description>
277
+ <rasd:ElementName>Hard disk 1</rasd:ElementName>
278
+ <rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
279
+ <rasd:InstanceID>2000</rasd:InstanceID>
280
+ <rasd:Parent>2</rasd:Parent>
281
+ <rasd:ResourceType>17</rasd:ResourceType>
282
+ </ovf:Item>
283
+ <ovf:Item>
284
+ <rasd:Address>0</rasd:Address>
285
+ <rasd:Description>IDE Controller</rasd:Description>
286
+ <rasd:ElementName>IDE Controller 0</rasd:ElementName>
287
+ <rasd:InstanceID>3</rasd:InstanceID>
288
+ <rasd:ResourceType>5</rasd:ResourceType>
289
+ </ovf:Item>
290
+ <ovf:Item>
291
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
292
+ <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
293
+ <rasd:Description>CD/DVD Drive</rasd:Description>
294
+ <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
295
+ <rasd:HostResource/>
296
+ <rasd:InstanceID>3002</rasd:InstanceID>
297
+ <rasd:Parent>3</rasd:Parent>
298
+ <rasd:ResourceType>15</rasd:ResourceType>
299
+ </ovf:Item>
300
+ <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
301
+ <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
302
+ <rasd:Description>Number of Virtual CPUs</rasd:Description>
303
+ <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
304
+ <rasd:InstanceID>4</rasd:InstanceID>
305
+ <rasd:Reservation>0</rasd:Reservation>
306
+ <rasd:ResourceType>3</rasd:ResourceType>
307
+ <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
308
+ <rasd:Weight>0</rasd:Weight>
309
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu"/>
310
+ </ovf:Item>
311
+ <ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
312
+ <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
313
+ <rasd:Description>Memory Size</rasd:Description>
314
+ <rasd:ElementName>512 MB of memory</rasd:ElementName>
315
+ <rasd:InstanceID>5</rasd:InstanceID>
316
+ <rasd:Reservation>0</rasd:Reservation>
317
+ <rasd:ResourceType>4</rasd:ResourceType>
318
+ <rasd:VirtualQuantity>512</rasd:VirtualQuantity>
319
+ <rasd:Weight>0</rasd:Weight>
320
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory"/>
321
+ </ovf:Item>
322
+ <Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/"/>
323
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu"/>
324
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/cpu"/>
325
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory"/>
326
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/memory"/>
327
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/disks"/>
328
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/disks"/>
329
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/media"/>
330
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/networkCards"/>
331
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/virtualHardwareSection/networkCards"/>
332
+ </ovf:VirtualHardwareSection>
333
+ <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">
334
+ <ovf:Info>Specifies the operating system installed</ovf:Info>
335
+ <ovf:Description>Red Hat Enterprise Linux 5 (64-bit)</ovf:Description>
336
+ <Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/operatingSystemSection/"/>
337
+ </ovf:OperatingSystemSection>
338
+ <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/networkConnectionSection/" ovf:required="false">
339
+ <ovf:Info>Specifies the available VM network connections</ovf:Info>
340
+ <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
341
+ <NetworkConnection network="Network1">
342
+ <NetworkConnectionIndex>0</NetworkConnectionIndex>
343
+ <IpAddress>192.168.2.101</IpAddress>
344
+ <ExternalIpAddress>192.168.1.102</ExternalIpAddress>
345
+ <IsConnected>true</IsConnected>
346
+ <MACAddress>00:50:56:01:02:04</MACAddress>
347
+ <IpAddressAllocationMode>POOL</IpAddressAllocationMode>
348
+ </NetworkConnection>
349
+ <Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/networkConnectionSection/"/>
350
+ </NetworkConnectionSection>
351
+ <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/guestCustomizationSection/" ovf:required="false">
352
+ <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
353
+ <Enabled>true</Enabled>
354
+ <ChangeSid>false</ChangeSid>
355
+ <VirtualMachineId>1</VirtualMachineId>
356
+ <JoinDomainEnabled>false</JoinDomainEnabled>
357
+ <UseOrgSettings>false</UseOrgSettings>
358
+ <AdminPasswordEnabled>true</AdminPasswordEnabled>
359
+ <AdminPasswordAuto>true</AdminPasswordAuto>
360
+ <AdminPassword>password</AdminPassword>
361
+ <ResetPasswordRequired>false</ResetPasswordRequired>
362
+ <CustomizationScript/>
363
+ <ComputerName>vm1</ComputerName>
364
+ <Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/guestCustomizationSection/"/>
365
+ </GuestCustomizationSection>
366
+ <VAppScopedLocalId>vmware_RHEL5-U5-64-small_v01</VAppScopedLocalId>
367
+ </Vm>
368
+ </Children>
369
+ </VApp>