host-1.0.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <schema targetNamespace="urn:ietf:params:xml:ns:host-1.0"
  3. xmlns:host="urn:ietf:params:xml:ns:host-1.0"
  4. xmlns:epp="urn:ietf:params:xml:ns:epp-1.0"
  5. xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0"
  6. xmlns="http://www.w3.org/2001/XMLSchema"
  7. elementFormDefault="qualified">
  8. <!--
  9. Import common element types.
  10. -->
  11. <import namespace="urn:ietf:params:xml:ns:eppcom-1.0"/>
  12. <import namespace="urn:ietf:params:xml:ns:epp-1.0"/>
  13. <annotation>
  14. <documentation>
  15. Extensible Provisioning Protocol v1.0
  16. host provisioning schema.
  17. </documentation>
  18. </annotation>
  19. <!--
  20. Child elements found in EPP commands.
  21. -->
  22. <element name="check" type="host:mNameType"/>
  23. <element name="create" type="host:createType"/>
  24. <element name="delete" type="host:sNameType"/>
  25. <element name="info" type="host:sNameType"/>
  26. <element name="update" type="host:updateType"/>
  27. <!--
  28. Child elements of the <create> command.
  29. -->
  30. <complexType name="createType">
  31. <sequence>
  32. <element name="name" type="eppcom:labelType"/>
  33. <element name="addr" type="host:addrType"
  34. minOccurs="0" maxOccurs="unbounded"/>
  35. </sequence>
  36. </complexType>
  37. <complexType name="addrType">
  38. <simpleContent>
  39. <extension base="host:addrStringType">
  40. <attribute name="ip" type="host:ipType"
  41. default="v4"/>
  42. </extension>
  43. </simpleContent>
  44. </complexType>
  45. <simpleType name="addrStringType">
  46. <restriction base="token">
  47. <minLength value="3"/>
  48. <maxLength value="45"/>
  49. </restriction>
  50. </simpleType>
  51. <simpleType name="ipType">
  52. <restriction base="token">
  53. <enumeration value="v4"/>
  54. <enumeration value="v6"/>
  55. </restriction>
  56. </simpleType>
  57. <!--
  58. Child elements of the <delete> and <info> commands.
  59. -->
  60. <complexType name="sNameType">
  61. <sequence>
  62. <element name="name" type="eppcom:labelType"/>
  63. </sequence>
  64. </complexType>
  65. <!--
  66. Child element of commands that accept multiple names.
  67. -->
  68. <complexType name="mNameType">
  69. <sequence>
  70. <element name="name" type="eppcom:labelType"
  71. maxOccurs="unbounded"/>
  72. </sequence>
  73. </complexType>
  74. <!--
  75. Child elements of the <update> command.
  76. -->
  77. <complexType name="updateType">
  78. <sequence>
  79. <element name="name" type="eppcom:labelType"/>
  80. <element name="add" type="host:addRemType"
  81. minOccurs="0"/>
  82. <element name="rem" type="host:addRemType"
  83. minOccurs="0"/>
  84. <element name="chg" type="host:chgType"
  85. minOccurs="0"/>
  86. </sequence>
  87. </complexType>
  88. <!--
  89. Data elements that can be added or removed.
  90. -->
  91. <complexType name="addRemType">
  92. <sequence>
  93. <element name="addr" type="host:addrType"
  94. minOccurs="0" maxOccurs="unbounded"/>
  95. <element name="status" type="host:statusType"
  96. minOccurs="0" maxOccurs="7"/>
  97. </sequence>
  98. </complexType>
  99. <!--
  100. Data elements that can be changed.
  101. -->
  102. <complexType name="chgType">
  103. <sequence>
  104. <element name="name" type="eppcom:labelType"/>
  105. </sequence>
  106. </complexType>
  107. <!--
  108. Child response elements.
  109. -->
  110. <element name="chkData" type="host:chkDataType"/>
  111. <element name="creData" type="host:creDataType"/>
  112. <element name="infData" type="host:infDataType"/>
  113. <element name="panData" type="host:panDataType"/>
  114. <!--
  115. <check> response elements.
  116. -->
  117. <complexType name="chkDataType">
  118. <sequence>
  119. <element name="cd" type="host:checkType"
  120. maxOccurs="unbounded"/>
  121. </sequence>
  122. </complexType>
  123. <complexType name="checkType">
  124. <sequence>
  125. <element name="name" type="host:checkNameType"/>
  126. <element name="reason" type="eppcom:reasonType"
  127. minOccurs="0"/>
  128. </sequence>
  129. </complexType>
  130. <complexType name="checkNameType">
  131. <simpleContent>
  132. <extension base="eppcom:labelType">
  133. <attribute name="avail" type="boolean"
  134. use="required"/>
  135. </extension>
  136. </simpleContent>
  137. </complexType>
  138. <!--
  139. <create> response elements.
  140. -->
  141. <complexType name="creDataType">
  142. <sequence>
  143. <element name="name" type="eppcom:labelType"/>
  144. <element name="crDate" type="dateTime"/>
  145. </sequence>
  146. </complexType>
  147. <!--
  148. <info> response elements.
  149. -->
  150. <complexType name="infDataType">
  151. <sequence>
  152. <element name="name" type="eppcom:labelType"/>
  153. <element name="roid" type="eppcom:roidType"/>
  154. <element name="status" type="host:statusType"
  155. maxOccurs="7"/>
  156. <element name="addr" type="host:addrType"
  157. minOccurs="0" maxOccurs="unbounded"/>
  158. <element name="clID" type="eppcom:clIDType"/>
  159. <element name="crID" type="eppcom:clIDType"/>
  160. <element name="crDate" type="dateTime"/>
  161. <element name="upID" type="eppcom:clIDType"
  162. minOccurs="0"/>
  163. <element name="upDate" type="dateTime"
  164. minOccurs="0"/>
  165. <element name="trDate" type="dateTime"
  166. minOccurs="0"/>
  167. </sequence>
  168. </complexType>
  169. <!--
  170. Status is a combination of attributes and an optional human-readable
  171. message that may be expressed in languages other than English.
  172. -->
  173. <complexType name="statusType">
  174. <simpleContent>
  175. <extension base="normalizedString">
  176. <attribute name="s" type="host:statusValueType"
  177. use="required"/>
  178. <attribute name="lang" type="language"
  179. default="en"/>
  180. </extension>
  181. </simpleContent>
  182. </complexType>
  183. <simpleType name="statusValueType">
  184. <restriction base="token">
  185. <enumeration value="clientDeleteProhibited"/>
  186. <enumeration value="clientUpdateProhibited"/>
  187. <enumeration value="linked"/>
  188. <enumeration value="ok"/>
  189. <enumeration value="pendingCreate"/>
  190. <enumeration value="pendingDelete"/>
  191. <enumeration value="pendingTransfer"/>
  192. <enumeration value="pendingUpdate"/>
  193. <enumeration value="serverDeleteProhibited"/>
  194. <enumeration value="serverUpdateProhibited"/>
  195. </restriction>
  196. </simpleType>
  197. <!--
  198. Pending action notification response elements.
  199. -->
  200. <complexType name="panDataType">
  201. <sequence>
  202. <element name="name" type="host:paNameType"/>
  203. <element name="paTRID" type="epp:trIDType"/>
  204. <element name="paDate" type="dateTime"/>
  205. </sequence>
  206. </complexType>
  207. <complexType name="paNameType">
  208. <simpleContent>
  209. <extension base="eppcom:labelType">
  210. <attribute name="paResult" type="boolean"
  211. use="required"/>
  212. </extension>
  213. </simpleContent>
  214. </complexType>
  215. <!--
  216. End of schema.
  217. -->
  218. </schema>