opennebula-cli 5.12.7 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/bin/oneacct +9 -4
  3. data/bin/oneacl +8 -5
  4. data/bin/onecluster +10 -7
  5. data/bin/onedatastore +10 -7
  6. data/bin/oneflow +85 -13
  7. data/bin/oneflow-template +45 -8
  8. data/bin/onegroup +10 -7
  9. data/bin/onehook +10 -7
  10. data/bin/onehost +10 -7
  11. data/bin/oneimage +100 -9
  12. data/bin/onemarket +10 -7
  13. data/bin/onemarketapp +114 -11
  14. data/bin/onesecgroup +13 -7
  15. data/bin/oneshowback +18 -10
  16. data/bin/onetemplate +12 -8
  17. data/bin/oneuser +30 -7
  18. data/bin/onevcenter +16 -8
  19. data/bin/onevdc +10 -7
  20. data/bin/onevm +147 -12
  21. data/bin/onevmgroup +13 -7
  22. data/bin/onevnet +8 -5
  23. data/bin/onevntemplate +11 -7
  24. data/bin/onevrouter +10 -7
  25. data/bin/onezone +11 -8
  26. data/lib/cli_helper.rb +17 -8
  27. data/lib/command_parser.rb +1 -1
  28. data/lib/one_helper.rb +398 -37
  29. data/lib/one_helper/oneacct_helper.rb +8 -17
  30. data/lib/one_helper/oneacl_helper.rb +1 -1
  31. data/lib/one_helper/onecluster_helper.rb +1 -1
  32. data/lib/one_helper/onedatastore_helper.rb +11 -1
  33. data/lib/one_helper/oneflow_helper.rb +20 -5
  34. data/lib/one_helper/oneflowtemplate_helper.rb +28 -2
  35. data/lib/one_helper/onegroup_helper.rb +1 -1
  36. data/lib/one_helper/onehook_helper.rb +1 -1
  37. data/lib/one_helper/onehost_helper.rb +1 -5
  38. data/lib/one_helper/oneimage_helper.rb +13 -7
  39. data/lib/one_helper/onemarket_helper.rb +1 -1
  40. data/lib/one_helper/onemarketapp_helper.rb +500 -96
  41. data/lib/one_helper/onequota_helper.rb +1 -1
  42. data/lib/one_helper/onesecgroup_helper.rb +1 -1
  43. data/lib/one_helper/onetemplate_helper.rb +12 -1
  44. data/lib/one_helper/oneuser_helper.rb +11 -3
  45. data/lib/one_helper/onevcenter_helper.rb +176 -146
  46. data/lib/one_helper/onevdc_helper.rb +1 -1
  47. data/lib/one_helper/onevm_helper.rb +4 -3
  48. data/lib/one_helper/onevmgroup_helper.rb +1 -1
  49. data/lib/one_helper/onevnet_helper.rb +1 -1
  50. data/lib/one_helper/onevntemplate_helper.rb +1 -1
  51. data/lib/one_helper/onevrouter_helper.rb +1 -20
  52. data/lib/one_helper/onezone_helper.rb +24 -17
  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 +50 -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/monitoring_data.xsd +41 -0
  79. data/share/schemas/xsd/opennebula_configuration.xsd +412 -0
  80. data/share/schemas/xsd/raftstatus.xsd +18 -0
  81. data/share/schemas/xsd/security_group.xsd +74 -0
  82. data/share/schemas/xsd/security_group_pool.xsd +12 -0
  83. data/share/schemas/xsd/showback.xsd +29 -0
  84. data/share/schemas/xsd/user.xsd +186 -0
  85. data/share/schemas/xsd/user_pool.xsd +201 -0
  86. data/share/schemas/xsd/vdc.xsd +76 -0
  87. data/share/schemas/xsd/vdc_pool.xsd +12 -0
  88. data/share/schemas/xsd/vm.xsd +251 -0
  89. data/share/schemas/xsd/vm_group.xsd +59 -0
  90. data/share/schemas/xsd/vm_group_pool.xsd +12 -0
  91. data/share/schemas/xsd/vm_pool.xsd +114 -0
  92. data/share/schemas/xsd/vmtemplate.xsd +52 -0
  93. data/share/schemas/xsd/vmtemplate_pool.xsd +12 -0
  94. data/share/schemas/xsd/vnet.xsd +137 -0
  95. data/share/schemas/xsd/vnet_pool.xsd +85 -0
  96. data/share/schemas/xsd/vntemplate.xsd +50 -0
  97. data/share/schemas/xsd/vntemplate_pool.xsd +12 -0
  98. data/share/schemas/xsd/vrouter.xsd +49 -0
  99. data/share/schemas/xsd/vrouter_pool.xsd +12 -0
  100. data/share/schemas/xsd/zone.xsd +40 -0
  101. data/share/schemas/xsd/zone_pool.xsd +36 -0
  102. metadata +79 -17
  103. data/lib/one_helper/oneprovision_helper.rb +0 -362
@@ -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="cluster.xsd"/>
5
+ <xs:element name="CLUSTER_POOL">
6
+ <xs:complexType>
7
+ <xs:sequence maxOccurs="1" minOccurs="1">
8
+ <xs:element ref="CLUSTER" maxOccurs="unbounded" minOccurs="0"/>
9
+ </xs:sequence>
10
+ </xs:complexType>
11
+ </xs:element>
12
+ </xs:schema>
@@ -0,0 +1,67 @@
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="DATASTORE">
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="PERMISSIONS" minOccurs="0" maxOccurs="1">
13
+ <xs:complexType>
14
+ <xs:sequence>
15
+ <xs:element name="OWNER_U" type="xs:integer"/>
16
+ <xs:element name="OWNER_M" type="xs:integer"/>
17
+ <xs:element name="OWNER_A" type="xs:integer"/>
18
+ <xs:element name="GROUP_U" type="xs:integer"/>
19
+ <xs:element name="GROUP_M" type="xs:integer"/>
20
+ <xs:element name="GROUP_A" type="xs:integer"/>
21
+ <xs:element name="OTHER_U" type="xs:integer"/>
22
+ <xs:element name="OTHER_M" type="xs:integer"/>
23
+ <xs:element name="OTHER_A" type="xs:integer"/>
24
+ </xs:sequence>
25
+ </xs:complexType>
26
+ </xs:element>
27
+ <xs:element name="DS_MAD" type="xs:string"/>
28
+ <xs:element name="TM_MAD" type="xs:string"/>
29
+ <xs:element name="BASE_PATH" type="xs:string"/>
30
+ <xs:element name="TYPE" type="xs:integer"/>
31
+ <xs:element name="DISK_TYPE" type="xs:integer"/>
32
+ <!-- Possible STATE values are 0 (READY) and 1 (DISABLE)-->
33
+ <xs:element name="STATE" type="xs:integer"/>
34
+ <xs:element name="CLUSTERS">
35
+ <xs:complexType>
36
+ <xs:sequence>
37
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
38
+ </xs:sequence>
39
+ </xs:complexType>
40
+ </xs:element>
41
+ <xs:element name="TOTAL_MB" type="xs:integer"/>
42
+ <xs:element name="FREE_MB" type="xs:integer"/>
43
+ <xs:element name="USED_MB" type="xs:integer"/>
44
+ <xs:element name="IMAGES">
45
+ <xs:complexType>
46
+ <xs:sequence>
47
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
48
+ </xs:sequence>
49
+ </xs:complexType>
50
+ </xs:element>
51
+ <xs:element name="TEMPLATE">
52
+ <xs:complexType>
53
+ <xs:sequence>
54
+ <xs:element name="VCENTER_DC_NAME" type="xs:string" minOccurs="0" maxOccurs="1"/>
55
+ <xs:element name="VCENTER_DC_REF" type="xs:string" minOccurs="0" maxOccurs="1"/>
56
+ <xs:element name="VCENTER_DS_NAME" type="xs:string" minOccurs="0" maxOccurs="1"/>
57
+ <xs:element name="VCENTER_DS_REF" type="xs:string" minOccurs="0" maxOccurs="1"/>
58
+ <xs:element name="VCENTER_HOST" type="xs:string" minOccurs="0" maxOccurs="1"/>
59
+ <xs:element name="VCENTER_INSTANCE_ID" type="xs:string" minOccurs="0" maxOccurs="1"/>
60
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
61
+ </xs:sequence>
62
+ </xs:complexType>
63
+ </xs:element>
64
+ </xs:sequence>
65
+ </xs:complexType>
66
+ </xs:element>
67
+ </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="datastore.xsd"/>
5
+ <xs:element name="DATASTORE_POOL">
6
+ <xs:complexType>
7
+ <xs:sequence maxOccurs="1" minOccurs="1">
8
+ <xs:element ref="DATASTORE" maxOccurs="unbounded" minOccurs="0"/>
9
+ </xs:sequence>
10
+ </xs:complexType>
11
+ </xs:element>
12
+ </xs:schema>
@@ -0,0 +1,42 @@
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="DOCUMENT">
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="TYPE" type="xs:string"/>
13
+ <xs:element name="PERMISSIONS" minOccurs="0" maxOccurs="1">
14
+ <xs:complexType>
15
+ <xs:sequence>
16
+ <xs:element name="OWNER_U" type="xs:integer"/>
17
+ <xs:element name="OWNER_M" type="xs:integer"/>
18
+ <xs:element name="OWNER_A" type="xs:integer"/>
19
+ <xs:element name="GROUP_U" type="xs:integer"/>
20
+ <xs:element name="GROUP_M" type="xs:integer"/>
21
+ <xs:element name="GROUP_A" type="xs:integer"/>
22
+ <xs:element name="OTHER_U" type="xs:integer"/>
23
+ <xs:element name="OTHER_M" type="xs:integer"/>
24
+ <xs:element name="OTHER_A" type="xs:integer"/>
25
+ </xs:sequence>
26
+ </xs:complexType>
27
+ </xs:element>
28
+ <xs:element name="LOCK" minOccurs="0" maxOccurs="1">
29
+ <xs:complexType>
30
+ <xs:sequence>
31
+ <xs:element name="LOCKED" type="xs:integer"/>
32
+ <xs:element name="OWNER" type="xs:integer"/>
33
+ <xs:element name="TIME" type="xs:integer"/>
34
+ <xs:element name="REQ_ID" type="xs:integer"/>
35
+ </xs:sequence>
36
+ </xs:complexType>
37
+ </xs:element>
38
+ <xs:element name="TEMPLATE" type="xs:anyType"/>
39
+ </xs:sequence>
40
+ </xs:complexType>
41
+ </xs:element>
42
+ </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="document.xsd"/>
5
+ <xs:element name="DOCUMENT_POOL">
6
+ <xs:complexType>
7
+ <xs:sequence maxOccurs="1" minOccurs="1">
8
+ <xs:element ref="DOCUMENT" maxOccurs="unbounded" minOccurs="0"/>
9
+ </xs:sequence>
10
+ </xs:complexType>
11
+ </xs:element>
12
+ </xs:schema>
@@ -0,0 +1,179 @@
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">
5
+ <xs:complexType>
6
+ <xs:sequence>
7
+ <xs:element name="ID" type="xs:integer"/>
8
+ <xs:element name="NAME" type="xs:string"/>
9
+ <xs:element name="TEMPLATE" type="xs:anyType"/>
10
+ <xs:element name="USERS">
11
+ <xs:complexType>
12
+ <xs:sequence>
13
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
14
+ </xs:sequence>
15
+ </xs:complexType>
16
+ </xs:element>
17
+ <xs:element name="ADMINS">
18
+ <xs:complexType>
19
+ <xs:sequence>
20
+ <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
21
+ </xs:sequence>
22
+ </xs:complexType>
23
+ </xs:element>
24
+ <xs:element name="DATASTORE_QUOTA" minOccurs="0" maxOccurs="1">
25
+ <xs:complexType>
26
+ <xs:sequence>
27
+ <xs:element name="DATASTORE" minOccurs="0" maxOccurs="unbounded">
28
+ <xs:complexType>
29
+ <xs:sequence>
30
+ <xs:element name="ID" type="xs:string"/>
31
+ <xs:element name="IMAGES" type="xs:string"/>
32
+ <xs:element name="IMAGES_USED" type="xs:string"/>
33
+ <xs:element name="SIZE" type="xs:string"/>
34
+ <xs:element name="SIZE_USED" type="xs:string"/>
35
+ </xs:sequence>
36
+ </xs:complexType>
37
+ </xs:element>
38
+ </xs:sequence>
39
+ </xs:complexType>
40
+ </xs:element>
41
+ <xs:element name="NETWORK_QUOTA" minOccurs="0" maxOccurs="1">
42
+ <xs:complexType>
43
+ <xs:sequence>
44
+ <xs:element name="NETWORK" minOccurs="0" maxOccurs="unbounded">
45
+ <xs:complexType>
46
+ <xs:sequence>
47
+ <xs:element name="ID" type="xs:string"/>
48
+ <xs:element name="LEASES" type="xs:string"/>
49
+ <xs:element name="LEASES_USED" type="xs:string"/>
50
+ </xs:sequence>
51
+ </xs:complexType>
52
+ </xs:element>
53
+ </xs:sequence>
54
+ </xs:complexType>
55
+ </xs:element>
56
+ <xs:element name="VM_QUOTA" minOccurs="0" maxOccurs="1">
57
+ <xs:complexType>
58
+ <xs:sequence>
59
+ <xs:element name="VM" minOccurs="0" maxOccurs="1">
60
+ <xs:complexType>
61
+ <xs:sequence>
62
+ <xs:element name="CPU" type="xs:float"/>
63
+ <xs:element name="CPU_USED" type="xs:float"/>
64
+ <xs:element name="MEMORY" type="xs:integer"/>
65
+ <xs:element name="MEMORY_USED" type="xs:integer"/>
66
+ <xs:element name="RUNNING_CPU" type="xs:float"/>
67
+ <xs:element name="RUNNING_CPU_USED" type="xs:float"/>
68
+ <xs:element name="RUNNING_MEMORY" type="xs:integer"/>
69
+ <xs:element name="RUNNING_MEMORY_USED" type="xs:integer"/>
70
+ <xs:element name="RUNNING_VMS" type="xs:integer"/>
71
+ <xs:element name="RUNNING_VMS_USED" type="xs:integer"/>
72
+ <xs:element name="SYSTEM_DISK_SIZE" type="xs:long"/>
73
+ <xs:element name="SYSTEM_DISK_SIZE_USED" type="xs:long"/>
74
+ <xs:element name="VMS" type="xs:integer"/>
75
+ <xs:element name="VMS_USED" type="xs:integer"/>
76
+ </xs:sequence>
77
+ </xs:complexType>
78
+ </xs:element>
79
+ </xs:sequence>
80
+ </xs:complexType>
81
+ </xs:element>
82
+ <xs:element name="IMAGE_QUOTA" minOccurs="0" maxOccurs="1">
83
+ <xs:complexType>
84
+ <xs:sequence>
85
+ <xs:element name="IMAGE" minOccurs="0" maxOccurs="unbounded">
86
+ <xs:complexType>
87
+ <xs:sequence>
88
+ <xs:element name="ID" type="xs:string"/>
89
+ <xs:element name="RVMS" type="xs:string"/>
90
+ <xs:element name="RVMS_USED" type="xs:string"/>
91
+ </xs:sequence>
92
+ </xs:complexType>
93
+ </xs:element>
94
+ </xs:sequence>
95
+ </xs:complexType>
96
+ </xs:element>
97
+ <xs:element name="DEFAULT_GROUP_QUOTAS">
98
+ <xs:complexType>
99
+ <xs:sequence>
100
+ <xs:element name="DATASTORE_QUOTA" minOccurs="0" maxOccurs="1">
101
+ <xs:complexType>
102
+ <xs:sequence>
103
+ <xs:element name="DATASTORE" minOccurs="0" maxOccurs="unbounded">
104
+ <xs:complexType>
105
+ <xs:sequence>
106
+ <xs:element name="ID" type="xs:string"/>
107
+ <xs:element name="IMAGES" type="xs:string"/>
108
+ <xs:element name="IMAGES_USED" type="xs:string"/>
109
+ <xs:element name="SIZE" type="xs:string"/>
110
+ <xs:element name="SIZE_USED" type="xs:string"/>
111
+ </xs:sequence>
112
+ </xs:complexType>
113
+ </xs:element>
114
+ </xs:sequence>
115
+ </xs:complexType>
116
+ </xs:element>
117
+ <xs:element name="NETWORK_QUOTA" minOccurs="0" maxOccurs="1">
118
+ <xs:complexType>
119
+ <xs:sequence>
120
+ <xs:element name="NETWORK" minOccurs="0" maxOccurs="unbounded">
121
+ <xs:complexType>
122
+ <xs:sequence>
123
+ <xs:element name="ID" type="xs:string"/>
124
+ <xs:element name="LEASES" type="xs:string"/>
125
+ <xs:element name="LEASES_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="VM_QUOTA" minOccurs="0" maxOccurs="1">
133
+ <xs:complexType>
134
+ <xs:sequence>
135
+ <xs:element name="VM" minOccurs="0" maxOccurs="1">
136
+ <xs:complexType>
137
+ <xs:sequence>
138
+ <xs:element name="CPU" type="xs:float"/>
139
+ <xs:element name="CPU_USED" type="xs:float"/>
140
+ <xs:element name="MEMORY" type="xs:integer"/>
141
+ <xs:element name="MEMORY_USED" type="xs:integer"/>
142
+ <xs:element name="RUNNING_CPU" type="xs:float"/>
143
+ <xs:element name="RUNNING_CPU_USED" type="xs:float"/>
144
+ <xs:element name="RUNNING_MEMORY" type="xs:integer"/>
145
+ <xs:element name="RUNNING_MEMORY_USED" type="xs:integer"/>
146
+ <xs:element name="RUNNING_VMS" type="xs:integer"/>
147
+ <xs:element name="RUNNING_VMS_USED" type="xs:integer"/>
148
+ <xs:element name="SYSTEM_DISK_SIZE" type="xs:long"/>
149
+ <xs:element name="SYSTEM_DISK_SIZE_USED" type="xs:long"/>
150
+ <xs:element name="VMS" type="xs:integer"/>
151
+ <xs:element name="VMS_USED" type="xs:integer"/>
152
+ </xs:sequence>
153
+ </xs:complexType>
154
+ </xs:element>
155
+ </xs:sequence>
156
+ </xs:complexType>
157
+ </xs:element>
158
+ <xs:element name="IMAGE_QUOTA" minOccurs="0" maxOccurs="1">
159
+ <xs:complexType>
160
+ <xs:sequence>
161
+ <xs:element name="IMAGE" minOccurs="0" maxOccurs="unbounded">
162
+ <xs:complexType>
163
+ <xs:sequence>
164
+ <xs:element name="ID" type="xs:string"/>
165
+ <xs:element name="RVMS" type="xs:string"/>
166
+ <xs:element name="RVMS_USED" type="xs:string"/>
167
+ </xs:sequence>
168
+ </xs:complexType>
169
+ </xs:element>
170
+ </xs:sequence>
171
+ </xs:complexType>
172
+ </xs:element>
173
+ </xs:sequence>
174
+ </xs:complexType>
175
+ </xs:element>
176
+ </xs:sequence>
177
+ </xs:complexType>
178
+ </xs:element>
179
+ </xs:schema>
@@ -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>