opennebula-cli 5.12.13 → 5.13.80.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +5 -5
  2. data/bin/oneacct +5 -14
  3. data/bin/oneacl +4 -15
  4. data/bin/onecluster +6 -17
  5. data/bin/onedatastore +6 -17
  6. data/bin/oneflow +81 -23
  7. data/bin/oneflow-template +51 -27
  8. data/bin/onegroup +6 -17
  9. data/bin/onehook +6 -17
  10. data/bin/onehost +4 -15
  11. data/bin/oneimage +95 -18
  12. data/bin/onemarket +6 -17
  13. data/bin/onemarketapp +113 -20
  14. data/bin/onesecgroup +9 -17
  15. data/bin/oneshowback +14 -20
  16. data/bin/onetemplate +8 -18
  17. data/bin/oneuser +26 -17
  18. data/bin/onevcenter +6 -28
  19. data/bin/onevdc +6 -17
  20. data/bin/onevm +142 -21
  21. data/bin/onevmgroup +9 -17
  22. data/bin/onevnet +4 -15
  23. data/bin/onevntemplate +7 -17
  24. data/bin/onevrouter +6 -17
  25. data/bin/onezone +6 -17
  26. data/lib/cli_helper.rb +7 -10
  27. data/lib/command_parser.rb +1 -1
  28. data/lib/one_helper/oneacct_helper.rb +9 -22
  29. data/lib/one_helper/oneacl_helper.rb +1 -1
  30. data/lib/one_helper/onecluster_helper.rb +1 -1
  31. data/lib/one_helper/onedatastore_helper.rb +11 -1
  32. data/lib/one_helper/oneflow_helper.rb +20 -5
  33. data/lib/one_helper/oneflowtemplate_helper.rb +28 -2
  34. data/lib/one_helper/onegroup_helper.rb +1 -1
  35. data/lib/one_helper/onehook_helper.rb +1 -1
  36. data/lib/one_helper/onehost_helper.rb +1 -5
  37. data/lib/one_helper/oneimage_helper.rb +7 -7
  38. data/lib/one_helper/onemarket_helper.rb +1 -1
  39. data/lib/one_helper/onemarketapp_helper.rb +494 -96
  40. data/lib/one_helper/onequota_helper.rb +1 -1
  41. data/lib/one_helper/onesecgroup_helper.rb +1 -1
  42. data/lib/one_helper/onetemplate_helper.rb +12 -1
  43. data/lib/one_helper/oneuser_helper.rb +11 -3
  44. data/lib/one_helper/onevcenter_helper.rb +176 -146
  45. data/lib/one_helper/onevdc_helper.rb +1 -1
  46. data/lib/one_helper/onevm_helper.rb +9 -9
  47. data/lib/one_helper/onevmgroup_helper.rb +1 -1
  48. data/lib/one_helper/onevnet_helper.rb +1 -1
  49. data/lib/one_helper/onevntemplate_helper.rb +1 -1
  50. data/lib/one_helper/onevrouter_helper.rb +1 -20
  51. data/lib/one_helper/onezone_helper.rb +12 -1
  52. data/lib/one_helper.rb +398 -37
  53. data/share/schemas/xsd/acct.xsd +179 -0
  54. data/share/schemas/xsd/acl_pool.xsd +22 -0
  55. data/share/schemas/xsd/api_info.xsd +43 -0
  56. data/share/schemas/xsd/cluster.xsd +34 -0
  57. data/share/schemas/xsd/cluster_pool.xsd +12 -0
  58. data/share/schemas/xsd/datastore.xsd +67 -0
  59. data/share/schemas/xsd/datastore_pool.xsd +12 -0
  60. data/share/schemas/xsd/document.xsd +42 -0
  61. data/share/schemas/xsd/document_pool.xsd +12 -0
  62. data/share/schemas/xsd/group.xsd +179 -0
  63. data/share/schemas/xsd/group_pool.xsd +194 -0
  64. data/share/schemas/xsd/hook.xsd +59 -0
  65. data/share/schemas/xsd/hook_message_api.xsd +14 -0
  66. data/share/schemas/xsd/hook_message_retry.xsd +12 -0
  67. data/share/schemas/xsd/hook_message_state.xsd +25 -0
  68. data/share/schemas/xsd/hook_pool.xsd +12 -0
  69. data/share/schemas/xsd/host.xsd +164 -0
  70. data/share/schemas/xsd/host_pool.xsd +12 -0
  71. data/share/schemas/xsd/image.xsd +123 -0
  72. data/share/schemas/xsd/image_pool.xsd +12 -0
  73. data/share/schemas/xsd/index.xsd +49 -0
  74. data/share/schemas/xsd/marketplace.xsd +44 -0
  75. data/share/schemas/xsd/marketplace_pool.xsd +12 -0
  76. data/share/schemas/xsd/marketplaceapp.xsd +56 -0
  77. data/share/schemas/xsd/marketplaceapp_pool.xsd +12 -0
  78. data/share/schemas/xsd/opennebula_configuration.xsd +412 -0
  79. data/share/schemas/xsd/raftstatus.xsd +18 -0
  80. data/share/schemas/xsd/security_group.xsd +74 -0
  81. data/share/schemas/xsd/security_group_pool.xsd +12 -0
  82. data/share/schemas/xsd/showback.xsd +29 -0
  83. data/share/schemas/xsd/user.xsd +186 -0
  84. data/share/schemas/xsd/user_pool.xsd +201 -0
  85. data/share/schemas/xsd/vdc.xsd +76 -0
  86. data/share/schemas/xsd/vdc_pool.xsd +12 -0
  87. data/share/schemas/xsd/vm.xsd +251 -0
  88. data/share/schemas/xsd/vm_group.xsd +59 -0
  89. data/share/schemas/xsd/vm_group_pool.xsd +12 -0
  90. data/share/schemas/xsd/vm_pool.xsd +114 -0
  91. data/share/schemas/xsd/vmtemplate.xsd +52 -0
  92. data/share/schemas/xsd/vmtemplate_pool.xsd +12 -0
  93. data/share/schemas/xsd/vnet.xsd +137 -0
  94. data/share/schemas/xsd/vnet_pool.xsd +85 -0
  95. data/share/schemas/xsd/vntemplate.xsd +50 -0
  96. data/share/schemas/xsd/vntemplate_pool.xsd +12 -0
  97. data/share/schemas/xsd/vrouter.xsd +49 -0
  98. data/share/schemas/xsd/vrouter_pool.xsd +12 -0
  99. data/share/schemas/xsd/zone.xsd +40 -0
  100. data/share/schemas/xsd/zone_pool.xsd +36 -0
  101. metadata +92 -30
  102. data/lib/one_helper/oneprovision_helper.rb +0 -362
@@ -0,0 +1,194 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
3
+ targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
4
+ <xs:element name="GROUP_POOL">
5
+ <xs:complexType>
6
+ <xs:sequence maxOccurs="1" minOccurs="1">
7
+ <xs:choice maxOccurs="unbounded" minOccurs="0">
8
+ <xs:element name="GROUP" maxOccurs="unbounded" minOccurs="0">
9
+ <xs:complexType>
10
+ <xs:sequence>
11
+ <xs:element name="ID" type="xs:integer"/>
12
+ <xs:element name="NAME" type="xs:string"/>
13
+ <xs:element name="TEMPLATE" type="xs:anyType"/>
14
+ <xs:element name="USERS">
15
+ <xs:complexType>
16
+ <xs:sequence>
17
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
18
+ </xs:sequence>
19
+ </xs:complexType>
20
+ </xs:element>
21
+ <xs:element name="ADMINS">
22
+ <xs:complexType>
23
+ <xs:sequence>
24
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
25
+ </xs:sequence>
26
+ </xs:complexType>
27
+ </xs:element>
28
+ </xs:sequence>
29
+ </xs:complexType>
30
+ </xs:element>
31
+ <xs:element name="QUOTAS" maxOccurs="unbounded" minOccurs="0">
32
+ <xs:complexType>
33
+ <xs:sequence>
34
+ <xs:element name="ID" type="xs:integer"/>
35
+ <xs:element name="DATASTORE_QUOTA" minOccurs="0" maxOccurs="1">
36
+ <xs:complexType>
37
+ <xs:sequence>
38
+ <xs:element name="DATASTORE" minOccurs="0" maxOccurs="unbounded">
39
+ <xs:complexType>
40
+ <xs:sequence>
41
+ <xs:element name="ID" type="xs:string"/>
42
+ <xs:element name="IMAGES" type="xs:string"/>
43
+ <xs:element name="IMAGES_USED" type="xs:string"/>
44
+ <xs:element name="SIZE" type="xs:string"/>
45
+ <xs:element name="SIZE_USED" type="xs:string"/>
46
+ </xs:sequence>
47
+ </xs:complexType>
48
+ </xs:element>
49
+ </xs:sequence>
50
+ </xs:complexType>
51
+ </xs:element>
52
+ <xs:element name="NETWORK_QUOTA" minOccurs="0" maxOccurs="1">
53
+ <xs:complexType>
54
+ <xs:sequence>
55
+ <xs:element name="NETWORK" minOccurs="0" maxOccurs="unbounded">
56
+ <xs:complexType>
57
+ <xs:sequence>
58
+ <xs:element name="ID" type="xs:string"/>
59
+ <xs:element name="LEASES" type="xs:string"/>
60
+ <xs:element name="LEASES_USED" type="xs:string"/>
61
+ </xs:sequence>
62
+ </xs:complexType>
63
+ </xs:element>
64
+ </xs:sequence>
65
+ </xs:complexType>
66
+ </xs:element>
67
+ <xs:element name="VM_QUOTA" minOccurs="0" maxOccurs="1">
68
+ <xs:complexType>
69
+ <xs:sequence>
70
+ <xs:element name="VM" minOccurs="0" maxOccurs="1">
71
+ <xs:complexType>
72
+ <xs:sequence>
73
+ <xs:element name="CPU" type="xs:string"/>
74
+ <xs:element name="CPU_USED" type="xs:string"/>
75
+ <xs:element name="MEMORY" type="xs:string"/>
76
+ <xs:element name="MEMORY_USED" type="xs:string"/>
77
+ <xs:element name="RUNNING_CPU" type="xs:string"/>
78
+ <xs:element name="RUNNING_CPU_USED" type="xs:string"/>
79
+ <xs:element name="RUNNING_MEMORY" type="xs:string"/>
80
+ <xs:element name="RUNNING_MEMORY_USED" type="xs:string"/>
81
+ <xs:element name="RUNNING_VMS" type="xs:string"/>
82
+ <xs:element name="RUNNING_VMS_USED" type="xs:string"/>
83
+ <xs:element name="SYSTEM_DISK_SIZE" type="xs:string"/>
84
+ <xs:element name="SYSTEM_DISK_SIZE_USED" type="xs:string"/>
85
+ <xs:element name="VMS" type="xs:string"/>
86
+ <xs:element name="VMS_USED" type="xs:string"/>
87
+ </xs:sequence>
88
+ </xs:complexType>
89
+ </xs:element>
90
+ </xs:sequence>
91
+ </xs:complexType>
92
+ </xs:element>
93
+ <xs:element name="IMAGE_QUOTA" minOccurs="0" maxOccurs="1">
94
+ <xs:complexType>
95
+ <xs:sequence>
96
+ <xs:element name="IMAGE" minOccurs="0" maxOccurs="unbounded">
97
+ <xs:complexType>
98
+ <xs:sequence>
99
+ <xs:element name="ID" type="xs:string"/>
100
+ <xs:element name="RVMS" type="xs:string"/>
101
+ <xs:element name="RVMS_USED" type="xs:string"/>
102
+ </xs:sequence>
103
+ </xs:complexType>
104
+ </xs:element>
105
+ </xs:sequence>
106
+ </xs:complexType>
107
+ </xs:element>
108
+ </xs:sequence>
109
+ </xs:complexType>
110
+ </xs:element>
111
+ </xs:choice>
112
+ <xs:element name="DEFAULT_GROUP_QUOTAS" minOccurs="1" maxOccurs="1">
113
+ <xs:complexType>
114
+ <xs:sequence>
115
+ <xs:element name="DATASTORE_QUOTA" minOccurs="0" maxOccurs="1">
116
+ <xs:complexType>
117
+ <xs:sequence>
118
+ <xs:element name="DATASTORE" minOccurs="0" maxOccurs="unbounded">
119
+ <xs:complexType>
120
+ <xs:sequence>
121
+ <xs:element name="ID" type="xs:string"/>
122
+ <xs:element name="IMAGES" type="xs:string"/>
123
+ <xs:element name="IMAGES_USED" type="xs:string"/>
124
+ <xs:element name="SIZE" type="xs:string"/>
125
+ <xs:element name="SIZE_USED" type="xs:string"/>
126
+ </xs:sequence>
127
+ </xs:complexType>
128
+ </xs:element>
129
+ </xs:sequence>
130
+ </xs:complexType>
131
+ </xs:element>
132
+ <xs:element name="NETWORK_QUOTA" minOccurs="0" maxOccurs="1">
133
+ <xs:complexType>
134
+ <xs:sequence>
135
+ <xs:element name="NETWORK" minOccurs="0" maxOccurs="unbounded">
136
+ <xs:complexType>
137
+ <xs:sequence>
138
+ <xs:element name="ID" type="xs:string"/>
139
+ <xs:element name="LEASES" type="xs:string"/>
140
+ <xs:element name="LEASES_USED" type="xs:string"/>
141
+ </xs:sequence>
142
+ </xs:complexType>
143
+ </xs:element>
144
+ </xs:sequence>
145
+ </xs:complexType>
146
+ </xs:element>
147
+ <xs:element name="VM_QUOTA" minOccurs="0" maxOccurs="1">
148
+ <xs:complexType>
149
+ <xs:sequence>
150
+ <xs:element name="VM" minOccurs="0" maxOccurs="1">
151
+ <xs:complexType>
152
+ <xs:sequence>
153
+ <xs:element name="CPU" type="xs:string"/>
154
+ <xs:element name="CPU_USED" type="xs:string"/>
155
+ <xs:element name="MEMORY" type="xs:string"/>
156
+ <xs:element name="MEMORY_USED" type="xs:string"/>
157
+ <xs:element name="RUNNING_CPU" type="xs:string"/>
158
+ <xs:element name="RUNNING_CPU_USED" type="xs:string"/>
159
+ <xs:element name="RUNNING_MEMORY" type="xs:string"/>
160
+ <xs:element name="RUNNING_MEMORY_USED" type="xs:string"/>
161
+ <xs:element name="RUNNING_VMS" type="xs:string"/>
162
+ <xs:element name="RUNNING_VMS_USED" type="xs:string"/>
163
+ <xs:element name="SYSTEM_DISK_SIZE" type="xs:string"/>
164
+ <xs:element name="SYSTEM_DISK_SIZE_USED" type="xs:string"/>
165
+ <xs:element name="VMS" type="xs:string"/>
166
+ <xs:element name="VMS_USED" type="xs:string"/>
167
+ </xs:sequence>
168
+ </xs:complexType>
169
+ </xs:element>
170
+ </xs:sequence>
171
+ </xs:complexType>
172
+ </xs:element>
173
+ <xs:element name="IMAGE_QUOTA" minOccurs="0" maxOccurs="1">
174
+ <xs:complexType>
175
+ <xs:sequence>
176
+ <xs:element name="IMAGE" minOccurs="0" maxOccurs="unbounded">
177
+ <xs:complexType>
178
+ <xs:sequence>
179
+ <xs:element name="ID" type="xs:string"/>
180
+ <xs:element name="RVMS" type="xs:string"/>
181
+ <xs:element name="RVMS_USED" type="xs:string"/>
182
+ </xs:sequence>
183
+ </xs:complexType>
184
+ </xs:element>
185
+ </xs:sequence>
186
+ </xs:complexType>
187
+ </xs:element>
188
+ </xs:sequence>
189
+ </xs:complexType>
190
+ </xs:element>
191
+ </xs:sequence>
192
+ </xs:complexType>
193
+ </xs:element>
194
+ </xs:schema>
@@ -0,0 +1,59 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://opennebula.org/XMLSchema" elementFormDefault="qualified" targetNamespace="http://opennebula.org/XMLSchema">
3
+ <xs:element name="HOOK">
4
+ <xs:complexType>
5
+ <xs:sequence>
6
+ <xs:element name="ID" type="xs:integer"/>
7
+ <xs:element name="NAME" type="xs:string"/>
8
+ <xs:element name="TYPE" type="xs:string"/>
9
+ <xs:element name="TEMPLATE">
10
+ <xs:complexType>
11
+ <xs:sequence>
12
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
13
+ <xs:element name="ARGUMENTS" type="xs:string" minOccurs="0" maxOccurs="1"/>
14
+ <xs:element name="ARGUMENTS_STDIN" type="xs:string" minOccurs="0" maxOccurs="1"/>
15
+ <xs:element name="CALL" type="xs:string" minOccurs="0" maxOccurs="1"/>
16
+ <xs:element name="COMMAND" type="xs:string"/>
17
+ <xs:element name="REMOTE" type="xs:string" minOccurs="0" maxOccurs="1"/>
18
+ <xs:element name="RESOURCE" type="xs:string" minOccurs="0" maxOccurs="1"/>
19
+ <xs:element name="STATE" type="xs:string" minOccurs="0" maxOccurs="1"/>
20
+ <xs:element name="LCM_STATE" type="xs:string" minOccurs="0" maxOccurs="1"/>
21
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
22
+ </xs:sequence>
23
+ </xs:complexType>
24
+ </xs:element>
25
+ <!-- This info is not included in one.hookpool.info it's only include in one.hook.info -->
26
+ <xs:element name="HOOKLOG" minOccurs="0" maxOccurs="1">
27
+ <xs:complexType>
28
+ <xs:sequence>
29
+ <xs:element name="HOOK_EXECUTION_RECORD" minOccurs="0" maxOccurs="unbounded">
30
+ <xs:complexType>
31
+ <xs:sequence>
32
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
33
+ <xs:element name="HOOK_ID" type="xs:integer"/>
34
+ <xs:element name="EXECUTION_ID" type="xs:integer"/>
35
+ <xs:element name="TIMESTAMP" type="xs:integer"/>
36
+ <xs:element name="ARGUMENTS" type="xs:string"/>
37
+ <xs:element name="EXECUTION_RESULT">
38
+ <xs:complexType>
39
+ <xs:sequence>
40
+ <xs:element name="COMMAND" type="xs:string"/>
41
+ <xs:element name="STDOUT" type="xs:string"/>
42
+ <xs:element name="STDERR" type="xs:string"/>
43
+ <xs:element name="CODE" type="xs:string"/>
44
+ </xs:sequence>
45
+ </xs:complexType>
46
+ </xs:element>
47
+ <xs:element name="REMOTE_HOST" type="xs:string" minOccurs="0" maxOccurs="1"/>
48
+ <xs:element name="RETRY" type="xs:string" minOccurs="0" maxOccurs="1"/>
49
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
50
+ </xs:sequence>
51
+ </xs:complexType>
52
+ </xs:element>
53
+ </xs:sequence>
54
+ </xs:complexType>
55
+ </xs:element>
56
+ </xs:sequence>
57
+ </xs:complexType>
58
+ </xs:element>
59
+ </xs:schema>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- This schema is followd by the EVENT API message sent by the Hook Manager -->
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://opennebula.org/XMLSchema" elementFormDefault="qualified" targetNamespace="http://opennebula.org/XMLSchema">
4
+ <xs:element name="HOOK_MESSAGE">
5
+ <xs:complexType>
6
+ <xs:sequence>
7
+ <xs:element name="HOOK_TYPE" type="xs:string" fixed="API"/>
8
+ <xs:element name="CALL" type="xs:string"/>
9
+ <!-- CALL_INFO type is defined in call_info.xsd -->
10
+ <xs:element ref="CALL_INFO" maxOccurs="unbounded" minOccurs="0"/>
11
+ </xs:sequence>
12
+ </xs:complexType>
13
+ </xs:element>
14
+ </xs:schema>
@@ -0,0 +1,12 @@
1
+ <!-- This schema is followd by the EVENT API message sent by the Hook Manager -->
2
+ <?xml version="1.0" encoding="UTF-8"?>
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://opennebula.org/XMLSchema" elementFormDefault="qualified" targetNamespace="http://opennebula.org/XMLSchema">
4
+ <xs:element name="HOOK_MESSAGE">
5
+ <xs:complexType>
6
+ <xs:sequence>
7
+ <xs:element name="ARGUMENTS" type="xs:string"/>
8
+ <xs:element name="HOOK_ID" type="xs:integer"/>
9
+ </xs:sequence>
10
+ </xs:complexType>
11
+ </xs:element>
12
+ </xs:schema>
@@ -0,0 +1,25 @@
1
+ <!-- This schema is followd by the EVENT API message sent by the Hook Manager -->
2
+ <?xml version="1.0" encoding="UTF-8"?>
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://opennebula.org/XMLSchema" elementFormDefault="qualified" targetNamespace="http://opennebula.org/XMLSchema">
4
+ <xs:element name="HOOK_MESSAGE">
5
+ <xs:complexType>
6
+ <xs:sequence>
7
+ <xs:element name="HOOK_TYPE" type="xs:string" fixed="STATE"/>
8
+ <xs:element name="HOOK_OBJECT" type="xs:string">
9
+ <xs:simpleType>
10
+ <xs:restriction base="xs:string">
11
+ <xs:enumeration value="VM"/>
12
+ <xs:enumeration value="HOST"/>
13
+ </xs:restriction>
14
+ </xs:simpleType>
15
+ </xs:element>
16
+ <xs:element name="STATE" type="xs:string"/>
17
+ <xs:element name="LCM_STATE" type="xs:string" maxOccurs="1" minOccurs="0"/>
18
+ <xs:element name="REMOTE_HOST" type="xs:string" maxOccurs="1" minOccurs="0"/>
19
+ <!-- The template of the resource (VM or Host) is inlcuded here -->
20
+ <xs:element ref="HOST" maxOccurs="1" minOccurs="0"/>
21
+ <xs:element ref="VM" maxOccurs="1" minOccurs="0"/>
22
+ </xs:sequence>
23
+ </xs:complexType>
24
+ </xs:element>
25
+ </xs:schema>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
3
+ targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
4
+ <xs:include schemaLocation="hook.xsd"/>
5
+ <xs:element name="HOOK_POOL">
6
+ <xs:complexType>
7
+ <xs:sequence maxOccurs="1" minOccurs="1">
8
+ <xs:element ref="HOOK" maxOccurs="unbounded" minOccurs="0"/>
9
+ </xs:sequence>
10
+ </xs:complexType>
11
+ </xs:element>
12
+ </xs:schema>
@@ -0,0 +1,164 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://opennebula.org/XMLSchema" elementFormDefault="qualified" targetNamespace="http://opennebula.org/XMLSchema">
3
+ <xs:element name="HOST">
4
+ <xs:complexType>
5
+ <xs:sequence>
6
+ <xs:element name="ID" type="xs:integer"/>
7
+ <xs:element name="NAME" type="xs:string"/>
8
+ <!-- STATE values
9
+ INIT = 0 Initial state for enabled hosts
10
+ MONITORING_MONITORED = 1 Monitoring the host (from monitored)
11
+ MONITORED = 2 The host has been successfully monitored
12
+ ERROR = 3 An error ocurrer while monitoring the host
13
+ DISABLED = 4 The host is disabled
14
+ MONITORING_ERROR = 5 Monitoring the host (from error)
15
+ MONITORING_INIT = 6 Monitoring the host (from init)
16
+ MONITORING_DISABLED = 7 Monitoring the host (from disabled)
17
+ OFFLINE = 8 The host is totally offline
18
+ -->
19
+ <xs:element name="STATE" type="xs:integer"/>
20
+ <xs:element name="PREV_STATE" type="xs:integer"/>
21
+ <xs:element name="IM_MAD" type="xs:string"/>
22
+ <xs:element name="VM_MAD" type="xs:string"/>
23
+ <xs:element name="CLUSTER_ID" type="xs:integer"/>
24
+ <xs:element name="CLUSTER" type="xs:string"/>
25
+ <xs:element name="HOST_SHARE">
26
+ <xs:complexType>
27
+ <xs:sequence>
28
+ <xs:element name="MEM_USAGE" type="xs:integer"/>
29
+ <!-- ^^ KB, Usage of MEMORY calculated by ONE as the summatory MEMORY requested by all VMs running in the host -->
30
+ <xs:element name="CPU_USAGE" type="xs:integer"/>
31
+ <!-- ^^ Percentage, Usage of CPU calculated by ONE as the summatory CPU requested by all VMs running in the host -->
32
+ <xs:element name="TOTAL_MEM" type="xs:integer"/>
33
+ <!-- ^^ Maximum memory that could be used for VMs -->
34
+ <xs:element name="TOTAL_CPU" type="xs:integer"/>
35
+ <!-- ^^ Number of CPU’s multiplied by 100. For example, a 16 cores machine will have a value of 1600 -->
36
+ <xs:element name="MAX_MEM" type="xs:integer"/>
37
+ <!-- ^^ KB, Total memory in the host -->
38
+ <xs:element name="MAX_CPU" type="xs:integer"/>
39
+ <!-- ^^ Percentage, Total CPU in the host (# cores * 100) -->
40
+
41
+ <xs:element name="RUNNING_VMS" type="xs:integer"/>
42
+ <xs:element name="VMS_THREAD" type="xs:integer"/>
43
+ <xs:element name="DATASTORES">
44
+ <xs:complexType>
45
+ <xs:all>
46
+ <xs:element name="DISK_USAGE" type="xs:integer"/>
47
+ <xs:element name="FREE_DISK" type="xs:integer"/>
48
+ <xs:element name="MAX_DISK" type="xs:integer"/>
49
+ <xs:element name="USED_DISK" type="xs:integer"/>
50
+ </xs:all>
51
+ </xs:complexType>
52
+ </xs:element>
53
+ <xs:element name="PCI_DEVICES">
54
+ <xs:complexType>
55
+ <xs:sequence>
56
+ <xs:element name="PCI" type="xs:anyType" minOccurs="0" maxOccurs="unbounded"/>
57
+ </xs:sequence>
58
+ </xs:complexType>
59
+ </xs:element>
60
+ <xs:element name="NUMA_NODES">
61
+ <xs:complexType>
62
+ <xs:sequence>
63
+ <xs:element name="NODE" minOccurs="0" maxOccurs="unbounded">
64
+ <xs:complexType>
65
+ <xs:sequence>
66
+ <xs:element name="CORE" minOccurs="0" maxOccurs="unbounded">
67
+ <xs:complexType>
68
+ <xs:all>
69
+ <xs:element name="CPUS" type="xs:string"/>
70
+ <xs:element name="DEDICATED" type="xs:string"/>
71
+ <xs:element name="FREE" type="xs:integer"/>
72
+ <xs:element name="ID" type="xs:integer"/>
73
+ </xs:all>
74
+ </xs:complexType>
75
+ </xs:element>
76
+ <xs:element name="HUGEPAGE" minOccurs="0" maxOccurs="unbounded">
77
+ <xs:complexType>
78
+ <xs:all>
79
+ <xs:element name="FREE" type="xs:integer"/>
80
+ <xs:element name="PAGES" type="xs:integer"/>
81
+ <xs:element name="SIZE" type="xs:integer"/>
82
+ <xs:element name="USAGE" type="xs:integer"/>
83
+ </xs:all>
84
+ </xs:complexType>
85
+ </xs:element>
86
+ <xs:element name="MEMORY">
87
+ <xs:complexType>
88
+ <xs:all>
89
+ <xs:element name="DISTANCE" type="xs:string"/>
90
+ <xs:element name="FREE" type="xs:integer"/>
91
+ <xs:element name="TOTAL" type="xs:integer"/>
92
+ <xs:element name="USAGE" type="xs:integer"/>
93
+ <xs:element name="USED" type="xs:integer"/>
94
+ </xs:all>
95
+ </xs:complexType>
96
+ </xs:element>
97
+ <xs:element name="NODE_ID" type="xs:integer"/>
98
+ </xs:sequence>
99
+ </xs:complexType>
100
+ </xs:element>
101
+ </xs:sequence>
102
+ </xs:complexType>
103
+ </xs:element>
104
+ </xs:sequence>
105
+ </xs:complexType>
106
+ </xs:element>
107
+ <xs:element name="VMS">
108
+ <xs:complexType>
109
+ <xs:sequence>
110
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
111
+ </xs:sequence>
112
+ </xs:complexType>
113
+ </xs:element>
114
+ <xs:element name="TEMPLATE">
115
+ <xs:complexType>
116
+ <xs:sequence>
117
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
118
+ <xs:element name="VCENTER_CCR_REF" type="xs:string" minOccurs="0" maxOccurs="1"/>
119
+ <xs:element name="VCENTER_DS_REF" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
120
+ <xs:element name="VCENTER_HOST" type="xs:string" minOccurs="0" maxOccurs="1"/>
121
+ <xs:element name="VCENTER_INSTANCE_ID" type="xs:string" minOccurs="0" maxOccurs="1"/>
122
+ <xs:element name="VCENTER_NAME" type="xs:string" minOccurs="0" maxOccurs="1"/>
123
+ <xs:element name="VCENTER_PASSWORD" type="xs:string" minOccurs="0" maxOccurs="1"/>
124
+ <xs:element name="VCENTER_RESOURCE_POOL_INFO" minOccurs="0" maxOccurs="unbounded"/>
125
+ <xs:element name="VCENTER_USER" type="xs:string" minOccurs="0" maxOccurs="1"/>
126
+ <xs:element name="VCENTER_VERSION" type="xs:string" minOccurs="0" maxOccurs="1"/>
127
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
128
+ </xs:sequence>
129
+ </xs:complexType>
130
+ </xs:element>
131
+ <xs:element name="MONITORING">
132
+ <xs:complexType>
133
+ <xs:sequence>
134
+ <xs:element name="TIMESTAMP" type="xs:integer" minOccurs="0"/>
135
+ <xs:element name="ID" type="xs:integer" minOccurs="0"/>
136
+ <xs:element name="CAPACITY" minOccurs="0">
137
+ <xs:complexType>
138
+ <xs:sequence>
139
+ <xs:element name="FREE_CPU" type="xs:integer"/>
140
+ <!-- ^^ Percentage, Free CPU as returned by the probes -->
141
+ <xs:element name="FREE_MEMORY" type="xs:integer"/>
142
+ <!-- ^^ KB, Free MEMORY returned by the probes -->
143
+ <xs:element name="USED_CPU" type="xs:integer"/>
144
+ <!-- ^^ Percentage of CPU used by all host processes (including VMs) over a total of # cores * 100 -->
145
+ <xs:element name="USED_MEMORY" type="xs:integer"/>
146
+ <!-- ^^ KB, Memory used by all host processes (including VMs) over a total of MAX_MEM -->
147
+ </xs:sequence>
148
+ </xs:complexType>
149
+ </xs:element>
150
+ <xs:element name="SYSTEM" minOccurs="0">
151
+ <xs:complexType>
152
+ <xs:sequence>
153
+ <xs:element name="NETRX" type="xs:integer" minOccurs="0"/>
154
+ <xs:element name="NETTX" type="xs:integer" minOccurs="0"/>
155
+ </xs:sequence>
156
+ </xs:complexType>
157
+ </xs:element>
158
+ </xs:sequence>
159
+ </xs:complexType>
160
+ </xs:element>
161
+ </xs:sequence>
162
+ </xs:complexType>
163
+ </xs:element>
164
+ </xs:schema>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
3
+ targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
4
+ <xs:include schemaLocation="host.xsd"/>
5
+ <xs:element name="HOST_POOL">
6
+ <xs:complexType>
7
+ <xs:sequence maxOccurs="1" minOccurs="1">
8
+ <xs:element ref="HOST" maxOccurs="unbounded" minOccurs="0"/>
9
+ </xs:sequence>
10
+ </xs:complexType>
11
+ </xs:element>
12
+ </xs:schema>
@@ -0,0 +1,123 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://opennebula.org/XMLSchema" elementFormDefault="qualified" targetNamespace="http://opennebula.org/XMLSchema">
3
+ <xs:element name="IMAGE">
4
+ <xs:complexType>
5
+ <xs:sequence>
6
+ <xs:element name="ID" type="xs:integer"/>
7
+ <xs:element name="UID" type="xs:integer"/>
8
+ <xs:element name="GID" type="xs:integer"/>
9
+ <xs:element name="UNAME" type="xs:string"/>
10
+ <xs:element name="GNAME" type="xs:string"/>
11
+ <xs:element name="NAME" type="xs:string"/>
12
+ <xs:element name="LOCK" minOccurs="0" maxOccurs="1">
13
+ <xs:complexType>
14
+ <xs:sequence>
15
+ <xs:element name="LOCKED" type="xs:integer"/>
16
+ <xs:element name="OWNER" type="xs:integer"/>
17
+ <xs:element name="TIME" type="xs:integer"/>
18
+ <xs:element name="REQ_ID" type="xs:integer"/>
19
+ </xs:sequence>
20
+ </xs:complexType>
21
+ </xs:element>
22
+ <xs:element name="PERMISSIONS" minOccurs="0" maxOccurs="1">
23
+ <xs:complexType>
24
+ <xs:sequence>
25
+ <xs:element name="OWNER_U" type="xs:integer"/>
26
+ <xs:element name="OWNER_M" type="xs:integer"/>
27
+ <xs:element name="OWNER_A" type="xs:integer"/>
28
+ <xs:element name="GROUP_U" type="xs:integer"/>
29
+ <xs:element name="GROUP_M" type="xs:integer"/>
30
+ <xs:element name="GROUP_A" type="xs:integer"/>
31
+ <xs:element name="OTHER_U" type="xs:integer"/>
32
+ <xs:element name="OTHER_M" type="xs:integer"/>
33
+ <xs:element name="OTHER_A" type="xs:integer"/>
34
+ </xs:sequence>
35
+ </xs:complexType>
36
+ </xs:element>
37
+ <xs:element name="TYPE" type="xs:integer"/>
38
+ <xs:element name="DISK_TYPE" type="xs:integer"/>
39
+ <xs:element name="PERSISTENT" type="xs:integer"/>
40
+ <xs:element name="REGTIME" type="xs:integer"/>
41
+ <xs:element name="SOURCE" type="xs:string"/>
42
+ <xs:element name="PATH" type="xs:string"/>
43
+ <xs:element name="FORMAT" type="xs:string"/>
44
+ <xs:element name="FS" type="xs:string"/>
45
+ <xs:element name="SIZE" type="xs:integer"/>
46
+
47
+ <!-- STATE values,
48
+ INIT = 0, Initialization state
49
+ READY = 1, Image ready to use
50
+ USED = 2, Image in use
51
+ DISABLED = 3, Image can not be instantiated by a VM
52
+ LOCKED = 4, FS operation for the Image in process
53
+ ERROR = 5, Error state the operation FAILED
54
+ CLONE = 6, Image is being cloned
55
+ DELETE = 7, DS is deleting the image
56
+ USED_PERS = 8, Image is in use and persistent
57
+ LOCKED_USED = 9, FS operation in progress, VMs waiting
58
+ LOCKED_USED_PERS = 10 FS operation in progress, VMs waiting. Persistent
59
+ -->
60
+ <xs:element name="STATE" type="xs:integer"/>
61
+ <xs:element name="PREV_STATE" type="xs:integer"/>
62
+ <xs:element name="RUNNING_VMS" type="xs:integer"/>
63
+ <xs:element name="CLONING_OPS" type="xs:integer"/>
64
+ <xs:element name="CLONING_ID" type="xs:integer"/>
65
+ <xs:element name="TARGET_SNAPSHOT" type="xs:integer"/>
66
+ <xs:element name="DATASTORE_ID" type="xs:integer"/>
67
+ <xs:element name="DATASTORE" type="xs:string"/>
68
+ <xs:element name="VMS">
69
+ <xs:complexType>
70
+ <xs:sequence>
71
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
72
+ </xs:sequence>
73
+ </xs:complexType>
74
+ </xs:element>
75
+ <xs:element name="CLONES">
76
+ <xs:complexType>
77
+ <xs:sequence>
78
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
79
+ </xs:sequence>
80
+ </xs:complexType>
81
+ </xs:element>
82
+ <xs:element name="APP_CLONES">
83
+ <xs:complexType>
84
+ <xs:sequence>
85
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
86
+ </xs:sequence>
87
+ </xs:complexType>
88
+ </xs:element>
89
+ <xs:element name="TEMPLATE">
90
+ <xs:complexType>
91
+ <xs:sequence>
92
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
93
+ <xs:element name="VCENTER_IMPORTED" type="xs:string" minOccurs="0" maxOccurs="1"/>
94
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
95
+ </xs:sequence>
96
+ </xs:complexType>
97
+ </xs:element>
98
+ <xs:element name="SNAPSHOTS">
99
+ <xs:complexType>
100
+ <xs:sequence>
101
+ <xs:element name="ALLOW_ORPHANS" type="xs:string"/>
102
+ <xs:element name="CURRENT_BASE" type="xs:integer"/>
103
+ <xs:element name="NEXT_SNAPSHOT" type="xs:string"/>
104
+ <xs:element name="SNAPSHOT" minOccurs="0" maxOccurs="unbounded">
105
+ <xs:complexType>
106
+ <xs:sequence>
107
+ <xs:element name="CHILDREN" type="xs:string" minOccurs="0" maxOccurs="1"/>
108
+ <xs:element name="ACTIVE" type="xs:string" minOccurs="0" maxOccurs="1"/>
109
+ <xs:element name="DATE" type="xs:integer"/>
110
+ <xs:element name="ID" type="xs:integer"/>
111
+ <xs:element name="NAME" type="xs:string" minOccurs="0" maxOccurs="1"/>
112
+ <xs:element name="PARENT" type="xs:integer"/>
113
+ <xs:element name="SIZE" type="xs:integer"/>
114
+ </xs:sequence>
115
+ </xs:complexType>
116
+ </xs:element>
117
+ </xs:sequence>
118
+ </xs:complexType>
119
+ </xs:element>
120
+ </xs:sequence>
121
+ </xs:complexType>
122
+ </xs:element>
123
+ </xs:schema>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
3
+ targetNamespace="http://opennebula.org/XMLSchema" xmlns="http://opennebula.org/XMLSchema">
4
+ <xs:include schemaLocation="image.xsd"/>
5
+ <xs:element name="IMAGE_POOL">
6
+ <xs:complexType>
7
+ <xs:sequence maxOccurs="1" minOccurs="1">
8
+ <xs:element ref="IMAGE" maxOccurs="unbounded" minOccurs="0"/>
9
+ </xs:sequence>
10
+ </xs:complexType>
11
+ </xs:element>
12
+ </xs:schema>