opennebula-cli 5.12.10 → 5.13.80.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/oneacct +9 -4
- data/bin/oneacl +8 -5
- data/bin/onecluster +10 -7
- data/bin/onedatastore +10 -7
- data/bin/oneflow +85 -13
- data/bin/oneflow-template +45 -8
- data/bin/onegroup +10 -7
- data/bin/onehook +10 -7
- data/bin/onehost +8 -5
- data/bin/oneimage +99 -8
- data/bin/onemarket +10 -7
- data/bin/onemarketapp +117 -10
- data/bin/onesecgroup +13 -7
- data/bin/oneshowback +18 -10
- data/bin/onetemplate +12 -8
- data/bin/oneuser +30 -7
- data/bin/onevcenter +10 -18
- data/bin/onevdc +10 -7
- data/bin/onevm +146 -11
- data/bin/onevmgroup +13 -7
- data/bin/onevnet +8 -5
- data/bin/onevntemplate +11 -7
- data/bin/onevrouter +10 -7
- data/bin/onezone +10 -7
- data/lib/cli_helper.rb +4 -6
- data/lib/command_parser.rb +1 -1
- data/lib/one_helper/oneacct_helper.rb +8 -17
- data/lib/one_helper/oneacl_helper.rb +1 -1
- data/lib/one_helper/onecluster_helper.rb +1 -1
- data/lib/one_helper/onedatastore_helper.rb +11 -1
- data/lib/one_helper/oneflow_helper.rb +20 -5
- data/lib/one_helper/oneflowtemplate_helper.rb +28 -2
- data/lib/one_helper/onegroup_helper.rb +1 -1
- data/lib/one_helper/onehook_helper.rb +1 -1
- data/lib/one_helper/onehost_helper.rb +1 -5
- data/lib/one_helper/oneimage_helper.rb +7 -7
- data/lib/one_helper/onemarket_helper.rb +1 -1
- data/lib/one_helper/onemarketapp_helper.rb +494 -96
- data/lib/one_helper/onequota_helper.rb +1 -1
- data/lib/one_helper/onesecgroup_helper.rb +1 -1
- data/lib/one_helper/onetemplate_helper.rb +12 -1
- data/lib/one_helper/oneuser_helper.rb +11 -3
- data/lib/one_helper/onevcenter_helper.rb +176 -146
- data/lib/one_helper/onevdc_helper.rb +1 -1
- data/lib/one_helper/onevm_helper.rb +4 -3
- data/lib/one_helper/onevmgroup_helper.rb +1 -1
- data/lib/one_helper/onevnet_helper.rb +1 -1
- data/lib/one_helper/onevntemplate_helper.rb +1 -1
- data/lib/one_helper/onevrouter_helper.rb +1 -20
- data/lib/one_helper/onezone_helper.rb +12 -1
- data/lib/one_helper.rb +398 -37
- data/share/schemas/xsd/acct.xsd +179 -0
- data/share/schemas/xsd/acl_pool.xsd +22 -0
- data/share/schemas/xsd/api_info.xsd +43 -0
- data/share/schemas/xsd/cluster.xsd +34 -0
- data/share/schemas/xsd/cluster_pool.xsd +12 -0
- data/share/schemas/xsd/datastore.xsd +67 -0
- data/share/schemas/xsd/datastore_pool.xsd +12 -0
- data/share/schemas/xsd/document.xsd +42 -0
- data/share/schemas/xsd/document_pool.xsd +12 -0
- data/share/schemas/xsd/group.xsd +179 -0
- data/share/schemas/xsd/group_pool.xsd +194 -0
- data/share/schemas/xsd/hook.xsd +59 -0
- data/share/schemas/xsd/hook_message_api.xsd +14 -0
- data/share/schemas/xsd/hook_message_retry.xsd +12 -0
- data/share/schemas/xsd/hook_message_state.xsd +25 -0
- data/share/schemas/xsd/hook_pool.xsd +12 -0
- data/share/schemas/xsd/host.xsd +164 -0
- data/share/schemas/xsd/host_pool.xsd +12 -0
- data/share/schemas/xsd/image.xsd +123 -0
- data/share/schemas/xsd/image_pool.xsd +12 -0
- data/share/schemas/xsd/index.xsd +49 -0
- data/share/schemas/xsd/marketplace.xsd +44 -0
- data/share/schemas/xsd/marketplace_pool.xsd +12 -0
- data/share/schemas/xsd/marketplaceapp.xsd +56 -0
- data/share/schemas/xsd/marketplaceapp_pool.xsd +12 -0
- data/share/schemas/xsd/opennebula_configuration.xsd +412 -0
- data/share/schemas/xsd/raftstatus.xsd +18 -0
- data/share/schemas/xsd/security_group.xsd +74 -0
- data/share/schemas/xsd/security_group_pool.xsd +12 -0
- data/share/schemas/xsd/showback.xsd +29 -0
- data/share/schemas/xsd/user.xsd +186 -0
- data/share/schemas/xsd/user_pool.xsd +201 -0
- data/share/schemas/xsd/vdc.xsd +76 -0
- data/share/schemas/xsd/vdc_pool.xsd +12 -0
- data/share/schemas/xsd/vm.xsd +251 -0
- data/share/schemas/xsd/vm_group.xsd +59 -0
- data/share/schemas/xsd/vm_group_pool.xsd +12 -0
- data/share/schemas/xsd/vm_pool.xsd +114 -0
- data/share/schemas/xsd/vmtemplate.xsd +52 -0
- data/share/schemas/xsd/vmtemplate_pool.xsd +12 -0
- data/share/schemas/xsd/vnet.xsd +137 -0
- data/share/schemas/xsd/vnet_pool.xsd +85 -0
- data/share/schemas/xsd/vntemplate.xsd +50 -0
- data/share/schemas/xsd/vntemplate_pool.xsd +12 -0
- data/share/schemas/xsd/vrouter.xsd +49 -0
- data/share/schemas/xsd/vrouter_pool.xsd +12 -0
- data/share/schemas/xsd/zone.xsd +40 -0
- data/share/schemas/xsd/zone_pool.xsd +36 -0
- metadata +68 -7
- data/lib/one_helper/oneprovision_helper.rb +0 -362
@@ -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
|
+
|
5
|
+
<xs:element name="HISTORY_RECORDS">
|
6
|
+
<xs:complexType>
|
7
|
+
<xs:sequence maxOccurs="1" minOccurs="1">
|
8
|
+
<xs:element ref="HISTORY" maxOccurs="unbounded" minOccurs="0"/>
|
9
|
+
</xs:sequence>
|
10
|
+
</xs:complexType>
|
11
|
+
</xs:element>
|
12
|
+
|
13
|
+
<xs:element name="HISTORY">
|
14
|
+
<xs:complexType>
|
15
|
+
<xs:sequence>
|
16
|
+
<xs:element name="OID" type="xs:integer"/>
|
17
|
+
<xs:element name="SEQ" type="xs:integer"/>
|
18
|
+
<xs:element name="HOSTNAME" type="xs:string"/>
|
19
|
+
<xs:element name="HID" type="xs:integer"/>
|
20
|
+
<xs:element name="CID" type="xs:integer"/>
|
21
|
+
<xs:element name="STIME" type="xs:integer"/>
|
22
|
+
<xs:element name="ETIME" type="xs:integer"/>
|
23
|
+
<xs:element name="VM_MAD" type="xs:string"/>
|
24
|
+
<xs:element name="TM_MAD" type="xs:string"/>
|
25
|
+
<xs:element name="DS_ID" type="xs:integer"/>
|
26
|
+
<xs:element name="PSTIME" type="xs:integer"/>
|
27
|
+
<xs:element name="PETIME" type="xs:integer"/>
|
28
|
+
<xs:element name="RSTIME" type="xs:integer"/>
|
29
|
+
<xs:element name="RETIME" type="xs:integer"/>
|
30
|
+
<xs:element name="ESTIME" type="xs:integer"/>
|
31
|
+
<xs:element name="EETIME" type="xs:integer"/>
|
32
|
+
|
33
|
+
<!-- ACTION values:
|
34
|
+
NONE_ACTION = 0
|
35
|
+
MIGRATE_ACTION = 1
|
36
|
+
LIVE_MIGRATE_ACTION = 2
|
37
|
+
SHUTDOWN_ACTION = 3
|
38
|
+
SHUTDOWN_HARD_ACTION = 4
|
39
|
+
UNDEPLOY_ACTION = 5
|
40
|
+
UNDEPLOY_HARD_ACTION = 6
|
41
|
+
HOLD_ACTION = 7
|
42
|
+
RELEASE_ACTION = 8
|
43
|
+
STOP_ACTION = 9
|
44
|
+
SUSPEND_ACTION = 10
|
45
|
+
RESUME_ACTION = 11
|
46
|
+
BOOT_ACTION = 12
|
47
|
+
DELETE_ACTION = 13
|
48
|
+
DELETE_RECREATE_ACTION = 14
|
49
|
+
REBOOT_ACTION = 15
|
50
|
+
REBOOT_HARD_ACTION = 16
|
51
|
+
RESCHED_ACTION = 17
|
52
|
+
UNRESCHED_ACTION = 18
|
53
|
+
POWEROFF_ACTION = 19
|
54
|
+
POWEROFF_HARD_ACTION = 20
|
55
|
+
DISK_ATTACH_ACTION = 21
|
56
|
+
DISK_DETACH_ACTION = 22
|
57
|
+
NIC_ATTACH_ACTION = 23
|
58
|
+
NIC_DETACH_ACTION = 24
|
59
|
+
DISK_SNAPSHOT_CREATE_ACTION = 25
|
60
|
+
DISK_SNAPSHOT_DELETE_ACTION = 26
|
61
|
+
TERMINATE_ACTION = 27
|
62
|
+
TERMINATE_HARD_ACTION = 28
|
63
|
+
DISK_RESIZE_ACTION = 29
|
64
|
+
DEPLOY_ACTION = 30
|
65
|
+
CHOWN_ACTION = 31
|
66
|
+
CHMOD_ACTION = 32
|
67
|
+
UPDATECONF_ACTION = 33
|
68
|
+
RENAME_ACTION = 34
|
69
|
+
RESIZE_ACTION = 35
|
70
|
+
UPDATE_ACTION = 36
|
71
|
+
SNAPSHOT_CREATE_ACTION = 37
|
72
|
+
SNAPSHOT_DELETE_ACTION = 38
|
73
|
+
SNAPSHOT_REVERT_ACTION = 39
|
74
|
+
DISK_SAVEAS_ACTION = 40
|
75
|
+
DISK_SNAPSHOT_REVERT_ACTION = 41
|
76
|
+
RECOVER_ACTION = 42
|
77
|
+
RETRY_ACTION = 43
|
78
|
+
MONITOR_ACTION = 44
|
79
|
+
DISK_SNAPSHOT_RENAME_ACTION = 45
|
80
|
+
-->
|
81
|
+
<xs:element name="ACTION" type="xs:integer"/>
|
82
|
+
<xs:element name="UID" type="xs:integer"/>
|
83
|
+
<xs:element name="GID" type="xs:integer"/>
|
84
|
+
<xs:element name="REQUEST_ID" type="xs:string"/>
|
85
|
+
<xs:element name="VM">
|
86
|
+
<xs:complexType>
|
87
|
+
<xs:sequence>
|
88
|
+
<xs:element name="ID" type="xs:integer"/>
|
89
|
+
<xs:element name="UID" type="xs:integer"/>
|
90
|
+
<xs:element name="GID" type="xs:integer"/>
|
91
|
+
<xs:element name="UNAME" type="xs:string"/>
|
92
|
+
<xs:element name="GNAME" type="xs:string"/>
|
93
|
+
<xs:element name="NAME" type="xs:string"/>
|
94
|
+
<xs:element name="PERMISSIONS" minOccurs="0" maxOccurs="1">
|
95
|
+
<xs:complexType>
|
96
|
+
<xs:sequence>
|
97
|
+
<xs:element name="OWNER_U" type="xs:integer"/>
|
98
|
+
<xs:element name="OWNER_M" type="xs:integer"/>
|
99
|
+
<xs:element name="OWNER_A" type="xs:integer"/>
|
100
|
+
<xs:element name="GROUP_U" type="xs:integer"/>
|
101
|
+
<xs:element name="GROUP_M" type="xs:integer"/>
|
102
|
+
<xs:element name="GROUP_A" type="xs:integer"/>
|
103
|
+
<xs:element name="OTHER_U" type="xs:integer"/>
|
104
|
+
<xs:element name="OTHER_M" type="xs:integer"/>
|
105
|
+
<xs:element name="OTHER_A" type="xs:integer"/>
|
106
|
+
</xs:sequence>
|
107
|
+
</xs:complexType>
|
108
|
+
</xs:element>
|
109
|
+
<xs:element name="LAST_POLL" type="xs:integer"/>
|
110
|
+
|
111
|
+
<!-- STATE values,
|
112
|
+
see http://docs.opennebula.org/stable/user/references/vm_states.html
|
113
|
+
-->
|
114
|
+
<xs:element name="STATE" type="xs:integer"/>
|
115
|
+
|
116
|
+
<!-- LCM_STATE values, this sub-state is relevant only when STATE is
|
117
|
+
ACTIVE (4)
|
118
|
+
see http://docs.opennebula.org/stable/user/references/vm_states.html
|
119
|
+
-->
|
120
|
+
<xs:element name="LCM_STATE" type="xs:integer"/>
|
121
|
+
<xs:element name="PREV_STATE" type="xs:integer"/>
|
122
|
+
<xs:element name="PREV_LCM_STATE" type="xs:integer"/>
|
123
|
+
<xs:element name="RESCHED" type="xs:integer"/>
|
124
|
+
<xs:element name="STIME" type="xs:integer"/>
|
125
|
+
<xs:element name="ETIME" type="xs:integer"/>
|
126
|
+
<xs:element name="DEPLOY_ID" type="xs:string"/>
|
127
|
+
<xs:element name="MONITORING">
|
128
|
+
<!--
|
129
|
+
<xs:complexType>
|
130
|
+
<xs:all>
|
131
|
+
<- Percentage of 1 CPU consumed (two fully consumed cpu is 200) ->
|
132
|
+
<xs:element name="CPU" type="xs:decimal" minOccurs="0" maxOccurs="1"/>
|
133
|
+
|
134
|
+
<- MEMORY consumption in kilobytes ->
|
135
|
+
<xs:element name="MEMORY" type="xs:integer" minOccurs="0" maxOccurs="1"/>
|
136
|
+
|
137
|
+
<- NETTX: Sent bytes to the network ->
|
138
|
+
<xs:element name="NETTX" type="xs:integer" minOccurs="0" maxOccurs="1"/>
|
139
|
+
|
140
|
+
<- NETRX: Received bytes from the network ->
|
141
|
+
<xs:element name="NETRX" type="xs:integer" minOccurs="0" maxOccurs="1"/>
|
142
|
+
</xs:all>
|
143
|
+
</xs:complexType>
|
144
|
+
-->
|
145
|
+
</xs:element>
|
146
|
+
<xs:element name="TEMPLATE" type="xs:anyType"/>
|
147
|
+
<xs:element name="USER_TEMPLATE" type="xs:anyType"/>
|
148
|
+
<xs:element name="HISTORY_RECORDS">
|
149
|
+
</xs:element>
|
150
|
+
<xs:element name="SNAPSHOTS" minOccurs="0" maxOccurs="unbounded">
|
151
|
+
<xs:complexType>
|
152
|
+
<xs:sequence>
|
153
|
+
<xs:element name="ALLOW_ORPHANS" type="xs:string"/>
|
154
|
+
<xs:element name="CURRENT_BASE" type="xs:integer"/>
|
155
|
+
<xs:element name="DISK_ID" type="xs:integer"/>
|
156
|
+
<xs:element name="NEXT_SNAPSHOT" type="xs:integer"/>
|
157
|
+
<xs:element name="SNAPSHOT" minOccurs="0" maxOccurs="unbounded">
|
158
|
+
<xs:complexType>
|
159
|
+
<xs:sequence>
|
160
|
+
<xs:element name="ACTIVE" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
161
|
+
<xs:element name="CHILDREN" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
162
|
+
<xs:element name="DATE" type="xs:integer"/>
|
163
|
+
<xs:element name="ID" type="xs:integer"/>
|
164
|
+
<xs:element name="NAME" type="xs:string" minOccurs="0" maxOccurs="1"/>
|
165
|
+
<xs:element name="PARENT" type="xs:integer"/>
|
166
|
+
<xs:element name="SIZE" type="xs:integer"/>
|
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,22 @@
|
|
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="ACL_POOL">
|
5
|
+
<xs:complexType>
|
6
|
+
<xs:sequence maxOccurs="1" minOccurs="1">
|
7
|
+
<xs:element name="ACL" maxOccurs="unbounded" minOccurs="0">
|
8
|
+
<xs:complexType>
|
9
|
+
<xs:sequence>
|
10
|
+
<xs:element name="ID" type="xs:integer"/>
|
11
|
+
<xs:element name="USER" type="xs:string"/>
|
12
|
+
<xs:element name="RESOURCE" type="xs:string"/>
|
13
|
+
<xs:element name="RIGHTS" type="xs:string"/>
|
14
|
+
<xs:element name="ZONE" type="xs:string"/>
|
15
|
+
<xs:element name="STRING" type="xs:string"/>
|
16
|
+
</xs:sequence>
|
17
|
+
</xs:complexType>
|
18
|
+
</xs:element>
|
19
|
+
</xs:sequence>
|
20
|
+
</xs:complexType>
|
21
|
+
</xs:element>
|
22
|
+
</xs:schema>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!-- The information sent to the hook when $API is used in an API Hook follos the following schema -->
|
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="CALL_INFO">
|
5
|
+
<xs:complexType>
|
6
|
+
<xs:sequence>
|
7
|
+
<xs:element name="RESULT" type="xs:integer"/>
|
8
|
+
<xs:element name="PARAMETERS" minOccurs="0" maxOccurs="1">
|
9
|
+
<xs:complexType>
|
10
|
+
<xs:sequence>
|
11
|
+
<!-- The list of IN and OUT parameters will match the API call parameters defined here: http://docs.opennebula.org/5.9/integration/system_interfaces/api.html -->
|
12
|
+
<xs:element name="PARAMETER" minOccurs="0" maxOccurs="unbounded">
|
13
|
+
<xs:complexType>
|
14
|
+
<xs:sequence>
|
15
|
+
<xs:element name="POSITION" type="xs:integer"/>
|
16
|
+
<xs:element name="TYPE" type="xs:integer">
|
17
|
+
<xs:simpleType>
|
18
|
+
<xs:restriction base="xs:string">
|
19
|
+
<xs:enumeration value="IN"/>
|
20
|
+
<xs:enumeration value="OUT"/>
|
21
|
+
</xs:restriction>
|
22
|
+
</xs:simpleType>
|
23
|
+
</xs:element>
|
24
|
+
<xs:element name="VALUE" type="xs:string"/>
|
25
|
+
</xs:sequence>
|
26
|
+
</xs:complexType>
|
27
|
+
</xs:element>
|
28
|
+
</xs:sequence>
|
29
|
+
</xs:complexType>
|
30
|
+
</xs:element>
|
31
|
+
<!-- This info is only included when the API hook is set on a one.*.delete or one.*.allocate API call -->
|
32
|
+
<xs:element name="EXTRA" minOccurs="0" maxOccurs="1">
|
33
|
+
<xs:complexType>
|
34
|
+
<xs:sequence>
|
35
|
+
<!-- EXTRA section will contain the template of the allocated/deleted resource as defined here; https://github.com/OpenNebula/one/tree/master/share/doc/xsd -->
|
36
|
+
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
|
37
|
+
</xs:sequence>
|
38
|
+
</xs:complexType>
|
39
|
+
</xs:element>
|
40
|
+
</xs:sequence>
|
41
|
+
</xs:complexType>
|
42
|
+
</xs:element>
|
43
|
+
</xs:schema>
|
@@ -0,0 +1,34 @@
|
|
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="CLUSTER">
|
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="HOSTS">
|
10
|
+
<xs:complexType>
|
11
|
+
<xs:sequence>
|
12
|
+
<xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
|
13
|
+
</xs:sequence>
|
14
|
+
</xs:complexType>
|
15
|
+
</xs:element>
|
16
|
+
<xs:element name="DATASTORES">
|
17
|
+
<xs:complexType>
|
18
|
+
<xs:sequence>
|
19
|
+
<xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
|
20
|
+
</xs:sequence>
|
21
|
+
</xs:complexType>
|
22
|
+
</xs:element>
|
23
|
+
<xs:element name="VNETS">
|
24
|
+
<xs:complexType>
|
25
|
+
<xs:sequence>
|
26
|
+
<xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
|
27
|
+
</xs:sequence>
|
28
|
+
</xs:complexType>
|
29
|
+
</xs:element>
|
30
|
+
<xs:element name="TEMPLATE" type="xs:anyType"/>
|
31
|
+
</xs:sequence>
|
32
|
+
</xs:complexType>
|
33
|
+
</xs:element>
|
34
|
+
</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="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>
|