ruby_vcloud_sdk 0.4.8 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +296 -0
  3. data/lib/ruby_vcloud_sdk.rb +0 -4
  4. data/lib/ruby_vcloud_sdk/catalog.rb +377 -0
  5. data/lib/ruby_vcloud_sdk/catalog_item.rb +26 -0
  6. data/lib/ruby_vcloud_sdk/client.rb +25 -882
  7. data/lib/ruby_vcloud_sdk/config.rb +1 -7
  8. data/lib/ruby_vcloud_sdk/connection/connection.rb +114 -54
  9. data/lib/ruby_vcloud_sdk/cpu.rb +11 -0
  10. data/lib/ruby_vcloud_sdk/disk.rb +55 -0
  11. data/lib/ruby_vcloud_sdk/edge_gateway.rb +32 -0
  12. data/lib/ruby_vcloud_sdk/infrastructure.rb +135 -0
  13. data/lib/ruby_vcloud_sdk/ip_ranges.rb +95 -0
  14. data/lib/ruby_vcloud_sdk/memory.rb +11 -0
  15. data/lib/ruby_vcloud_sdk/network.rb +32 -0
  16. data/lib/ruby_vcloud_sdk/powerable.rb +78 -0
  17. data/lib/ruby_vcloud_sdk/resources.rb +13 -0
  18. data/lib/ruby_vcloud_sdk/session.rb +46 -0
  19. data/lib/ruby_vcloud_sdk/vapp.rb +122 -0
  20. data/lib/ruby_vcloud_sdk/vdc.rb +210 -0
  21. data/lib/ruby_vcloud_sdk/vdc_storage_profile.rb +23 -0
  22. data/lib/ruby_vcloud_sdk/version.rb +1 -1
  23. data/lib/ruby_vcloud_sdk/vm.rb +132 -0
  24. data/lib/ruby_vcloud_sdk/xml/constants.rb +6 -4
  25. data/lib/ruby_vcloud_sdk/xml/wrapper.rb +109 -30
  26. data/lib/ruby_vcloud_sdk/xml/wrapper_classes.rb +45 -2
  27. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_catalog.rb +13 -4
  28. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/allocated_ip_addresses.rb +9 -0
  29. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/catalog_item.rb +6 -14
  30. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk.rb +24 -14
  31. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk_attach_or_detach_params.rb +0 -2
  32. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk_create_params.rb +1 -3
  33. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/edge_gateway.rb +13 -0
  34. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/gateway_interface.rb +22 -0
  35. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb +4 -4
  36. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_address.rb +10 -0
  37. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_range.rb +13 -0
  38. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_ranges.rb +9 -0
  39. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_scope.rb +6 -32
  40. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/item.rb +1 -7
  41. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/link.rb +14 -0
  42. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb +4 -20
  43. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/media_insert_or_eject_params.rb +1 -3
  44. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/network_connection_section.rb +0 -4
  45. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/nic_item_wrapper.rb +0 -2
  46. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/org.rb +44 -0
  47. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/org_vdc_network.rb +11 -3
  48. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/query_result_records.rb +14 -0
  49. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/recompose_vapp_params.rb +42 -0
  50. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/session.rb +5 -5
  51. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/supported_versions.rb +19 -0
  52. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/task.rb +1 -1
  53. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/upload_vapp_template_params.rb +2 -4
  54. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb +13 -22
  55. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp_template.rb +0 -2
  56. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vcloud.rb +5 -3
  57. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vdc.rb +72 -15
  58. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/virtual_hardware_section.rb +8 -6
  59. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vm.rb +29 -25
  60. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vms.rb +12 -0
  61. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminCatalog.xml +6 -1
  62. data/lib/ruby_vcloud_sdk/xml/xml_templates/RecomposeVAppParams.xml +16 -1
  63. metadata +116 -233
  64. data/README +0 -1
  65. data/Rakefile +0 -50
  66. data/lib/ruby_vcloud_sdk/util.rb +0 -21
  67. data/spec/assets/admin_org_response.xml +0 -75
  68. data/spec/assets/catalog_add_item_response.xml +0 -8
  69. data/spec/assets/catalog_add_vapp_request.xml +0 -5
  70. data/spec/assets/catalog_item_added_response.xml +0 -19
  71. data/spec/assets/catalog_response.xml +0 -19
  72. data/spec/assets/existing_media_busy_response.xml +0 -19
  73. data/spec/assets/existing_media_catalog_item.xml +0 -8
  74. data/spec/assets/existing_media_delete_task_done.xml +0 -6
  75. data/spec/assets/existing_media_done_response.xml +0 -11
  76. data/spec/assets/existing_vapp_resolver_response.xml +0 -3
  77. data/spec/assets/existing_vapp_template_catalog_resolver_response.xml +0 -3
  78. data/spec/assets/existing_vapp_template_instantiate_response.xml +0 -20
  79. data/spec/assets/existing_vapp_template_instantiate_task_error_response.xml +0 -7
  80. data/spec/assets/existing_vapp_template_instantiate_task_start_response.xml +0 -7
  81. data/spec/assets/existing_vapp_template_instantiate_task_success_response.xml +0 -7
  82. data/spec/assets/existing_vapp_template_item_response.xml +0 -8
  83. data/spec/assets/existing_vapp_template_ready_response.xml +0 -79
  84. data/spec/assets/finalize_upload_task_done_response.xml +0 -7
  85. data/spec/assets/finalize_upload_task_response.xml +0 -7
  86. data/spec/assets/indy_disk_attach_request.xml +0 -3
  87. data/spec/assets/indy_disk_attach_task.xml +0 -6
  88. data/spec/assets/indy_disk_attach_task_error.xml +0 -6
  89. data/spec/assets/indy_disk_create_error.xml +0 -1
  90. data/spec/assets/indy_disk_create_request.xml +0 -4
  91. data/spec/assets/indy_disk_create_response.xml +0 -19
  92. data/spec/assets/indy_disk_delete_task.xml +0 -6
  93. data/spec/assets/indy_disk_detach_request.xml +0 -3
  94. data/spec/assets/indy_disk_detach_task.xml +0 -6
  95. data/spec/assets/indy_disk_response.xml +0 -11
  96. data/spec/assets/instantiated_suspended_vapp_response.xml +0 -209
  97. data/spec/assets/instantiated_vapp_delelete_done_task.xml +0 -5
  98. data/spec/assets/instantiated_vapp_delelete_running_task.xml +0 -6
  99. data/spec/assets/instantiated_vapp_network_config_add_network_request.xml +0 -36
  100. data/spec/assets/instantiated_vapp_network_config_modify_network_task_success.xml +0 -6
  101. data/spec/assets/instantiated_vapp_network_config_remove_network_request.xml +0 -6
  102. data/spec/assets/instantiated_vapp_network_config_section_response.xml +0 -17
  103. data/spec/assets/instantiated_vapp_off_response.xml +0 -206
  104. data/spec/assets/instantiated_vapp_on_response.xml +0 -205
  105. data/spec/assets/instantiated_vapp_power_task_running.xml +0 -6
  106. data/spec/assets/instantiated_vapp_power_task_success.xml +0 -6
  107. data/spec/assets/instantiated_vapp_response.xml +0 -205
  108. data/spec/assets/instantiated_vm_change_task_running.xml +0 -6
  109. data/spec/assets/instantiated_vm_change_task_success.xml +0 -6
  110. data/spec/assets/instantiated_vm_cpu_response.xml +0 -11
  111. data/spec/assets/instantiated_vm_insert_media_task_done.xml +0 -6
  112. data/spec/assets/instantiated_vm_memory_response.xml +0 -11
  113. data/spec/assets/instantiated_vm_modify_task_running.xml +0 -6
  114. data/spec/assets/instantiated_vm_modify_task_success.xml +0 -5
  115. data/spec/assets/instantiated_vm_network_section_response.xml +0 -11
  116. data/spec/assets/instantiated_vm_response.xml +0 -149
  117. data/spec/assets/media_add_to_catalog_request.xml +0 -5
  118. data/spec/assets/media_add_to_catalog_response.xml +0 -8
  119. data/spec/assets/media_delete_task_done.xml +0 -6
  120. data/spec/assets/media_upload_pending_response.xml +0 -13
  121. data/spec/assets/media_upload_request.xml +0 -2
  122. data/spec/assets/metadata_set_request.xml +0 -3
  123. data/spec/assets/metadata_set_task_done.xml +0 -6
  124. data/spec/assets/org_network_response.xml +0 -22
  125. data/spec/assets/reconfigure_vm_request.xml +0 -133
  126. data/spec/assets/reconfigure_vm_task.xml +0 -8
  127. data/spec/assets/session.xml +0 -7
  128. data/spec/assets/test-config.yml +0 -38
  129. data/spec/assets/undeploy_params.xml +0 -1
  130. data/spec/assets/vapp_template_catalog_resolver_response.xml +0 -3
  131. data/spec/assets/vapp_template_delelete_done_task.xml +0 -5
  132. data/spec/assets/vapp_template_delelete_running_task.xml +0 -6
  133. data/spec/assets/vapp_template_instantiate_request.xml +0 -8
  134. data/spec/assets/vapp_template_instantiate_with_locality_request.xml +0 -14
  135. data/spec/assets/vapp_template_no_disk_response.xml +0 -27
  136. data/spec/assets/vapp_template_ready_response.xml +0 -79
  137. data/spec/assets/vapp_template_upload_complete.xml +0 -28
  138. data/spec/assets/vapp_template_upload_failed.xml +0 -28
  139. data/spec/assets/vapp_template_upload_request.xml +0 -4
  140. data/spec/assets/vapp_template_upload_response.xml +0 -25
  141. data/spec/assets/vcloud_response.xml +0 -56
  142. data/spec/assets/vdc_response.xml +0 -57
  143. data/spec/spec_helper.rb +0 -107
  144. data/spec/unit/client_response.rb +0 -700
  145. data/spec/unit/client_spec.rb +0 -1152
@@ -1 +0,0 @@
1
- <Error xmlns="http://www.vmware.com/vcloud/v1.5" minorErrorCode="BAD_REQUEST" message="The requested operation will exceed the vDC's storage quota." majorErrorCode="400" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd"></Error>
@@ -1,4 +0,0 @@
1
- <DiskCreateParams xmlns="http://www.vmware.com/vcloud/v1.5">
2
- <Disk name="%s" size="%s" busType="6" busSubType="lsilogic">
3
- </Disk>
4
- </DiskCreateParams>
@@ -1,19 +0,0 @@
1
- <Disk xmlns="http://www.vmware.com/vcloud/v1.5" size="0" busType="6" busSubType="lsilogic" status="0" name="test5" id="urn:vcloud:disk:%s" type="application/vnd.vmware.vcloud.disk+xml" href="%s/api/disk%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
- <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/7152945d-1041-4c08-9423-23b32c9be1f4"/>
3
- <Link rel="remove" href="%s"/>
4
- <Link rel="edit" type="application/vnd.vmware.vcloud.disk+xml" href="%s/api/disk/%s"/>
5
- <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/disk/%s/owner"/>
6
- <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/disk/%s/metadata"/>
7
- <Tasks>
8
- <Task status="success" startTime="2011-10-05T14:23:03.138-07:00" operationName="vdcCreateDisk" operation="Creating Disk test5(%s)" expiryTime="2012-01-03T14:23:03.138-08:00" name="task" id="urn:vcloud:task:3cdaeaa1-6dd3-439d-95d5-a9208e0c5dba" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/3cdaeaa1-6dd3-439d-95d5-a9208e0c5dba">
9
- <Link rel="task:cancel" href="%s/api/task/3cdaeaa1-6dd3-439d-95d5-a9208e0c5dba/action/cancel"/>
10
- <Owner type="application/vnd.vmware.vcloud.disk+xml" name="test5" href="%s/api/disk/%s"/>
11
- <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/f37afbc4-77a9-4ca6-93b3-d1607f82b329"/>
12
- <Organization type="application/vnd.vmware.vcloud.org+xml" name="vcap" href="%s/api/org/7b8a9ff3-1f41-48ae-8eb2-b91140adc010"/>
13
- </Task>
14
- </Tasks>
15
- <StorageClass type="application/vnd.vmware.vcloud.vdcStorageClass+xml" name="*" href="%s/api/vdcStorageClass/8fe92f5a-efb7-456e-af78-54a120c9cf8f"/>
16
- <Owner type="application/vnd.vmware.vcloud.owner+xml">
17
- <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/61150fcf-1eda-4cd3-a8a5-e51717a2806d"/>
18
- </Owner>
19
- </Disk>
@@ -1,6 +0,0 @@
1
- <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-10-05T14:23:35.027-07:00" operationName="vdcDeleteDisk" operation="Deleting Disk (%s)" expiryTime="2012-01-03T14:23:35.027-08:00" name="task" id="urn:vcloud:task:0e83b4d9-2f24-4ec1-9dd3-7d9c20936cbf" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/0e83b4d9-2f24-4ec1-9dd3-7d9c20936cbf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
- <Link rel="task:cancel" href="%s/api/task/0e83b4d9-2f24-4ec1-9dd3-7d9c20936cbf/action/cancel"/>
3
- <Owner type="application/vnd.vmware.vcloud.disk+xml" name="" href="%s"/>
4
- <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/f37afbc4-77a9-4ca6-93b3-d1607f82b329"/>
5
- <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/7b8a9ff3-1f41-48ae-8eb2-b91140adc010"/>
6
- </Task>
@@ -1,3 +0,0 @@
1
- <DiskAttachOrDetachParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5">
2
- <Disk type="application/vnd.vmware.vcloud.disk+xml" href="%s"> </Disk>
3
- </DiskAttachOrDetachParams>
@@ -1,6 +0,0 @@
1
- <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-10-05T14:23:24.729-07:00" operationName="vappDetachDisk" operation="Detaching Disk from Virtual Machine vm1(97050e89-acf5-4599-9564-46fa762e82b8)" expiryTime="2012-01-03T14:23:24.729-08:00" name="task" id="urn:vcloud:task:b4b83acd-7d2b-49be-a8ae-d7485e0f945c" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/b4b83acd-7d2b-49be-a8ae-d7485e0f945c" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
- <Link rel="task:cancel" href="%s/api/task/b4b83acd-7d2b-49be-a8ae-d7485e0f945c/action/cancel"/>
3
- <Owner type="application/vnd.vmware.vcloud.vm+xml" name="%s" href="%s/api/vApp/vm-97050e89-acf5-4599-9564-46fa762e82b8"/>
4
- <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/f37afbc4-77a9-4ca6-93b3-d1607f82b329"/>
5
- <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/7b8a9ff3-1f41-48ae-8eb2-b91140adc010"/>
6
- </Task>
@@ -1,11 +0,0 @@
1
- <Disk xmlns="http://www.vmware.com/vcloud/v1.5" size="#{INDY_DISK_SIZE * 1000000}" busType="6" busSubType="lsilogic" status="1" name="%s" id="urn:vcloud:disk:%s" type="application/vnd.vmware.vcloud.disk+xml" href="%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
- <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/7152945d-1041-4c08-9423-23b32c9be1f4"/>
3
- <Link rel="remove" href="%s/api/disk/%s"/>
4
- <Link rel="edit" type="application/vnd.vmware.vcloud.disk+xml" href="%s/api/disk/%s"/>
5
- <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/disk/%s/owner"/>
6
- <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/disk/%s/metadata"/>
7
- <StorageClass type="application/vnd.vmware.vcloud.vdcStorageClass+xml" name="*" href="%s/api/vdcStorageClass/8fe92f5a-efb7-456e-af78-54a120c9cf8f"/>
8
- <Owner type="application/vnd.vmware.vcloud.owner+xml">
9
- <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/61150fcf-1eda-4cd3-a8a5-e51717a2806d"/>
10
- </Owner>
11
- </Disk>
@@ -1,209 +0,0 @@
1
- <VApp xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" deployed="false" status="3" name="test_vapp15_1" id="urn:vcloud:vapp:%s" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="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://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.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">
2
- <Link rel="power:powerOn" href="%s"/>
3
- <Link rel="power:suspend" href="%s/api/vApp/vapp-%s/power/action/suspend"/>
4
- <Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="%s/api/vApp/vapp-%s/action/deploy"/>
5
- <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="%s/api/vApp/vapp-%s/action/undeploy"/>
6
- <Link rel="discardState" href="%s/api/vApp/vapp-%s/action/discardSuspendedState"/>
7
- <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="%s/api/vApp/vapp-%s/controlAccess/"/>
8
- <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="%s/api/vApp/vapp-%s/action/controlAccess"/>
9
- <Link rel="recompose" type="application/vnd.vmware.vcloud.recomposeVAppParams+xml" href="%s/api/vApp/vapp-%s/action/recomposeVApp"/>
10
- <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/a974dae0-d10c-4f7c-9f4f-4bdaf7826a3a"/>
11
- <Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s"/>
12
- <Link rel="remove" href="%s/api/vApp/vapp-%s"/>
13
- <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/vApp/vapp-%s/owner"/>
14
- <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vApp/vapp-%s/metadata"/>
15
- <Description>test</Description>
16
- <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vApp/vapp-%s/leaseSettingsSection/" ovf:required="false">
17
- <ovf:Info>Lease settings section</ovf:Info>
18
- <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vApp/vapp-%s/leaseSettingsSection/"/>
19
- <DeploymentLeaseInSeconds>604800</DeploymentLeaseInSeconds>
20
- <StorageLeaseInSeconds>2592000</StorageLeaseInSeconds>
21
- <StorageLeaseExpiration>2011-09-28T11:21:35.767-07:00</StorageLeaseExpiration>
22
- </LeaseSettingsSection>
23
- <ovf:StartupSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vApp/vapp-%s/startupSection/" vcloud:type="application/vnd.vmware.vcloud.startupSection+xml">
24
- <ovf:Info>VApp startup section</ovf:Info>
25
- <ovf:Item ovf:stopDelay="120" ovf:stopAction="powerOff" ovf:startDelay="120" ovf:startAction="powerOn" ovf:order="1" ovf:id="vm1"/>
26
- <ovf:Item ovf:stopDelay="120" ovf:stopAction="powerOff" ovf:startDelay="120" ovf:startAction="powerOn" ovf:order="2" ovf:id="vm2"/>
27
- <Link rel="edit" type="application/vnd.vmware.vcloud.startupSection+xml" href="%s/api/vApp/vapp-%s/startupSection/"/>
28
- </ovf:StartupSection>
29
- <ovf:NetworkSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vApp/vapp-%s/networkSection/" vcloud:type="application/vnd.vmware.vcloud.networkSection+xml">
30
- <ovf:Info>The list of logical networks</ovf:Info>
31
- <ovf:Network ovf:name="none">
32
- <ovf:Description>This is a special place-holder used for disconnected network interfaces.</ovf:Description>
33
- </ovf:Network>
34
- </ovf:NetworkSection>
35
- <NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s" ovf:required="false">
36
- <ovf:Info>The configuration parameters for logical networks</ovf:Info>
37
- <Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s"/>
38
- <NetworkConfig networkName="none">
39
- <Description>This is a special place-holder used for disconnected network interfaces.</Description>
40
- <Configuration>
41
- <IpScope>
42
- <IsInherited>false</IsInherited>
43
- <Gateway>196.254.254.254</Gateway>
44
- <Netmask>255.255.0.0</Netmask>
45
- <Dns1>196.254.254.254</Dns1>
46
- </IpScope>
47
- <FenceMode>isolated</FenceMode>
48
- </Configuration>
49
- <IsDeployed>false</IsDeployed>
50
- </NetworkConfig>
51
- </NetworkConfigSection>
52
- <Owner type="application/vnd.vmware.vcloud.owner+xml">
53
- <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
54
- </Owner>
55
- <InMaintenanceMode>false</InMaintenanceMode>
56
- <Children>
57
- <Vm needsCustomization="true" deployed="false" status="3" name="vm1" id="urn:vcloud:vm:%s" type="application/vnd.vmware.vcloud.vm+xml" href="%s">
58
- <Link rel="power:powerOn" href="%s/api/vApp/vm-%s/power/action/powerOn"/>
59
- <Link rel="power:suspend" href="%s/api/vApp/vm-%s/power/action/suspend"/>
60
- <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="%s/api/vApp/vm-%s/action/undeploy"/>
61
- <Link rel="discardState" href="%s/api/vApp/vm-%s/action/discardSuspendedState"/>
62
- <Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="%s/api/vApp/vm-%s"/>
63
- <Link rel="remove" href="%s/api/vApp/vm-%s"/>
64
- <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vApp/vm-%s/metadata"/>
65
- <Link rel="screen:thumbnail" href="%s/api/vApp/vm-%s/screen"/>
66
- <Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="%s"/>
67
- <Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="%s/api/vApp/vm-%s/media/action/ejectMedia"/>
68
- <Link rel="disk:attach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="%s"/>
69
- <Link rel="disk:detach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="%s"/>
70
- <Link rel="upgrade" href="%s/api/vApp/vm-%s/action/upgradeHardwareVersion"/>
71
- <Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s"/>
72
- <Description>A virtual machine</Description>
73
- <ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" ovf:transport="" vcloud:href="%s/api/vApp/vm-%s/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
74
- <ovf:Info>Virtual hardware requirements</ovf:Info>
75
- <ovf:System>
76
- <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
77
- <vssd:InstanceID>0</vssd:InstanceID>
78
- <vssd:VirtualSystemIdentifier>vm1</vssd:VirtualSystemIdentifier>
79
- <vssd:VirtualSystemType>vmx-04</vssd:VirtualSystemType>
80
- </ovf:System>
81
- <ovf:Item>
82
- <rasd:Address>00:50:56:02:01:56</rasd:Address>
83
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
84
- <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
85
- <rasd:Connection vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="NONE">none</rasd:Connection>
86
- <rasd:Description>VMXNET3 ethernet adapter</rasd:Description>
87
- <rasd:ElementName>Network adapter 0</rasd:ElementName>
88
- <rasd:InstanceID>1</rasd:InstanceID>
89
- <rasd:ResourceSubType>VMXNET3</rasd:ResourceSubType>
90
- <rasd:ResourceType>10</rasd:ResourceType>
91
- </ovf:Item>
92
- <ovf:Item>
93
- <rasd:Address>0</rasd:Address>
94
- <rasd:Description>SCSI Controller</rasd:Description>
95
- <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
96
- <rasd:InstanceID>%s</rasd:InstanceID>
97
- <rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
98
- <rasd:ResourceType>6</rasd:ResourceType>
99
- </ovf:Item>
100
- <ovf:Item>
101
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
102
- <rasd:Description>Hard disk</rasd:Description>
103
- <rasd:ElementName>Hard disk 1</rasd:ElementName>
104
- <rasd:HostResource vcloud:capacity="200" vcloud:busSubType="lsilogic" vcloud:busType="6"/>
105
- <rasd:InstanceID>2000</rasd:InstanceID>
106
- <rasd:Parent>2</rasd:Parent>
107
- <rasd:ResourceType>17</rasd:ResourceType>
108
- </ovf:Item>
109
- <ovf:Item>
110
- <rasd:Address>0</rasd:Address>
111
- <rasd:Description>IDE Controller</rasd:Description>
112
- <rasd:ElementName>IDE Controller 0</rasd:ElementName>
113
- <rasd:InstanceID>3</rasd:InstanceID>
114
- <rasd:ResourceType>5</rasd:ResourceType>
115
- </ovf:Item>
116
- <ovf:Item>
117
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
118
- <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
119
- <rasd:Description>CD/DVD Drive</rasd:Description>
120
- <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
121
- <rasd:HostResource/>
122
- <rasd:InstanceID>3000</rasd:InstanceID>
123
- <rasd:Parent>3</rasd:Parent>
124
- <rasd:ResourceType>15</rasd:ResourceType>
125
- </ovf:Item>
126
- <ovf:Item>
127
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
128
- <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
129
- <rasd:Description>Floppy Drive</rasd:Description>
130
- <rasd:ElementName>Floppy Drive 1</rasd:ElementName>
131
- <rasd:HostResource/>
132
- <rasd:InstanceID>8000</rasd:InstanceID>
133
- <rasd:ResourceType>14</rasd:ResourceType>
134
- </ovf:Item>
135
- <ovf:Item vcloud:href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
136
- <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
137
- <rasd:Description>Number of Virtual CPUs</rasd:Description>
138
- <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
139
- <rasd:InstanceID>4</rasd:InstanceID>
140
- <rasd:Reservation>0</rasd:Reservation>
141
- <rasd:ResourceType>3</rasd:ResourceType>
142
- <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
143
- <rasd:Weight>0</rasd:Weight>
144
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu"/>
145
- </ovf:Item>
146
- <ovf:Item vcloud:href="%s/api/vApp/vm-%s/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
147
- <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
148
- <rasd:Description>Memory Size</rasd:Description>
149
- <rasd:ElementName>32 MB of memory</rasd:ElementName>
150
- <rasd:InstanceID>5</rasd:InstanceID>
151
- <rasd:Reservation>0</rasd:Reservation>
152
- <rasd:ResourceType>4</rasd:ResourceType>
153
- <rasd:VirtualQuantity>32</rasd:VirtualQuantity>
154
- <rasd:Weight>0</rasd:Weight>
155
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/memory"/>
156
- </ovf:Item>
157
- <Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/"/>
158
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu"/>
159
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu"/>
160
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/memory"/>
161
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/memory"/>
162
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/disks"/>
163
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/disks"/>
164
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/media"/>
165
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/networkCards"/>
166
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/networkCards"/>
167
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/serialPorts"/>
168
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/serialPorts"/>
169
- </ovf:VirtualHardwareSection>
170
- <ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="93" vcloud:href="%s/api/vApp/vm-%s/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="ubuntuGuest">
171
- <ovf:Info>Specifies the operating system installed</ovf:Info>
172
- <ovf:Description>Ubuntu Linux (32-bit)</ovf:Description>
173
- <Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="%s/api/vApp/vm-%s/operatingSystemSection/"/>
174
- </ovf:OperatingSystemSection>
175
- <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="%s" ovf:required="false">
176
- <ovf:Info>Specifies the available VM network connections</ovf:Info>
177
- <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
178
- <NetworkConnection network="none" needsCustomization="true">
179
- <NetworkConnectionIndex>0</NetworkConnectionIndex>
180
- <IsConnected>false</IsConnected>
181
- <MACAddress>00:50:56:02:01:56</MACAddress>
182
- <IpAddressAllocationMode>NONE</IpAddressAllocationMode>
183
- </NetworkConnection>
184
- <Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="%s"/>
185
- </NetworkConnectionSection>
186
- <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="%s/api/vApp/vm-%s/guestCustomizationSection/" ovf:required="false">
187
- <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
188
- <Enabled>false</Enabled>
189
- <ChangeSid>false</ChangeSid>
190
- <VirtualMachineId>%s</VirtualMachineId>
191
- <JoinDomainEnabled>false</JoinDomainEnabled>
192
- <UseOrgSettings>false</UseOrgSettings>
193
- <AdminPasswordEnabled>true</AdminPasswordEnabled>
194
- <AdminPasswordAuto>true</AdminPasswordAuto>
195
- <ResetPasswordRequired>false</ResetPasswordRequired>
196
- <ComputerName>vm1-001</ComputerName>
197
- <Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="%s/api/vApp/vm-%s/guestCustomizationSection/"/>
198
- </GuestCustomizationSection>
199
- <ovf:ProductSection ovf:instance="" ovf:class="" ovf:required="true">
200
- <ovf:Info>Information about the installed software</ovf:Info>
201
- <ovf:Product>UnOS</ovf:Product>
202
- </ovf:ProductSection>
203
- <RuntimeInfoSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vApp/vm-%s/runtimeInfoSection" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
204
- <ovf:Info>Specifies Runtime info</ovf:Info>
205
- </RuntimeInfoSection>
206
- <VAppScopedLocalId>vm1</VAppScopedLocalId>
207
- </Vm>
208
- </Children>
209
- </VApp>
@@ -1,5 +0,0 @@
1
- <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-08-18T13:29:19.328-07:00" operationName="vdcDeleteTemplate" operation="Deleting Virtual Application Template (%s)" expiryTime="2011-11-16T13:29:19.328-08:00" name="task" id="urn:vcloud:task:%s" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 %s/api/v1.5/schema/master.xsd">
2
- <Owner type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="" href="%s/api/vAppTemplate/vappTemplate-6ce96611-43fa-4efd-8571-2804447a21c4"/>
3
- <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
4
- <Organization type="application/vnd.vmware.vcloud.org+xml" name="vcap" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
5
- </Task>
@@ -1,6 +0,0 @@
1
- <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="running" startTime="2011-08-18T13:29:19.328-07:00" operationName="vdcDeleteTemplate" operation="Deleting Virtual Application Template (%s)" expiryTime="2011-11-16T13:29:19.328-08:00" name="task" id="urn:vcloud:task:%s" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 %s/api/v1.5/schema/master.xsd">
2
- <Link rel="task:cancel" href="%s/api/task/%s/action/cancel"/>
3
- <Owner type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="" href="%s/api/vAppTemplate/vappTemplate-6ce96611-43fa-4efd-8571-2804447a21c4"/>
4
- <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
5
- <Organization type="application/vnd.vmware.vcloud.org+xml" name="vcap" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
6
- </Task>
@@ -1,36 +0,0 @@
1
- <NetworkConfigSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s" ovf:required="false">
2
- <ovf:Info>The configuration parameters for logical networks</ovf:Info>
3
- <Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s"/>
4
- <NetworkConfig networkName="none">
5
- <Description>This is a special place-holder used for disconnected network interfaces.</Description>
6
- <Configuration>
7
- <IpScope>
8
- <IsInherited>false</IsInherited>
9
- <Gateway>196.254.254.254</Gateway>
10
- <Netmask>255.255.0.0</Netmask>
11
- <Dns1>196.254.254.254</Dns1>
12
- </IpScope>
13
- <FenceMode>isolated</FenceMode>
14
- </Configuration>
15
- <IsDeployed>false</IsDeployed>
16
- </NetworkConfig>
17
- <NetworkConfig networkName="%s">
18
- <Description/>
19
- <Configuration>
20
- <IpScopes>
21
- <IpScope>
22
- <IsInherited>true</IsInherited>
23
- <Gateway>192.168.1.1</Gateway>
24
- <Netmask>255.255.255.0</Netmask>
25
- <IpRanges>
26
- <IpRange>
27
- <StartAddress>192.168.1.2</StartAddress>
28
- <EndAddress>192.168.1.100</EndAddress>
29
- </IpRange>
30
- </IpRanges>
31
- </IpScope>
32
- </IpScopes>
33
- <ParentNetwork type="application/vnd.vmware.vcloud.network+xml" name="%s" href="%s"/>
34
- <FenceMode>bridged</FenceMode>
35
- </Configuration>
36
- </NetworkConfig></NetworkConfigSection>
@@ -1,6 +0,0 @@
1
- <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-09-14T14:07:14.185-07:00" operationName="vdcUpdateVappNetworkSection" operation="Updating Virtual Application %s(%s)" expiryTime="2011-12-13T14:07:14.185-08:00" name="task" id="urn:vcloud:task:23e5280c-2a91-4a8c-a136-9822ba33f34f" type="application/vnd.vmware.vcloud.task+xml" href="%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
- <Link rel="task:cancel" href="%s/api/task/23e5280c-2a91-4a8c-a136-9822ba33f34f/action/cancel"/>
3
- <Owner type="application/vnd.vmware.vcloud.vApp+xml" name="test17_3_10" href="%s/api/vApp/vapp-53599c71-4d39-49ad-878f-45e43ecaa7c8"/>
4
- <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
5
- <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
6
- </Task>
@@ -1,6 +0,0 @@
1
- <NetworkConfigSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s" ovf:required="false">
2
- <ovf:Info>The configuration parameters for logical networks</ovf:Info>
3
- <Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s"/>
4
-
5
-
6
- </NetworkConfigSection>
@@ -1,17 +0,0 @@
1
- <NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s" ovf:required="false">
2
- <ovf:Info>The configuration parameters for logical networks</ovf:Info>
3
- <Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s"/>
4
- <NetworkConfig networkName="none">
5
- <Description>This is a special place-holder used for disconnected network interfaces.</Description>
6
- <Configuration>
7
- <IpScope>
8
- <IsInherited>false</IsInherited>
9
- <Gateway>196.254.254.254</Gateway>
10
- <Netmask>255.255.0.0</Netmask>
11
- <Dns1>196.254.254.254</Dns1>
12
- </IpScope>
13
- <FenceMode>isolated</FenceMode>
14
- </Configuration>
15
- <IsDeployed>false</IsDeployed>
16
- </NetworkConfig>
17
- </NetworkConfigSection>
@@ -1,206 +0,0 @@
1
- <VApp xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" deployed="false" status="8" name="%s" id="urn:vcloud:vapp:%s" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="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://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.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">
2
- <Link rel="power:powerOn" href="%s"/>
3
- <Link rel="power:powerOff" href="%s"/>
4
- <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="%s"/>
5
- <Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="%s/api/vApp/vapp-%s/action/deploy"/>
6
- <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="%s/api/vApp/vapp-%s/controlAccess/"/>
7
- <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="%s/api/vApp/vapp-%s/action/controlAccess"/>
8
- <Link rel="recompose" type="application/vnd.vmware.vcloud.recomposeVAppParams+xml" href="%s/api/vApp/vapp-%s/action/recomposeVApp"/>
9
- <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/a974dae0-d10c-4f7c-9f4f-4bdaf7826a3a"/>
10
- <Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s"/>
11
- <Link rel="remove" href="%s/api/vApp/vapp-%s"/>
12
- <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/vApp/vapp-%s/owner"/>
13
- <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vApp/vapp-%s/metadata"/>
14
- <Description>test</Description>
15
- <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vApp/vapp-%s/leaseSettingsSection/" ovf:required="false">
16
- <ovf:Info>Lease settings section</ovf:Info>
17
- <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vApp/vapp-%s/leaseSettingsSection/"/>
18
- <DeploymentLeaseInSeconds>604800</DeploymentLeaseInSeconds>
19
- <StorageLeaseInSeconds>2592000</StorageLeaseInSeconds>
20
- <StorageLeaseExpiration>2011-09-28T11:21:35.767-07:00</StorageLeaseExpiration>
21
- </LeaseSettingsSection>
22
- <ovf:StartupSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vApp/vapp-%s/startupSection/" vcloud:type="application/vnd.vmware.vcloud.startupSection+xml">
23
- <ovf:Info>VApp startup section</ovf:Info>
24
- <ovf:Item ovf:stopDelay="120" ovf:stopAction="powerOff" ovf:startDelay="120" ovf:startAction="powerOn" ovf:order="1" ovf:id="vm1"/>
25
- <ovf:Item ovf:stopDelay="120" ovf:stopAction="powerOff" ovf:startDelay="120" ovf:startAction="powerOn" ovf:order="2" ovf:id="vm2"/>
26
- <Link rel="edit" type="application/vnd.vmware.vcloud.startupSection+xml" href="%s/api/vApp/vapp-%s/startupSection/"/>
27
- </ovf:StartupSection>
28
- <ovf:NetworkSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vApp/vapp-%s/networkSection/" vcloud:type="application/vnd.vmware.vcloud.networkSection+xml">
29
- <ovf:Info>The list of logical networks</ovf:Info>
30
- <ovf:Network ovf:name="none">
31
- <ovf:Description>This is a special place-holder used for disconnected network interfaces.</ovf:Description>
32
- </ovf:Network>
33
- </ovf:NetworkSection>
34
- <NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s" ovf:required="false">
35
- <ovf:Info>The configuration parameters for logical networks</ovf:Info>
36
- <Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s"/>
37
- <NetworkConfig networkName="none">
38
- <Description>This is a special place-holder used for disconnected network interfaces.</Description>
39
- <Configuration>
40
- <IpScope>
41
- <IsInherited>false</IsInherited>
42
- <Gateway>196.254.254.254</Gateway>
43
- <Netmask>255.255.0.0</Netmask>
44
- <Dns1>196.254.254.254</Dns1>
45
- </IpScope>
46
- <FenceMode>isolated</FenceMode>
47
- </Configuration>
48
- <IsDeployed>false</IsDeployed>
49
- </NetworkConfig>
50
- </NetworkConfigSection>
51
- <Owner type="application/vnd.vmware.vcloud.owner+xml">
52
- <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
53
- </Owner>
54
- <InMaintenanceMode>false</InMaintenanceMode>
55
- <Children>
56
- <Vm needsCustomization="true" deployed="false" status="8" name="vm1" id="urn:vcloud:vm:%s" type="application/vnd.vmware.vcloud.vm+xml" href="%s">
57
- <Link rel="power:powerOn" href="%s/api/vApp/vm-%s/power/action/powerOn"/>
58
- <Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="%s/api/vApp/vm-%s/action/deploy"/>
59
- <Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="%s/api/vApp/vm-%s"/>
60
- <Link rel="remove" href="%s/api/vApp/vm-%s"/>
61
- <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vApp/vm-%s/metadata"/>
62
- <Link rel="screen:thumbnail" href="%s/api/vApp/vm-%s/screen"/>
63
- <Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="%s"/>
64
- <Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="%s/api/vApp/vm-%s/media/action/ejectMedia"/>
65
- <Link rel="disk:attach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="%s"/>
66
- <Link rel="disk:detach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="%s"/>
67
- <Link rel="upgrade" href="%s/api/vApp/vm-%s/action/upgradeHardwareVersion"/>
68
- <Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s"/>
69
- <Description>A virtual machine</Description>
70
- <ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" ovf:transport="" vcloud:href="%s/api/vApp/vm-%s/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
71
- <ovf:Info>Virtual hardware requirements</ovf:Info>
72
- <ovf:System>
73
- <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
74
- <vssd:InstanceID>0</vssd:InstanceID>
75
- <vssd:VirtualSystemIdentifier>vm1</vssd:VirtualSystemIdentifier>
76
- <vssd:VirtualSystemType>vmx-04</vssd:VirtualSystemType>
77
- </ovf:System>
78
- <ovf:Item>
79
- <rasd:Address>00:50:56:02:01:56</rasd:Address>
80
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
81
- <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
82
- <rasd:Connection vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="NONE">none</rasd:Connection>
83
- <rasd:Description>VMXNET3 ethernet adapter</rasd:Description>
84
- <rasd:ElementName>Network adapter 0</rasd:ElementName>
85
- <rasd:InstanceID>1</rasd:InstanceID>
86
- <rasd:ResourceSubType>VMXNET3</rasd:ResourceSubType>
87
- <rasd:ResourceType>10</rasd:ResourceType>
88
- </ovf:Item>
89
- <ovf:Item>
90
- <rasd:Address>0</rasd:Address>
91
- <rasd:Description>SCSI Controller</rasd:Description>
92
- <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
93
- <rasd:InstanceID>%s</rasd:InstanceID>
94
- <rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
95
- <rasd:ResourceType>6</rasd:ResourceType>
96
- </ovf:Item>
97
- <ovf:Item>
98
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
99
- <rasd:Description>Hard disk</rasd:Description>
100
- <rasd:ElementName>Hard disk 1</rasd:ElementName>
101
- <rasd:HostResource vcloud:capacity="200" vcloud:busSubType="lsilogic" vcloud:busType="6"/>
102
- <rasd:InstanceID>2000</rasd:InstanceID>
103
- <rasd:Parent>2</rasd:Parent>
104
- <rasd:ResourceType>17</rasd:ResourceType>
105
- </ovf:Item>
106
- <ovf:Item>
107
- <rasd:Address>0</rasd:Address>
108
- <rasd:Description>IDE Controller</rasd:Description>
109
- <rasd:ElementName>IDE Controller 0</rasd:ElementName>
110
- <rasd:InstanceID>3</rasd:InstanceID>
111
- <rasd:ResourceType>5</rasd:ResourceType>
112
- </ovf:Item>
113
- <ovf:Item>
114
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
115
- <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
116
- <rasd:Description>CD/DVD Drive</rasd:Description>
117
- <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
118
- <rasd:HostResource/>
119
- <rasd:InstanceID>3000</rasd:InstanceID>
120
- <rasd:Parent>3</rasd:Parent>
121
- <rasd:ResourceType>15</rasd:ResourceType>
122
- </ovf:Item>
123
- <ovf:Item>
124
- <rasd:AddressOnParent>0</rasd:AddressOnParent>
125
- <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
126
- <rasd:Description>Floppy Drive</rasd:Description>
127
- <rasd:ElementName>Floppy Drive 1</rasd:ElementName>
128
- <rasd:HostResource/>
129
- <rasd:InstanceID>8000</rasd:InstanceID>
130
- <rasd:ResourceType>14</rasd:ResourceType>
131
- </ovf:Item>
132
- <ovf:Item vcloud:href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
133
- <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
134
- <rasd:Description>Number of Virtual CPUs</rasd:Description>
135
- <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
136
- <rasd:InstanceID>4</rasd:InstanceID>
137
- <rasd:Reservation>0</rasd:Reservation>
138
- <rasd:ResourceType>3</rasd:ResourceType>
139
- <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
140
- <rasd:Weight>0</rasd:Weight>
141
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu"/>
142
- </ovf:Item>
143
- <ovf:Item vcloud:href="%s/api/vApp/vm-%s/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
144
- <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
145
- <rasd:Description>Memory Size</rasd:Description>
146
- <rasd:ElementName>32 MB of memory</rasd:ElementName>
147
- <rasd:InstanceID>5</rasd:InstanceID>
148
- <rasd:Reservation>0</rasd:Reservation>
149
- <rasd:ResourceType>4</rasd:ResourceType>
150
- <rasd:VirtualQuantity>32</rasd:VirtualQuantity>
151
- <rasd:Weight>0</rasd:Weight>
152
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/memory"/>
153
- </ovf:Item>
154
- <Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/"/>
155
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu"/>
156
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu"/>
157
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/memory"/>
158
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/memory"/>
159
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/disks"/>
160
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/disks"/>
161
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/media"/>
162
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/networkCards"/>
163
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/networkCards"/>
164
- <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/serialPorts"/>
165
- <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/serialPorts"/>
166
- </ovf:VirtualHardwareSection>
167
- <ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="93" vcloud:href="%s/api/vApp/vm-%s/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="ubuntuGuest">
168
- <ovf:Info>Specifies the operating system installed</ovf:Info>
169
- <ovf:Description>Ubuntu Linux (32-bit)</ovf:Description>
170
- <Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="%s/api/vApp/vm-%s/operatingSystemSection/"/>
171
- </ovf:OperatingSystemSection>
172
- <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="%s" ovf:required="false">
173
- <ovf:Info>Specifies the available VM network connections</ovf:Info>
174
- <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
175
- <NetworkConnection network="none" needsCustomization="true">
176
- <NetworkConnectionIndex>0</NetworkConnectionIndex>
177
- <IsConnected>false</IsConnected>
178
- <MACAddress>00:50:56:02:01:56</MACAddress>
179
- <IpAddressAllocationMode>NONE</IpAddressAllocationMode>
180
- </NetworkConnection>
181
- <Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="%s"/>
182
- </NetworkConnectionSection>
183
- <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="%s/api/vApp/vm-%s/guestCustomizationSection/" ovf:required="false">
184
- <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
185
- <Enabled>false</Enabled>
186
- <ChangeSid>false</ChangeSid>
187
- <VirtualMachineId>%s</VirtualMachineId>
188
- <JoinDomainEnabled>false</JoinDomainEnabled>
189
- <UseOrgSettings>false</UseOrgSettings>
190
- <AdminPasswordEnabled>true</AdminPasswordEnabled>
191
- <AdminPasswordAuto>true</AdminPasswordAuto>
192
- <ResetPasswordRequired>false</ResetPasswordRequired>
193
- <ComputerName>vm1-001</ComputerName>
194
- <Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="%s/api/vApp/vm-%s/guestCustomizationSection/"/>
195
- </GuestCustomizationSection>
196
- <ovf:ProductSection ovf:instance="" ovf:class="" ovf:required="true">
197
- <ovf:Info>Information about the installed software</ovf:Info>
198
- <ovf:Product>UnOS</ovf:Product>
199
- </ovf:ProductSection>
200
- <RuntimeInfoSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vApp/vm-%s/runtimeInfoSection" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
201
- <ovf:Info>Specifies Runtime info</ovf:Info>
202
- </RuntimeInfoSection>
203
- <VAppScopedLocalId>vm1</VAppScopedLocalId>
204
- </Vm>
205
- </Children>
206
- </VApp>