Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (4.66 KB)

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="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="TYPE" type="xs:integer"/>
28
        <xs:element name="DISK_TYPE" type="xs:integer"/>
29
        <xs:element name="PERSISTENT" type="xs:integer"/>
30
        <xs:element name="REGTIME" type="xs:integer"/>
31
        <xs:element name="SOURCE" type="xs:string"/>
32
        <xs:element name="PATH" type="xs:string"/>
33
        <xs:element name="FSTYPE" type="xs:string"/>
34
        <xs:element name="SIZE" type="xs:integer"/>
35

    
36
        <!-- STATE values,
37
          INIT      = 0, Initialization state
38
          READY     = 1, Image ready to use
39
          USED      = 2, Image in use
40
          DISABLED  = 3, Image can not be instantiated by a VM
41
          LOCKED    = 4, FS operation for the Image in process
42
          ERROR     = 5, Error state the operation FAILED
43
          CLONE     = 6, Image is being cloned
44
          DELETE    = 7, DS is deleting the image
45
          USED_PERS = 8, Image is in use and persistent
46
          LOCKED_USED = 9,      FS operation in progress, VMs waiting
47
          LOCKED_USED_PERS = 10 FS operation in progress, VMs waiting. Persistent
48
        -->
49
        <xs:element name="STATE" type="xs:integer"/>
50
        <xs:element name="RUNNING_VMS" type="xs:integer"/>
51
        <xs:element name="CLONING_OPS" type="xs:integer"/>
52
        <xs:element name="CLONING_ID" type="xs:integer"/>
53
        <xs:element name="TARGET_SNAPSHOT" type="xs:integer"/>
54
        <xs:element name="DATASTORE_ID" type="xs:integer"/>
55
        <xs:element name="DATASTORE" type="xs:string"/>
56
        <xs:element name="VMS">
57
          <xs:complexType>
58
            <xs:sequence>
59
              <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
60
            </xs:sequence>
61
          </xs:complexType>
62
        </xs:element>
63
        <xs:element name="CLONES">
64
          <xs:complexType>
65
            <xs:sequence>
66
              <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
67
            </xs:sequence>
68
          </xs:complexType>
69
        </xs:element>
70
        <xs:element name="APP_CLONES">
71
          <xs:complexType>
72
            <xs:sequence>
73
              <xs:element name="ID" type="xs:integer" minOccurs="0" maxOccurs="unbounded"/>
74
            </xs:sequence>
75
          </xs:complexType>
76
        </xs:element>
77
        <xs:element name="TEMPLATE" type="xs:anyType"/>
78
        <xs:element name="SNAPSHOTS">
79
          <xs:complexType>
80
            <xs:sequence>
81
              <xs:element name="ALLOW_ORPHANS" type="xs:string" minOccurs="0" maxOccurs="1"/>
82
              <xs:element name="SNAPSHOT" minOccurs="0" maxOccurs="unbounded">
83
                <xs:complexType>
84
                  <xs:sequence>
85
                    <xs:element name="CHILDREN" type="xs:string" minOccurs="0" maxOccurs="1"/>
86
                    <xs:element name="ACTIVE" type="xs:string" minOccurs="0" maxOccurs="1"/>
87
                    <xs:element name="DATE" type="xs:integer"/>
88
                    <xs:element name="ID" type="xs:integer"/>
89
                    <xs:element name="NAME" type="xs:string" minOccurs="0" maxOccurs="1"/>
90
                    <xs:element name="PARENT" type="xs:integer"/>
91
                    <xs:element name="SIZE" type="xs:integer"/>
92
                  </xs:sequence>
93
                </xs:complexType>
94
              </xs:element>
95
            </xs:sequence>
96
          </xs:complexType>
97
        </xs:element>
98
      </xs:sequence>
99
    </xs:complexType>
100
  </xs:element>
101
</xs:schema>