pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
xml_names_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2024 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__CRM_COMMON_XML_NAMES_INTERNAL__H
11 #define PCMK__CRM_COMMON_XML_NAMES_INTERNAL__H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 /*
18  * XML element names used only by internal code
19  */
20 
21 #define PCMK__XE_ACK "ack"
22 #define PCMK__XE_ATTRIBUTES "attributes"
23 #define PCMK__XE_CIB_CALLBACK "cib-callback"
24 #define PCMK__XE_CIB_CALLDATA "cib_calldata"
25 #define PCMK__XE_CIB_COMMAND "cib_command"
26 #define PCMK__XE_CIB_REPLY "cib-reply"
27 #define PCMK__XE_CIB_RESULT "cib_result"
28 #define PCMK__XE_CIB_TRANSACTION "cib_transaction"
29 #define PCMK__XE_CIB_UPDATE_RESULT "cib_update_result"
30 #define PCMK__XE_COPY "copy"
31 #define PCMK__XE_CRM_EVENT "crm_event"
32 #define PCMK__XE_CRM_XML "crm_xml"
33 #define PCMK__XE_DIV "div"
34 #define PCMK__XE_DOWNED "downed"
35 #define PCMK__XE_EXIT_NOTIFICATION "exit-notification"
36 #define PCMK__XE_FAILED_UPDATE "failed_update"
37 #define PCMK__XE_GENERATION_TUPLE "generation_tuple"
38 #define PCMK__XE_LRM "lrm"
39 #define PCMK__XE_LRM_RESOURCE "lrm_resource"
40 #define PCMK__XE_LRM_RESOURCES "lrm_resources"
41 #define PCMK__XE_LRM_RSC_OP "lrm_rsc_op"
42 #define PCMK__XE_LRMD_ALERT "lrmd_alert"
43 #define PCMK__XE_LRMD_CALLDATA "lrmd_calldata"
44 #define PCMK__XE_LRMD_COMMAND "lrmd_command"
45 #define PCMK__XE_LRMD_IPC_MSG "lrmd_ipc_msg"
46 #define PCMK__XE_LRMD_IPC_PROXY "lrmd_ipc_proxy"
47 #define PCMK__XE_LRMD_NOTIFY "lrmd_notify"
48 #define PCMK__XE_LRMD_REPLY "lrmd_reply"
49 #define PCMK__XE_LRMD_RSC "lrmd_rsc"
50 #define PCMK__XE_LRMD_RSC_OP "lrmd_rsc_op"
51 #define PCMK__XE_MAINTENANCE "maintenance"
52 #define PCMK__XE_META "meta"
53 #define PCMK__XE_NACK "nack"
54 #define PCMK__XE_NODE_STATE "node_state"
55 #define PCMK__XE_NOTIFY "notify"
56 #define PCMK__XE_OPTIONS "options"
57 #define PCMK__XE_PARAM "param"
58 #define PCMK__XE_PING "ping"
59 #define PCMK__XE_PING_RESPONSE "ping_response"
60 #define PCMK__XE_PSEUDO_EVENT "pseudo_event"
61 #define PCMK__XE_RESOURCE_SETTINGS "resource-settings"
62 #define PCMK__XE_RSC_OP "rsc_op"
63 #define PCMK__XE_SHUTDOWN "shutdown"
64 #define PCMK__XE_SPAN "span"
65 #define PCMK__XE_ST_ASYNC_TIMEOUT_VALUE "st-async-timeout-value"
66 #define PCMK__XE_ST_CALLDATA "st_calldata"
67 #define PCMK__XE_ST_DEVICE_ACTION "st_device_action"
68 #define PCMK__XE_ST_DEVICE_ID "st_device_id"
69 #define PCMK__XE_ST_HISTORY "st_history"
70 #define PCMK__XE_ST_NOTIFY_FENCE "st_notify_fence"
71 #define PCMK__XE_ST_REPLY "st-reply"
72 #define PCMK__XE_STONITH_COMMAND "stonith_command"
73 #define PCMK__XE_TICKET_STATE "ticket_state"
74 #define PCMK__XE_TRANSIENT_ATTRIBUTES "transient_attributes"
75 #define PCMK__XE_TRANSITION_GRAPH "transition_graph"
76 #define PCMK__XE_XPATH_QUERY "xpath-query"
77 #define PCMK__XE_XPATH_QUERY_PATH "xpath-query-path"
78 
79 // @COMPAT Deprecated since 1.1.12
80 #define PCMK__XE_ACL_USER "acl_user"
81 
82 /* @COMPAT Deprecate somehow. It's undocumented and behaves the same as
83  * PCMK__XE_CIB in places where it's recognized.
84  */
85 #define PCMK__XE_ALL "all"
86 
87 // @COMPAT Deprecated since 2.1.8
88 #define PCMK__XE_CIB_GENERATION "cib_generation"
89 
90 // @COMPAT Deprecated since 2.1.8
91 #define PCMK__XE_CIB_UPDATE "cib_update"
92 
93 // @COMPAT Deprecated since 1.1.12; used with legacy CIB updates
94 #define PCMK__XE_CIB_UPDATE_DIFF "cib_update_diff"
95 
96 // @COMPAT Deprecated since 2.1.7
97 #define PCMK__XE_DIFF_ADDED "diff-added"
98 
99 // @COMPAT Deprecated since 2.1.7
100 #define PCMK__XE_DIFF_REMOVED "diff-removed"
101 
102 // @COMPAT Deprecated since 2.1.8
103 #define PCMK__XE_FAILED "failed"
104 
105 // @COMPAT Deprecated since 1.0.8 (commit 4cb100f)
106 #define PCMK__XE_LIFETIME "lifetime"
107 
108 /* @COMPAT Deprecated since 2.0.0; alias for <clone> with PCMK_META_PROMOTABLE
109  * set to "true"
110  */
111 #define PCMK__XE_PROMOTABLE_LEGACY "master"
112 
113 // @COMPAT Support for rkt is deprecated since 2.1.8
114 #define PCMK__XE_RKT "rkt"
115 
116 // @COMPAT Deprecated since 1.1.12
117 #define PCMK__XE_ROLE_REF "role_ref"
118 
119 
120 /*
121  * XML attribute names used only by internal code
122  */
123 
124 #define PCMK__XA_ATTR_CLEAR_INTERVAL "attr_clear_interval"
125 #define PCMK__XA_ATTR_CLEAR_OPERATION "attr_clear_operation"
126 #define PCMK__XA_ATTR_DAMPENING "attr_dampening"
127 #define PCMK__XA_ATTR_HOST "attr_host"
128 #define PCMK__XA_ATTR_HOST_ID "attr_host_id"
129 #define PCMK__XA_ATTR_IS_PRIVATE "attr_is_private"
130 #define PCMK__XA_ATTR_IS_REMOTE "attr_is_remote"
131 #define PCMK__XA_ATTR_NAME "attr_name"
132 #define PCMK__XA_ATTR_REGEX "attr_regex"
133 #define PCMK__XA_ATTR_RESOURCE "attr_resource"
134 #define PCMK__XA_ATTR_SECTION "attr_section"
135 #define PCMK__XA_ATTR_SET "attr_set"
136 #define PCMK__XA_ATTR_SET_TYPE "attr_set_type"
137 #define PCMK__XA_ATTR_SYNC_POINT "attr_sync_point"
138 #define PCMK__XA_ATTR_USER "attr_user"
139 #define PCMK__XA_ATTR_VALUE "attr_value"
140 #define PCMK__XA_ATTR_VERSION "attr_version"
141 #define PCMK__XA_ATTR_WRITER "attr_writer"
142 #define PCMK__XA_ATTRD_IS_FORCE_WRITE "attrd_is_force_write"
143 #define PCMK__XA_CALL_ID "call-id"
144 #define PCMK__XA_CIB_CALLID "cib_callid"
145 #define PCMK__XA_CIB_CALLOPT "cib_callopt"
146 #define PCMK__XA_CIB_CLIENTID "cib_clientid"
147 #define PCMK__XA_CIB_CLIENTNAME "cib_clientname"
148 #define PCMK__XA_CIB_DELEGATED_FROM "cib_delegated_from"
149 #define PCMK__XA_CIB_HOST "cib_host"
150 #define PCMK__XA_CIB_ISREPLYTO "cib_isreplyto"
151 #define PCMK__XA_CIB_NOTIFY_ACTIVATE "cib_notify_activate"
152 #define PCMK__XA_CIB_NOTIFY_TYPE "cib_notify_type"
153 #define PCMK__XA_CIB_OP "cib_op"
154 #define PCMK__XA_CIB_PING_ID "cib_ping_id"
155 #define PCMK__XA_CIB_RC "cib_rc"
156 #define PCMK__XA_CIB_SCHEMA_MAX "cib_schema_max"
157 #define PCMK__XA_CIB_SECTION "cib_section"
158 #define PCMK__XA_CIB_UPDATE "cib_update"
159 #define PCMK__XA_CIB_UPGRADE_RC "cib_upgrade_rc"
160 #define PCMK__XA_CIB_USER "cib_user"
161 #define PCMK__XA_CLIENT_NAME "client_name"
162 #define PCMK__XA_CLIENT_UUID "client_uuid"
163 #define PCMK__XA_CONFIG_ERRORS "config-errors"
164 #define PCMK__XA_CONFIG_WARNINGS "config-warnings"
165 #define PCMK__XA_CONFIRM "confirm"
166 #define PCMK__XA_CONNECTION_HOST "connection_host"
167 #define PCMK__XA_CONTENT "content"
168 #define PCMK__XA_CRMD_STATE "crmd_state"
169 #define PCMK__XA_CRM_HOST_TO "crm_host_to"
170 #define PCMK__XA_CRM_LIMIT_MAX "crm-limit-max"
171 #define PCMK__XA_CRM_LIMIT_MODE "crm-limit-mode"
172 #define PCMK__XA_CRM_SUBSYSTEM "crm_subsystem"
173 #define PCMK__XA_CRM_SYS_FROM "crm_sys_from"
174 #define PCMK__XA_CRM_SYS_TO "crm_sys_to"
175 #define PCMK__XA_CRM_TASK "crm_task"
176 #define PCMK__XA_CRM_TGRAPH_IN "crm-tgraph-in"
177 #define PCMK__XA_CRM_USER "crm_user"
178 #define PCMK__XA_DC_LEAVING "dc-leaving"
179 #define PCMK__XA_DIGEST "digest"
180 #define PCMK__XA_ELECTION_AGE_SEC "election-age-sec"
181 #define PCMK__XA_ELECTION_AGE_NANO_SEC "election-age-nano-sec"
182 #define PCMK__XA_ELECTION_ID "election-id"
183 #define PCMK__XA_ELECTION_OWNER "election-owner"
184 #define PCMK__XA_GRANTED "granted"
185 #define PCMK__XA_GRAPH_ERRORS "graph-errors"
186 #define PCMK__XA_GRAPH_WARNINGS "graph-warnings"
187 #define PCMK__XA_HIDDEN "hidden"
188 #define PCMK__XA_HTTP_EQUIV "http-equiv"
189 #define PCMK__XA_IN_CCM "in_ccm"
190 #define PCMK__XA_JOIN "join"
191 #define PCMK__XA_JOIN_ID "join_id"
192 #define PCMK__XA_LINE "line"
193 #define PCMK__XA_LONG_ID "long-id"
194 #define PCMK__XA_LRMD_ALERT_ID "lrmd_alert_id"
195 #define PCMK__XA_LRMD_ALERT_PATH "lrmd_alert_path"
196 #define PCMK__XA_LRMD_CALLID "lrmd_callid"
197 #define PCMK__XA_LRMD_CALLOPT "lrmd_callopt"
198 #define PCMK__XA_LRMD_CLASS "lrmd_class"
199 #define PCMK__XA_LRMD_CLIENTID "lrmd_clientid"
200 #define PCMK__XA_LRMD_CLIENTNAME "lrmd_clientname"
201 #define PCMK__XA_LRMD_EXEC_OP_STATUS "lrmd_exec_op_status"
202 #define PCMK__XA_LRMD_EXEC_RC "lrmd_exec_rc"
203 #define PCMK__XA_LRMD_EXEC_TIME "lrmd_exec_time"
204 #define PCMK__XA_LRMD_IPC_CLIENT "lrmd_ipc_client"
205 #define PCMK__XA_LRMD_IPC_MSG_FLAGS "lrmd_ipc_msg_flags"
206 #define PCMK__XA_LRMD_IPC_MSG_ID "lrmd_ipc_msg_id"
207 #define PCMK__XA_LRMD_IPC_OP "lrmd_ipc_op"
208 #define PCMK__XA_LRMD_IPC_SERVER "lrmd_ipc_server"
209 #define PCMK__XA_LRMD_IPC_SESSION "lrmd_ipc_session"
210 #define PCMK__XA_LRMD_IPC_USER "lrmd_ipc_user"
211 #define PCMK__XA_LRMD_IS_IPC_PROVIDER "lrmd_is_ipc_provider"
212 #define PCMK__XA_LRMD_OP "lrmd_op"
213 #define PCMK__XA_LRMD_ORIGIN "lrmd_origin"
214 #define PCMK__XA_LRMD_PROTOCOL_VERSION "lrmd_protocol_version"
215 #define PCMK__XA_LRMD_PROVIDER "lrmd_provider"
216 #define PCMK__XA_LRMD_QUEUE_TIME "lrmd_queue_time"
217 #define PCMK__XA_LRMD_RC "lrmd_rc"
218 #define PCMK__XA_LRMD_RCCHANGE_TIME "lrmd_rcchange_time"
219 #define PCMK__XA_LRMD_REMOTE_MSG_ID "lrmd_remote_msg_id"
220 #define PCMK__XA_LRMD_REMOTE_MSG_TYPE "lrmd_remote_msg_type"
221 #define PCMK__XA_LRMD_RSC_ACTION "lrmd_rsc_action"
222 #define PCMK__XA_LRMD_RSC_DELETED "lrmd_rsc_deleted"
223 #define PCMK__XA_LRMD_RSC_EXIT_REASON "lrmd_rsc_exit_reason"
224 #define PCMK__XA_LRMD_RSC_ID "lrmd_rsc_id"
225 #define PCMK__XA_LRMD_RSC_INTERVAL "lrmd_rsc_interval"
226 #define PCMK__XA_LRMD_RSC_OUTPUT "lrmd_rsc_output"
227 #define PCMK__XA_LRMD_RSC_START_DELAY "lrmd_rsc_start_delay"
228 #define PCMK__XA_LRMD_RSC_USERDATA_STR "lrmd_rsc_userdata_str"
229 #define PCMK__XA_LRMD_RUN_TIME "lrmd_run_time"
230 #define PCMK__XA_LRMD_TIMEOUT "lrmd_timeout"
231 #define PCMK__XA_LRMD_TYPE "lrmd_type"
232 #define PCMK__XA_LRMD_WATCHDOG "lrmd_watchdog"
233 #define PCMK__XA_MAJOR_VERSION "major_version"
234 #define PCMK__XA_MINOR_VERSION "minor_version"
235 #define PCMK__XA_MODE "mode"
236 #define PCMK__XA_MOON "moon"
237 #define PCMK__XA_NAMESPACE "namespace"
238 #define PCMK__XA_NODE_FENCED "node_fenced"
239 #define PCMK__XA_NODE_IN_MAINTENANCE "node_in_maintenance"
240 #define PCMK__XA_NODE_START_STATE "node_start_state"
241 #define PCMK__XA_NODE_STATE "node_state"
242 #define PCMK__XA_OP_DIGEST "op-digest"
243 #define PCMK__XA_OP_FORCE_RESTART "op-force-restart"
244 #define PCMK__XA_OP_RESTART_DIGEST "op-restart-digest"
245 #define PCMK__XA_OP_SECURE_DIGEST "op-secure-digest"
246 #define PCMK__XA_OP_SECURE_PARAMS "op-secure-params"
247 #define PCMK__XA_OP_STATUS "op-status"
248 #define PCMK__XA_OPERATION_KEY "operation_key"
249 #define PCMK__XA_ORIGINAL_CIB_OP "original_cib_op"
250 #define PCMK__XA_PACEMAKERD_STATE "pacemakerd_state"
251 #define PCMK__XA_PASSWORD "password"
252 #define PCMK__XA_PRIORITY "priority"
253 #define PCMK__XA_RC_CODE "rc-code"
254 #define PCMK__XA_REAP "reap"
255 
256 /* Actions to be executed on Pacemaker Remote nodes are routed through the
257  * controller on the cluster node hosting the remote connection. That cluster
258  * node is considered the router node for the action.
259  */
260 #define PCMK__XA_ROUTER_NODE "router_node"
261 
262 #define PCMK__XA_RSC_ID "rsc-id"
263 #define PCMK__XA_RSC_PROVIDES "rsc_provides"
264 #define PCMK__XA_SCHEMA "schema"
265 #define PCMK__XA_SCHEMAS "schemas"
266 #define PCMK__XA_SET "set"
267 #define PCMK__XA_SRC "src"
268 #define PCMK__XA_ST_ACTION_DISALLOWED "st_action_disallowed"
269 #define PCMK__XA_ST_ACTION_TIMEOUT "st_action_timeout"
270 #define PCMK__XA_ST_AVAILABLE_DEVICES "st-available-devices"
271 #define PCMK__XA_ST_CALLID "st_callid"
272 #define PCMK__XA_ST_CALLOPT "st_callopt"
273 #define PCMK__XA_ST_CLIENTID "st_clientid"
274 #define PCMK__XA_ST_CLIENTNAME "st_clientname"
275 #define PCMK__XA_ST_CLIENTNODE "st_clientnode"
276 #define PCMK__XA_ST_DATE "st_date"
277 #define PCMK__XA_ST_DATE_NSEC "st_date_nsec"
278 #define PCMK__XA_ST_DELAY "st_delay"
279 #define PCMK__XA_ST_DELAY_BASE "st_delay_base"
280 #define PCMK__XA_ST_DELAY_MAX "st_delay_max"
281 #define PCMK__XA_ST_DELEGATE "st_delegate"
282 #define PCMK__XA_ST_DEVICE_ACTION "st_device_action"
283 #define PCMK__XA_ST_DEVICE_ID "st_device_id"
284 #define PCMK__XA_ST_DEVICE_SUPPORT_FLAGS "st_device_support_flags"
285 #define PCMK__XA_ST_DIFFERENTIAL "st_differential"
286 #define PCMK__XA_ST_MONITOR_VERIFIED "st_monitor_verified"
287 #define PCMK__XA_ST_NOTIFY_ACTIVATE "st_notify_activate"
288 #define PCMK__XA_ST_NOTIFY_DEACTIVATE "st_notify_deactivate"
289 #define PCMK__XA_ST_OP "st_op"
290 #define PCMK__XA_ST_OP_MERGED "st_op_merged"
291 #define PCMK__XA_ST_ORIGIN "st_origin"
292 #define PCMK__XA_ST_OUTPUT "st_output"
293 #define PCMK__XA_ST_RC "st_rc"
294 #define PCMK__XA_ST_REMOTE_OP "st_remote_op"
295 #define PCMK__XA_ST_REMOTE_OP_RELAY "st_remote_op_relay"
296 #define PCMK__XA_ST_REQUIRED "st_required"
297 #define PCMK__XA_ST_STATE "st_state"
298 #define PCMK__XA_ST_TARGET "st_target"
299 #define PCMK__XA_ST_TIMEOUT "st_timeout"
300 #define PCMK__XA_ST_TOLERANCE "st_tolerance"
301 #define PCMK__XA_SUBT "subt" // subtype
302 #define PCMK__XA_T "t" // type
303 #define PCMK__XA_TRANSITION_KEY "transition-key"
304 #define PCMK__XA_TRANSITION_MAGIC "transition-magic"
305 #define PCMK__XA_UPTIME "uptime"
306 
307 // @COMPAT Deprecated since 2.1.8
308 #define PCMK__XA_CIB_OBJECT "cib_object"
309 
310 // @COMPAT Deprecated since 2.1.8
311 #define PCMK__XA_CIB_OBJECT_TYPE "cib_object_type"
312 
313 // @COMPAT Deprecated since 1.1.12; used with legacy CIB updates
314 #define PCMK__XA_CIB_LOCAL_NOTIFY_ID "cib_local_notify_id"
315 
316 // @COMPAT Used only with v1 patchsets
317 #define PCMK__XA_CRM_DIFF_MARKER "__crm_diff_marker__"
318 
319 // @COMPAT Deprecated since 2.1.5
320 #define PCMK__XA_FIRST_INSTANCE "first-instance"
321 
322 // @COMPAT Deprecated since 2.1.7
323 #define PCMK__XA_ORDERING "ordering"
324 
325 // @COMPAT Deprecated alias for PCMK_XA_PROMOTED_MAX since 2.0.0
326 #define PCMK__XA_PROMOTED_MAX_LEGACY "masters"
327 
328 // @COMPAT Deprecated alias for PCMK_XA_PROMOTED_ONLY since 2.0.0
329 #define PCMK__XA_PROMOTED_ONLY_LEGACY "master_only"
330 
331 // @COMPAT Deprecated since 1.1.12
332 #define PCMK__XA_REF "ref"
333 
334 // @COMPAT Deprecated since 2.1.6
335 #define PCMK__XA_REPLACE "replace"
336 
337 // @COMPAT Deprecated alias for \c PCMK_XA_AUTOMATIC since 1.1.14
338 #define PCMK__XA_REQUIRED "required"
339 
340 // @COMPAT Deprecated since 2.1.5
341 #define PCMK__XA_RSC_INSTANCE "rsc-instance"
342 
343 // @COMPAT Deprecated since 2.1.5
344 #define PCMK__XA_THEN_INSTANCE "then-instance"
345 
346 // @COMPAT Deprecated since 2.1.5
347 #define PCMK__XA_WITH_RSC_INSTANCE "with-rsc-instance"
348 
349 #ifdef __cplusplus
350 }
351 #endif
352 
353 #endif // PCMK__CRM_COMMON_XML_NAMES_INTERNAL__H