summaryrefslogtreecommitdiffstats
path: root/xml/api/stonith_admin-1.0.rng
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:53:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:53:20 +0000
commite5a812082ae033afb1eed82c0f2df3d0f6bdc93f (patch)
treea6716c9275b4b413f6c9194798b34b91affb3cc7 /xml/api/stonith_admin-1.0.rng
parentInitial commit. (diff)
downloadpacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.tar.xz
pacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.zip
Adding upstream version 2.1.6.upstream/2.1.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xml/api/stonith_admin-1.0.rng')
-rw-r--r--xml/api/stonith_admin-1.0.rng92
1 files changed, 92 insertions, 0 deletions
diff --git a/xml/api/stonith_admin-1.0.rng b/xml/api/stonith_admin-1.0.rng
new file mode 100644
index 0000000..dd52a63
--- /dev/null
+++ b/xml/api/stonith_admin-1.0.rng
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+ datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+ <start>
+ <ref name="element-stonith-admin"/>
+ </start>
+
+ <define name="element-stonith-admin">
+ <choice>
+ <ref name="stonith-admin-list" />
+ <ref name="element-last-fenced" />
+ <ref name="element-validation" />
+ <element name="metadata"> <text /> </element>
+ </choice>
+ </define>
+
+ <define name="stonith-admin-list">
+ <element name="list">
+ <attribute name="name"> <text /> </attribute>
+ <attribute name="count"> <data type="nonNegativeInteger" /> </attribute>
+ <choice>
+ <zeroOrMore>
+ <ref name="fencing-history-event" />
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="fencing-target" />
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="device" />
+ </zeroOrMore>
+ </choice>
+ </element>
+ </define>
+
+ <define name="device">
+ <element name="item">
+ <attribute name="name"> <value>device</value> </attribute>
+ <data type="NCName" />
+ </element>
+ </define>
+
+ <define name="fencing-target">
+ <element name="target">
+ <attribute name="hostname"> <text /> </attribute>
+ <attribute name="uuid"> <text /> </attribute>
+ <attribute name="status"> <text /> </attribute>
+ </element>
+ </define>
+
+ <define name="element-last-fenced">
+ <element name="last-fenced">
+ <attribute name="target"> <text /> </attribute>
+ <attribute name="when"> <text /> </attribute>
+ </element>
+ </define>
+
+ <define name="element-validation">
+ <element name="validate">
+ <attribute name="agent"> <text /> </attribute>
+ <attribute name="valid"> <data type="boolean" /> </attribute>
+ <optional>
+ <externalRef href="command-output-1.0.rng" />
+ </optional>
+ </element>
+ </define>
+
+ <define name="fencing-history-event">
+ <element name="fence_event">
+ <attribute name="status">
+ <choice>
+ <value>failed</value>
+ <value>success</value>
+ <value>pending</value>
+ </choice>
+ </attribute>
+ <optional>
+ <attribute name="extended-status"> <text /> </attribute>
+ </optional>
+ <optional>
+ <attribute name="delegate"> <text /> </attribute>
+ </optional>
+ <attribute name="action"> <text /> </attribute>
+ <attribute name="target"> <text /> </attribute>
+ <attribute name="client"> <text /> </attribute>
+ <attribute name="origin"> <text /> </attribute>
+ <optional>
+ <attribute name="completed"> <text /> </attribute>
+ </optional>
+ </element>
+ </define>
+</grammar>