1{
2    "$id": "http://redfish.dmtf.org/schemas/v1/MessageRegistry.v1_6_3.json",
3    "$ref": "#/definitions/MessageRegistry",
4    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5    "copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6    "definitions": {
7        "Actions": {
8            "additionalProperties": false,
9            "description": "The available actions for this resource.",
10            "longDescription": "This type shall contain the available actions for this resource.",
11            "patternProperties": {
12                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13                    "description": "This property shall specify a valid odata or Redfish property.",
14                    "type": [
15                        "array",
16                        "boolean",
17                        "integer",
18                        "number",
19                        "null",
20                        "object",
21                        "string"
22                    ]
23                }
24            },
25            "properties": {
26                "Oem": {
27                    "$ref": "#/definitions/OemActions",
28                    "description": "The available OEM-specific actions for this resource.",
29                    "longDescription": "This property shall contain the available OEM-specific actions for this resource.",
30                    "versionAdded": "v1_1_0"
31                }
32            },
33            "type": "object"
34        },
35        "ClearingLogic": {
36            "additionalProperties": false,
37            "description": "The clearing logic associated with a message.  The properties within indicate the events, specified by message keys for other messages in this registry, that are cleared by a message with optional conditions.",
38            "longDescription": "This type shall contain the clearing logic associated with a message.",
39            "patternProperties": {
40                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
41                    "description": "This property shall specify a valid odata or Redfish property.",
42                    "type": [
43                        "array",
44                        "boolean",
45                        "integer",
46                        "number",
47                        "null",
48                        "object",
49                        "string"
50                    ]
51                }
52            },
53            "properties": {
54                "ClearsAll": {
55                    "description": "Indicates whether all logged events containing messages from this message registry are cleared when this message is received.  If conditional properties are present, such as the `ClearsIf` property, the specified conditions shall be required to clear the logged events.",
56                    "longDescription": "This property shall indicate whether all logged events containing messages from this message registry are cleared when this message is received.  If conditional properties are present, such as the `ClearsIf` property, the specified conditions are required to clear the logged events.",
57                    "readonly": true,
58                    "type": [
59                        "boolean",
60                        "null"
61                    ],
62                    "versionAdded": "v1_2_0"
63                },
64                "ClearsIf": {
65                    "anyOf": [
66                        {
67                            "$ref": "#/definitions/ClearingType"
68                        },
69                        {
70                            "type": "null"
71                        }
72                    ],
73                    "description": "The condition required to clear the logged events specified by other properties in this object when this message is received.",
74                    "longDescription": "This property shall contain the condition required to clear the logged events specified by other properties in this object when this message is received.  If not present, no condition is checked prior to clearing logged events when this message is received.",
75                    "readonly": true,
76                    "versionAdded": "v1_2_0"
77                },
78                "ClearsMessage": {
79                    "description": "An array of message keys for logged events that are cleared when this message is received.  If conditional properties are present, such as the `ClearsIf` property, the specified conditions are required to clear the logged events with these message keys.",
80                    "items": {
81                        "type": [
82                            "string",
83                            "null"
84                        ]
85                    },
86                    "longDescription": "This property shall contain an array of message keys for logged events that are cleared when this message is received.  If conditional properties are present, such as the `ClearsIf` property, the specified conditions shall be required to clear the logged events with these message keys.  This property shall contain message keys, without message registry names and versions, as defined in the 'MessageId format' clause of the Redfish Specification.  This property shall not reference message keys in other message registries.",
87                    "readonly": true,
88                    "type": "array",
89                    "versionAdded": "v1_2_0"
90                }
91            },
92            "type": "object"
93        },
94        "ClearingType": {
95            "enum": [
96                "SameOriginOfCondition"
97            ],
98            "enumDescriptions": {
99                "SameOriginOfCondition": "Indicates that a logged event is cleared by a message if the `OriginOfCondition` for both events are the same."
100            },
101            "enumLongDescriptions": {
102                "SameOriginOfCondition": "This value shall indicate that a logged event is cleared by a message if the `OriginOfCondition` for both events are the same."
103            },
104            "type": "string"
105        },
106        "Message": {
107            "additionalProperties": false,
108            "description": "This type represents how a message is defined within the message registry.",
109            "longDescription": "The type shall represent how a message is defined within a message registry.",
110            "patternProperties": {
111                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
112                    "description": "This property shall specify a valid odata or Redfish property.",
113                    "type": [
114                        "array",
115                        "boolean",
116                        "integer",
117                        "number",
118                        "null",
119                        "object",
120                        "string"
121                    ]
122                }
123            },
124            "properties": {
125                "ArgDescriptions": {
126                    "description": "The `MessageArgs` descriptions, in order, used for this message.",
127                    "items": {
128                        "type": [
129                            "string",
130                            "null"
131                        ]
132                    },
133                    "longDescription": "This property shall contain an ordered array of text describing each argument used as substitution in the message.",
134                    "readonly": true,
135                    "type": "array",
136                    "versionAdded": "v1_3_0"
137                },
138                "ArgLongDescriptions": {
139                    "description": "The `MessageArgs` normative descriptions, in order, used for this message.",
140                    "items": {
141                        "type": [
142                            "string",
143                            "null"
144                        ]
145                    },
146                    "longDescription": "This property shall contain an ordered array of normative language for each argument used as substitution in the message.",
147                    "readonly": true,
148                    "type": "array",
149                    "versionAdded": "v1_3_0"
150                },
151                "ClearingLogic": {
152                    "$ref": "#/definitions/ClearingLogic",
153                    "description": "The clearing logic associated with this message.  The properties within indicate the events, specified by message keys for other messages in this registry, that are cleared by this message with optional conditions.",
154                    "longDescription": "This property shall contain the clearing logic associated with this message.  Clearing in this context deasserts the event rather than removes the event from a log.",
155                    "versionAdded": "v1_2_0"
156                },
157                "Deprecated": {
158                    "description": "The reason the message has been deprecated.",
159                    "longDescription": "This property shall indicate that a message is deprecated.  The value of the string should explain the deprecation, including reference to a new message or messages to be used.  The message can be supported in new and existing implementations, but usage in new implementations is discouraged.  Deprecated messages are likely to be removed in a future major version of the message registry.  The `ReplacedBy` property may be used to provide a reference to a replacement message definition.",
160                    "readonly": true,
161                    "type": [
162                        "string",
163                        "null"
164                    ],
165                    "versionAdded": "v1_5_0"
166                },
167                "Description": {
168                    "description": "A short description of how and when to use this message.",
169                    "longDescription": "This property shall indicate how and when this message is returned by the Redfish service.",
170                    "readonly": true,
171                    "type": "string"
172                },
173                "LongDescription": {
174                    "description": "The normative language that describes this message's usage.",
175                    "longDescription": "This property shall contain the normative language that describes this message's usage in a Redfish implementation.",
176                    "readonly": true,
177                    "type": [
178                        "string",
179                        "null"
180                    ],
181                    "versionAdded": "v1_3_0"
182                },
183                "MapsToGeneralMessages": {
184                    "description": "The general or less-specific messages related to this message.",
185                    "items": {
186                        "type": [
187                            "string",
188                            "null"
189                        ]
190                    },
191                    "longDescription": "This property shall indicate that this message maps to general or less-specific messages that duplicates information about the condition that generated this message.  Services may issue the referenced messages along with this message to provide consistency for clients.  The array shall contain `MessageRegistryPrefix.MessageKey` formatted values that describe the message registry and message key used to identify the messages.",
192                    "pattern": "^[A-Z]\\w+\\.[A-Z]\\w+$",
193                    "readonly": true,
194                    "type": "array",
195                    "versionAdded": "v1_6_0"
196                },
197                "Message": {
198                    "description": "The actual message.",
199                    "longDescription": "This property shall contain the message to display.  If a %integer is included in part of the string, it shall represent a string substitution for any `MessageArgs` that accompany the message, in order.",
200                    "readonly": true,
201                    "type": "string"
202                },
203                "MessageSeverity": {
204                    "anyOf": [
205                        {
206                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Health"
207                        },
208                        {
209                            "type": "null"
210                        }
211                    ],
212                    "description": "The severity of the message.",
213                    "longDescription": "This property shall contain the severity of the message.  Services can replace the severity defined in the message registry with a value more applicable to the implementation in message payloads and event payloads.",
214                    "readonly": true,
215                    "versionAdded": "v1_4_0"
216                },
217                "NumberOfArgs": {
218                    "description": "The number of arguments in the message.",
219                    "longDescription": "This property shall contain the number of arguments that are substituted for the locations marked with %<integer> in the message.",
220                    "minimum": 0,
221                    "readonly": true,
222                    "type": "integer"
223                },
224                "Oem": {
225                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
226                    "description": "The OEM extension property.",
227                    "longDescription": "This property shall contain the OEM extensions.  All values for properties contained in this object shall conform to the Redfish Specification-described requirements."
228                },
229                "ParamTypes": {
230                    "description": "The data types of the message arguments, prior to conversion to strings for inclusion in a message.",
231                    "items": {
232                        "$ref": "#/definitions/ParamType"
233                    },
234                    "longDescription": "This property shall contain an ordered array of the data types of the values in `MessageArgs`, prior to their conversion to strings for inclusion in a message.",
235                    "readonly": true,
236                    "type": "array"
237                },
238                "ReplacedBy": {
239                    "description": "The message identifier that replaces this message.",
240                    "longDescription": "This property shall contain the message registry and message key, in the `MessageRegistryPrefix.MessageKey` format, that identifies the message that replaces this message.  This property may be used to indicate replacement for a deprecated message, including cases where a standardized version replaces an OEM-created message.",
241                    "pattern": "^[A-Z]\\w+\\.[A-Z]\\w+$",
242                    "readonly": true,
243                    "type": [
244                        "string",
245                        "null"
246                    ],
247                    "versionAdded": "v1_6_0"
248                },
249                "Resolution": {
250                    "description": "Used to provide suggestions on how to resolve the situation that caused the error.",
251                    "longDescription": "This property shall contain the resolution of the message.  Services can replace the resolution defined in the message registry with a more specific resolution in message payloads.",
252                    "readonly": true,
253                    "type": "string"
254                },
255                "Severity": {
256                    "deprecated": "This property has been deprecated in favor of `MessageSeverity`, which ties the values to the enumerations defined for the `Health` property within `Status`.",
257                    "description": "The severity of the message.",
258                    "longDescription": "This property shall contain the severity of the condition resulting in the message, as defined in the 'Status' clause of the Redfish Specification.  Services can replace the severity defined in the message registry with a value more applicable to the implementation in message payloads and event payloads.",
259                    "readonly": true,
260                    "type": "string",
261                    "versionDeprecated": "v1_4_0"
262                },
263                "VersionAdded": {
264                    "description": "The registry version which added this message.",
265                    "longDescription": "This property shall contain the version of the message registry when the message was added.  This property shall not appear for messages created at version `1.0.0` of a message registry.",
266                    "pattern": "^\\d+\\.\\d+\\.\\d+$",
267                    "readonly": true,
268                    "type": [
269                        "string",
270                        "null"
271                    ],
272                    "versionAdded": "v1_5_0"
273                },
274                "VersionDeprecated": {
275                    "description": "The registry version when the message was deprecated.",
276                    "longDescription": "This property shall contain the version of the registry when the message was deprecated.  This property shall not appear if the message has not been deprecated.",
277                    "pattern": "^\\d+\\.\\d+\\.\\d+$",
278                    "readonly": true,
279                    "type": [
280                        "string",
281                        "null"
282                    ],
283                    "versionAdded": "v1_5_0"
284                }
285            },
286            "required": [
287                "Description",
288                "Message",
289                "Severity",
290                "NumberOfArgs",
291                "Resolution",
292                "MessageSeverity"
293            ],
294            "type": "object"
295        },
296        "MessageProperty": {
297            "additionalProperties": false,
298            "description": "The message keys contained in the message registry.",
299            "longDescription": "This type shall contain the message keys contained in the message registry.  The message keys are the suffix of the `MessageId` and shall be unique within this message registry.",
300            "patternProperties": {
301                "[A-Za-z0-9]+": {
302                    "$ref": "#/definitions/Message"
303                },
304                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
305                    "description": "This property shall specify a valid odata or Redfish property.",
306                    "type": [
307                        "array",
308                        "boolean",
309                        "integer",
310                        "number",
311                        "null",
312                        "object",
313                        "string"
314                    ]
315                }
316            },
317            "properties": {},
318            "type": "object"
319        },
320        "MessageRegistry": {
321            "additionalProperties": false,
322            "description": "The `MessageRegistry` schema describes all message registries.  It represents the properties for the message registries themselves.",
323            "longDescription": "This resource shall represent a message registry for a Redfish implementation.",
324            "patternProperties": {
325                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
326                    "description": "This property shall specify a valid odata or Redfish property.",
327                    "type": [
328                        "array",
329                        "boolean",
330                        "integer",
331                        "number",
332                        "null",
333                        "object",
334                        "string"
335                    ]
336                }
337            },
338            "properties": {
339                "@odata.type": {
340                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
341                },
342                "Actions": {
343                    "$ref": "#/definitions/Actions",
344                    "description": "The available actions for this resource.",
345                    "longDescription": "This property shall contain the available actions for this resource.",
346                    "versionAdded": "v1_1_0"
347                },
348                "Description": {
349                    "anyOf": [
350                        {
351                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
352                        },
353                        {
354                            "type": "null"
355                        }
356                    ],
357                    "readonly": true
358                },
359                "Id": {
360                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
361                    "readonly": true
362                },
363                "Language": {
364                    "description": "The RFC5646-conformant language code for the message registry.",
365                    "longDescription": "This property shall contain an RFC5646-conformant language code.",
366                    "readonly": true,
367                    "type": "string"
368                },
369                "Messages": {
370                    "$ref": "#/definitions/MessageProperty",
371                    "description": "The message keys contained in the message registry.",
372                    "longDescription": "This property shall contain the message keys contained in the message registry.  The message keys are the suffix of the `MessageId` and shall be unique within this message registry."
373                },
374                "Name": {
375                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
376                    "readonly": true
377                },
378                "Oem": {
379                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
380                    "description": "The OEM extension property.",
381                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
382                },
383                "OwningEntity": {
384                    "description": "The organization or company that publishes this message registry.",
385                    "longDescription": "This property shall represent the publisher of this message registry.",
386                    "readonly": true,
387                    "type": "string"
388                },
389                "RegistryPrefix": {
390                    "description": "The single-word prefix that is used in forming and decoding `MessageId` values.",
391                    "longDescription": "This property shall contain the Redfish Specification-defined prefix used in forming and decoding `MessageId` values that uniquely identifies all messages that belong to this message registry.",
392                    "readonly": true,
393                    "type": "string"
394                },
395                "RegistryVersion": {
396                    "description": "The message registry version in the middle portion of a `MessageId`.",
397                    "longDescription": "This property shall contain the version of this message registry.",
398                    "pattern": "^\\d+\\.\\d+\\.\\d+$",
399                    "readonly": true,
400                    "type": "string"
401                }
402            },
403            "required": [
404                "Language",
405                "RegistryPrefix",
406                "RegistryVersion",
407                "OwningEntity",
408                "Messages",
409                "@odata.type",
410                "Id",
411                "Name"
412            ],
413            "type": "object"
414        },
415        "OemActions": {
416            "additionalProperties": true,
417            "description": "The available OEM-specific actions for this resource.",
418            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
419            "patternProperties": {
420                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
421                    "description": "This property shall specify a valid odata or Redfish property.",
422                    "type": [
423                        "array",
424                        "boolean",
425                        "integer",
426                        "number",
427                        "null",
428                        "object",
429                        "string"
430                    ]
431                }
432            },
433            "properties": {},
434            "type": "object"
435        },
436        "ParamType": {
437            "enum": [
438                "string",
439                "number"
440            ],
441            "enumDescriptions": {
442                "number": "The argument is a number converted to a string.",
443                "string": "The argument is a string."
444            },
445            "type": "string"
446        }
447    },
448    "language": "en",
449    "owningEntity": "DMTF",
450    "release": "2022.3",
451    "title": "#MessageRegistry.v1_6_3.MessageRegistry"
452}