Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.76 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

    
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
        -->
80
        <xs:element name="ACTION" type="xs:integer"/>
81
        <xs:element name="UID" type="xs:integer"/>
82
        <xs:element name="GID" type="xs:integer"/>
83
        <xs:element name="REQUEST_ID" type="xs:string"/>
84
        <xs:element name="VM">
85
          <xs:complexType>
86
            <xs:sequence>
87
              <xs:element name="ID" type="xs:integer"/>
88
              <xs:element name="UID" type="xs:integer"/>
89
              <xs:element name="GID" type="xs:integer"/>
90
              <xs:element name="UNAME" type="xs:string"/>
91
              <xs:element name="GNAME" type="xs:string"/>
92
              <xs:element name="NAME" type="xs:string"/>
93
              <xs:element name="PERMISSIONS" minOccurs="0" maxOccurs="1">
94
                <xs:complexType>
95
                  <xs:sequence>
96
                    <xs:element name="OWNER_U" type="xs:integer"/>
97
                    <xs:element name="OWNER_M" type="xs:integer"/>
98
                    <xs:element name="OWNER_A" type="xs:integer"/>
99
                    <xs:element name="GROUP_U" type="xs:integer"/>
100
                    <xs:element name="GROUP_M" type="xs:integer"/>
101
                    <xs:element name="GROUP_A" type="xs:integer"/>
102
                    <xs:element name="OTHER_U" type="xs:integer"/>
103
                    <xs:element name="OTHER_M" type="xs:integer"/>
104
                    <xs:element name="OTHER_A" type="xs:integer"/>
105
                  </xs:sequence>
106
                </xs:complexType>
107
              </xs:element>
108
              <xs:element name="LAST_POLL" type="xs:integer"/>
109

    
110
              <!-- STATE values,
111
              see http://docs.opennebula.org/stable/user/references/vm_states.html
112
              -->
113
              <xs:element name="STATE" type="xs:integer"/>
114

    
115
              <!-- LCM_STATE values, this sub-state is relevant only when STATE is
116
                   ACTIVE (4)
117
              see http://docs.opennebula.org/stable/user/references/vm_states.html
118
              -->
119
              <xs:element name="LCM_STATE" type="xs:integer"/>
120
              <xs:element name="PREV_STATE" type="xs:integer"/>
121
              <xs:element name="PREV_LCM_STATE" type="xs:integer"/>
122
              <xs:element name="RESCHED" type="xs:integer"/>
123
              <xs:element name="STIME" type="xs:integer"/>
124
              <xs:element name="ETIME" type="xs:integer"/>
125
              <xs:element name="DEPLOY_ID" type="xs:string"/>
126
              <xs:element name="MONITORING">
127
              <!--
128
                <xs:complexType>
129
                  <xs:all>
130
                    <- Percentage of 1 CPU consumed (two fully consumed cpu is 200) ->
131
                    <xs:element name="CPU" type="xs:decimal" minOccurs="0" maxOccurs="1"/>
132

    
133
                    <- MEMORY consumption in kilobytes ->
134
                    <xs:element name="MEMORY" type="xs:integer" minOccurs="0" maxOccurs="1"/>
135

    
136
                    <- NETTX: Sent bytes to the network ->
137
                    <xs:element name="NETTX" type="xs:integer" minOccurs="0" maxOccurs="1"/>
138

    
139
                    <- NETRX: Received bytes from the network ->
140
                    <xs:element name="NETRX" type="xs:integer" minOccurs="0" maxOccurs="1"/>
141
                  </xs:all>
142
                </xs:complexType>
143
              -->
144
              </xs:element>
145
              <xs:element name="TEMPLATE" type="xs:anyType"/>
146
              <xs:element name="USER_TEMPLATE" type="xs:anyType"/>
147
              <xs:element name="HISTORY_RECORDS">
148
              </xs:element>
149
              <xs:element name="SNAPSHOTS" minOccurs="0" maxOccurs="unbounded">
150
                <xs:complexType>
151
                  <xs:sequence>
152
                    <xs:element name="DISK_ID" type="xs:integer"/>
153
                    <xs:element name="SNAPSHOT" minOccurs="0" maxOccurs="unbounded">
154
                      <xs:complexType>
155
                        <xs:sequence>
156
                          <xs:element name="ACTIVE" type="xs:string" minOccurs="0" maxOccurs="1"/>
157
                          <xs:element name="CHILDREN" type="xs:string" minOccurs="0" maxOccurs="1"/>
158
                          <xs:element name="DATE" type="xs:integer"/>
159
                          <xs:element name="ID" type="xs:integer"/>
160
                          <xs:element name="NAME" type="xs:string" minOccurs="0" maxOccurs="1"/>
161
                          <xs:element name="PARENT" type="xs:integer"/>
162
                          <xs:element name="SIZE" type="xs:integer"/>
163
                        </xs:sequence>
164
                      </xs:complexType>
165
                    </xs:element>
166
                  </xs:sequence>
167
                </xs:complexType>
168
              </xs:element>
169
            </xs:sequence>
170
          </xs:complexType>
171
        </xs:element>
172
      </xs:sequence>
173
    </xs:complexType>
174
  </xs:element>
175
</xs:schema>