Statistics
| Branch: | Tag: | Revision:

one / share / doc / xsd / vm.xsd @ f66e022b

History | View | Annotate | Download (8.04 KB)

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="VM">
5
    <xs:complexType>
6
      <xs:sequence>
7
        <xs:element name="ID" type="xs:integer"/>
8
        <xs:element name="UID" type="xs:integer"/>
9
        <xs:element name="GID" type="xs:integer"/>
10
        <xs:element name="UNAME" type="xs:string"/>
11
        <xs:element name="GNAME" type="xs:string"/>
12
        <xs:element name="NAME" 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="LAST_POLL" type="xs:integer"/>
29

    
30
        <!-- STATE values,
31
        see http://docs.opennebula.org/stable/user/references/vm_states.html
32
        -->
33
        <xs:element name="STATE" type="xs:integer"/>
34

    
35
        <!-- LCM_STATE values, this sub-state is relevant only when STATE is
36
             ACTIVE (4)
37
        see http://docs.opennebula.org/stable/user/references/vm_states.html
38
        -->
39
        <xs:element name="LCM_STATE" type="xs:integer"/>
40
        <xs:element name="PREV_STATE" type="xs:integer"/>
41
        <xs:element name="PREV_LCM_STATE" type="xs:integer"/>
42
        <xs:element name="RESCHED" type="xs:integer"/>
43
        <xs:element name="STIME" type="xs:integer"/>
44
        <xs:element name="ETIME" type="xs:integer"/>
45
        <xs:element name="DEPLOY_ID" type="xs:string"/>
46
        <xs:element name="MONITORING">
47
        <!--
48
          <xs:complexType>
49
            <xs:all>
50
              <- Percentage of 1 CPU consumed (two fully consumed cpu is 200) ->
51
              <xs:element name="CPU" type="xs:decimal" minOccurs="0" maxOccurs="1"/>
52

    
53
              <- MEMORY consumption in kilobytes ->
54
              <xs:element name="MEMORY" type="xs:integer" minOccurs="0" maxOccurs="1"/>
55

    
56
              <- NETTX: Sent bytes to the network ->
57
              <xs:element name="NETTX" type="xs:integer" minOccurs="0" maxOccurs="1"/>
58

    
59
              <- NETRX: Received bytes from the network ->
60
              <xs:element name="NETRX" type="xs:integer" minOccurs="0" maxOccurs="1"/>
61
            </xs:all>
62
          </xs:complexType>
63
        -->
64
        </xs:element>
65
        <xs:element name="TEMPLATE" type="xs:anyType"/>
66
        <xs:element name="USER_TEMPLATE" type="xs:anyType"/>
67
        <xs:element name="HISTORY_RECORDS">
68
          <xs:complexType>
69
            <xs:sequence>
70
              <xs:element name="HISTORY" maxOccurs="unbounded" minOccurs="0">
71
                <xs:complexType>
72
                  <xs:sequence>
73
                    <xs:element name="OID" type="xs:integer"/>
74
                    <xs:element name="SEQ" type="xs:integer"/>
75
                    <xs:element name="HOSTNAME" type="xs:string"/>
76
                    <xs:element name="HID" type="xs:integer"/>
77
                    <xs:element name="CID" type="xs:integer"/>
78
                    <xs:element name="STIME" type="xs:integer"/>
79
                    <xs:element name="ETIME" type="xs:integer"/>
80
                    <xs:element name="VM_MAD" type="xs:string"/>
81
                    <xs:element name="TM_MAD" type="xs:string"/>
82
                    <xs:element name="DS_ID" type="xs:integer"/>
83
                    <xs:element name="PSTIME" type="xs:integer"/>
84
                    <xs:element name="PETIME" type="xs:integer"/>
85
                    <xs:element name="RSTIME" type="xs:integer"/>
86
                    <xs:element name="RETIME" type="xs:integer"/>
87
                    <xs:element name="ESTIME" type="xs:integer"/>
88
                    <xs:element name="EETIME" type="xs:integer"/>
89

    
90
                    <!-- ACTION values:
91
                      NONE_ACTION             = 0
92
                      MIGRATE_ACTION          = 1
93
                      LIVE_MIGRATE_ACTION     = 2
94
                      SHUTDOWN_ACTION         = 3
95
                      SHUTDOWN_HARD_ACTION    = 4
96
                      UNDEPLOY_ACTION         = 5
97
                      UNDEPLOY_HARD_ACTION    = 6
98
                      HOLD_ACTION             = 7
99
                      RELEASE_ACTION          = 8
100
                      STOP_ACTION             = 9
101
                      SUSPEND_ACTION          = 10
102
                      RESUME_ACTION           = 11
103
                      BOOT_ACTION             = 12
104
                      DELETE_ACTION           = 13
105
                      DELETE_RECREATE_ACTION  = 14
106
                      REBOOT_ACTION           = 15
107
                      REBOOT_HARD_ACTION      = 16
108
                      RESCHED_ACTION          = 17
109
                      UNRESCHED_ACTION        = 18
110
                      POWEROFF_ACTION         = 19
111
                      POWEROFF_HARD_ACTION    = 20
112
                      DISK_ATTACH_ACTION      = 21
113
                      DISK_DETACH_ACTION      = 22
114
                      NIC_ATTACH_ACTION       = 23
115
                      NIC_DETACH_ACTION       = 24
116
                      DISK_SNAPSHOT_CREATE_ACTION = 25
117
                      DISK_SNAPSHOT_DELETE_ACTION = 26
118
                      TERMINATE_ACTION        = 27
119
                      TERMINATE_HARD_ACTION   = 28
120
                      DISK_RESIZE_ACTION      = 29
121
                      DEPLOY_ACTION           = 30
122
                      CHOWN_ACTION            = 31
123
                      CHMOD_ACTION            = 32
124
                      UPDATECONF_ACTION       = 33
125
                      RENAME_ACTION           = 34
126
                      RESIZE_ACTION           = 35
127
                      UPDATE_ACTION           = 36
128
                      SNAPSHOT_CREATE_ACTION  = 37
129
                      SNAPSHOT_DELETE_ACTION  = 38
130
                      SNAPSHOT_REVERT_ACTION  = 39
131
                      DISK_SAVEAS_ACTION      = 40
132
                      DISK_SNAPSHOT_REVERT_ACTION = 41
133
                      RECOVER_ACTION          = 42
134
                      RETRY_ACTION            = 43
135
                      MONITOR_ACTION          = 44
136
                    -->
137
                    <xs:element name="ACTION" type="xs:integer"/>
138
                    <xs:element name="UID" type="xs:integer"/>
139
                    <xs:element name="GID" type="xs:integer"/>
140
                    <xs:element name="REQUEST_ID" 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="SNAPSHOTS" minOccurs="0" maxOccurs="unbounded">
148
          <xs:complexType>
149
            <xs:sequence>
150
              <xs:element name="DISK_ID" type="xs:integer"/>
151
              <xs:element name="SNAPSHOT" minOccurs="0" maxOccurs="unbounded">
152
                <xs:complexType>
153
                  <xs:sequence>
154
                    <xs:element name="ACTIVE" type="xs:string" minOccurs="0" maxOccurs="1"/>
155
                    <xs:element name="CHILDREN" type="xs:string" minOccurs="0" maxOccurs="1"/>
156
                    <xs:element name="DATE" type="xs:integer"/>
157
                    <xs:element name="ID" type="xs:integer"/>
158
                    <xs:element name="NAME" type="xs:string" minOccurs="0" maxOccurs="1"/>
159
                    <xs:element name="PARENT" type="xs:integer"/>
160
                    <xs:element name="SIZE" type="xs:integer"/>
161
                  </xs:sequence>
162
                </xs:complexType>
163
              </xs:element>
164
            </xs:sequence>
165
          </xs:complexType>
166
        </xs:element>
167
      </xs:sequence>
168
    </xs:complexType>
169
  </xs:element>
170
</xs:schema>