跳过导航链接
退出打印视图
| Oracle VM Server for SPARC 2.0 管理指南

搜索范围:

- 本文档
- 整个文档库

### `LDM_interface` XML 模式

此模式是开放式虚拟机格式 (Open Virtualization Format, OVF) 草稿规范 0.98 版

示例 E-1 `LDM_interface` XML 模式

    <?xml version="1.0"?>
    xs:schema
         xmlns:ovf="/var/opt/SUNWldom/envelope"
         xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:import namespace="/var/opt/SUNWldom/envelope" schemaLocation="ovf-envelope.xsd"/>

         <xs:annotation>
              <xs:documentation>
                   Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
              </xs:documentation>
         </xs:annotation>

    <!--
    ==================
    Type Definitions
    ==================
    -->
      <xs:simpleType name="statusStringType">
        <xs:restriction base="xs:string">
          <xs:enumeration value="success"/>
          <xs:enumeration value="failure"/>
        </xs:restriction>
      </xs:simpleType>

      <xs:complexType name="responseType">
        <xs:sequence>
          <xs:element name="status" type="statusStringType"/>
          <xs:element name="resp_msg" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:complexType>

      <!-- LDM interface document -->
      <xs:element name="LDM_interface">
        <xs:complexType>
          <xs:sequence>

            <!-- START cmd -->
            <xs:element name="cmd" minOccurs="1" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="action" type="xs:string" minOccurs="0"/>

                  <!-- START data -->
                  <xs:element name="data" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:choice minOccurs="1" maxOccurs="unbounded">

                        <!--OVF Evelope Version 0.9 -->
                        <xs:element name="Envelope" type="ovf:Envelope_Type"/>
                        <!-- DATA response -->
                        <xs:element name="response" type="responseType" minOccurs="0" maxOccurs="1"/>
                     </xs:choice>
                     <xs:attribute name="version" type="xs:string" use="required"/>
                    </xs:complexType>
                  </xs:element> <!-- END data -->

                  <!-- CMD response -->
                  <xs:element name="response" type="responseType" minOccurs="0" maxOccurs="1"/>

                </xs:sequence>
              </xs:complexType>
            </xs:element> <!-- END cmd -->

            <!-- DOCUMENT response -->
            <xs:element name="response" type="responseType" minOccurs="0" maxOccurs="1"/>

          </xs:sequence>
          <xs:attribute name="version" type="xs:string" use="required"/>
        </xs:complexType>
      </xs:element> <!-- LDM interface document -->

    </xs:schema>

版权所有 © 2007, 2010, Oracle 和/或其附属公司。 保留所有权利。 法律声明 |