1 /*
2 // Copyright (c) 2020 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
16 /****************************************************************
17  * This is an auto-generated header which contains definitions
18  * for Redfish DMTF defined messages.
19  ***************************************************************/
20 #pragma once
21 #include <registries.hpp>
22 
23 namespace redfish::message_registries::base
24 {
25 const Header header = {
26     "Copyright 2014-2020 DMTF. All rights reserved.",
27     "#MessageRegistry.v1_4_0.MessageRegistry",
28     "Base.1.8.1",
29     "Base Message Registry",
30     "en",
31     "This registry defines the base messages for Redfish",
32     "Base",
33     "1.8.1",
34     "DMTF",
35 };
36 constexpr const char* url =
37     "https://redfish.dmtf.org/registries/Base.1.8.1.json";
38 
39 constexpr std::array<MessageEntry, 74> registry = {
40     MessageEntry{
41         "AccessDenied",
42         {
43             "Indicates that while attempting to access, connect to or transfer "
44             "to/from another resource, the service denied access.",
45             "While attempting to establish a connection to %1, the service "
46             "denied access.",
47             "Critical",
48             "Critical",
49             1,
50             {
51                 "string",
52             },
53             "Attempt to ensure that the URI is correct and that the service "
54             "has the appropriate credentials.",
55         }},
56     MessageEntry{"AccountForSessionNoLongerExists",
57                  {
58                      "Indicates that the account for the session has been "
59                      "removed, thus the session has been removed as well.",
60                      "The account for the current session has been removed, "
61                      "thus the current session has been removed as well.",
62                      "OK",
63                      "OK",
64                      0,
65                      {},
66                      "Attempt to connect with a valid account.",
67                  }},
68     MessageEntry{"AccountModified",
69                  {
70                      "Indicates that the account was successfully modified.",
71                      "The account was successfully modified.",
72                      "OK",
73                      "OK",
74                      0,
75                      {},
76                      "No resolution is required.",
77                  }},
78     MessageEntry{"AccountNotModified",
79                  {
80                      "Indicates that the modification requested for the "
81                      "account was not successful.",
82                      "The account modification request failed.",
83                      "Warning",
84                      "Warning",
85                      0,
86                      {},
87                      "The modification may have failed due to permission "
88                      "issues or issues with the request body.",
89                  }},
90     MessageEntry{"AccountRemoved",
91                  {
92                      "Indicates that the account was successfully removed.",
93                      "The account was successfully removed.",
94                      "OK",
95                      "OK",
96                      0,
97                      {},
98                      "No resolution is required.",
99                  }},
100     MessageEntry{
101         "ActionNotSupported",
102         {
103             "Indicates that the action supplied with the POST operation is not "
104             "supported by the resource.",
105             "The action %1 is not supported by the resource.",
106             "Critical",
107             "Critical",
108             1,
109             {
110                 "string",
111             },
112             "The action supplied cannot be resubmitted to the implementation.  "
113             "Perhaps the action was invalid, the wrong resource was the target "
114             "or the implementation documentation may be of assistance.",
115         }},
116     MessageEntry{"ActionParameterDuplicate",
117                  {
118                      "Indicates that the action was supplied with a duplicated "
119                      "parameter in the request body.",
120                      "The action %1 was submitted with more than one value for "
121                      "the parameter %2.",
122                      "Warning",
123                      "Warning",
124                      2,
125                      {
126                          "string",
127                          "string",
128                      },
129                      "Resubmit the action with only one instance of the "
130                      "parameter in the request body if the operation failed.",
131                  }},
132     MessageEntry{"ActionParameterMissing",
133                  {
134                      "Indicates that the action requested was missing a "
135                      "parameter that is required to process the action.",
136                      "The action %1 requires the parameter %2 to be present in "
137                      "the request body.",
138                      "Critical",
139                      "Critical",
140                      2,
141                      {
142                          "string",
143                          "string",
144                      },
145                      "Supply the action with the required parameter in the "
146                      "request body when the request is resubmitted.",
147                  }},
148     MessageEntry{"ActionParameterNotSupported",
149                  {
150                      "Indicates that the parameter supplied for the action is "
151                      "not supported on the resource.",
152                      "The parameter %1 for the action %2 is not supported on "
153                      "the target resource.",
154                      "Warning",
155                      "Warning",
156                      2,
157                      {
158                          "string",
159                          "string",
160                      },
161                      "Remove the parameter supplied and resubmit the request "
162                      "if the operation failed.",
163                  }},
164     MessageEntry{
165         "ActionParameterUnknown",
166         {
167             "Indicates that an action was submitted but a parameter supplied "
168             "did not match any of the known parameters.",
169             "The action %1 was submitted with the invalid parameter %2.",
170             "Warning",
171             "Warning",
172             2,
173             {
174                 "string",
175                 "string",
176             },
177             "Correct the invalid parameter and resubmit the request if the "
178             "operation failed.",
179         }},
180     MessageEntry{"ActionParameterValueFormatError",
181                  {
182                      "Indicates that a parameter was given the correct value "
183                      "type but the value of that parameter was not supported.  "
184                      "This includes value size/length exceeded.",
185                      "The value %1 for the parameter %2 in the action %3 is of "
186                      "a different format than the parameter can accept.",
187                      "Warning",
188                      "Warning",
189                      3,
190                      {
191                          "string",
192                          "string",
193                          "string",
194                      },
195                      "Correct the value for the parameter in the request body "
196                      "and resubmit the request if the operation failed.",
197                  }},
198     MessageEntry{"ActionParameterValueTypeError",
199                  {
200                      "Indicates that a parameter was given the wrong value "
201                      "type, such as when a number is supplied for a parameter "
202                      "that requires a string.",
203                      "The value %1 for the parameter %2 in the action %3 is of "
204                      "a different type than the parameter can accept.",
205                      "Warning",
206                      "Warning",
207                      3,
208                      {
209                          "string",
210                          "string",
211                          "string",
212                      },
213                      "Correct the value for the parameter in the request body "
214                      "and resubmit the request if the operation failed.",
215                  }},
216     MessageEntry{
217         "ChassisPowerStateOffRequired",
218         {
219             "Indicates that the request requires a specified Chassis to be "
220             "powered off.",
221             "The Chassis with Id '%1' requires to be powered off to perform "
222             "this request.",
223             "Warning",
224             "Warning",
225             1,
226             {
227                 "string",
228             },
229             "Power off the specified Chassis and resubmit the request.",
230         }},
231     MessageEntry{"ChassisPowerStateOnRequired",
232                  {
233                      "Indicates that the request requires a specified Chassis "
234                      "to be powered on.",
235                      "The Chassis with Id '%1' requires to be powered on to "
236                      "perform this request.",
237                      "Warning",
238                      "Warning",
239                      1,
240                      {
241                          "string",
242                      },
243                      "Power on the specified Chassis and resubmit the request.",
244                  }},
245     MessageEntry{
246         "CouldNotEstablishConnection",
247         {
248             "Indicates that the attempt to access the resource/file/image at "
249             "the URI was unsuccessful because a session could not be "
250             "established.",
251             "The service failed to establish a connection with the URI %1.",
252             "Critical",
253             "Critical",
254             1,
255             {
256                 "string",
257             },
258             "Ensure that the URI contains a valid and reachable node name, "
259             "protocol information and other URI components.",
260         }},
261     MessageEntry{
262         "CreateFailedMissingReqProperties",
263         {
264             "Indicates that a create was attempted on a resource but that "
265             "properties that are required for the create operation were "
266             "missing from the request.",
267             "The create operation failed because the required property %1 was "
268             "missing from the request.",
269             "Critical",
270             "Critical",
271             1,
272             {
273                 "string",
274             },
275             "Correct the body to include the required property with a valid "
276             "value and resubmit the request if the operation failed.",
277         }},
278     MessageEntry{"CreateLimitReachedForResource",
279                  {
280                      "Indicates that no more resources can be created on the "
281                      "resource as it has reached its create limit.",
282                      "The create operation failed because the resource has "
283                      "reached the limit of possible resources.",
284                      "Critical",
285                      "Critical",
286                      0,
287                      {},
288                      "Either delete resources and resubmit the request if the "
289                      "operation failed or do not resubmit the request.",
290                  }},
291     MessageEntry{"Created",
292                  {
293                      "Indicates that all conditions of a successful creation "
294                      "operation have been met.",
295                      "The resource has been created successfully",
296                      "OK",
297                      "OK",
298                      0,
299                      {},
300                      "None",
301                  }},
302     MessageEntry{
303         "EmptyJSON",
304         {
305             "Indicates that the request body contained an empty JSON object "
306             "when one or more properties are expected in the body.",
307             "The request body submitted contained an empty JSON object and the "
308             "service is unable to process it.",
309             "Warning",
310             "Warning",
311             0,
312             {},
313             "Add properties in the JSON object and resubmit the request.",
314         }},
315     MessageEntry{
316         "EventSubscriptionLimitExceeded",
317         {
318             "Indicates that a event subscription establishment has been "
319             "requested but the operation failed due to the number of "
320             "simultaneous connection exceeding the limit of the "
321             "implementation.",
322             "The event subscription failed due to the number of simultaneous "
323             "subscriptions exceeding the limit of the implementation.",
324             "Critical",
325             "Critical",
326             0,
327             {},
328             "Reduce the number of other subscriptions before trying to "
329             "establish the event subscription or increase the limit of "
330             "simultaneous subscriptions (if supported).",
331         }},
332     MessageEntry{
333         "GeneralError",
334         {
335             "Indicates that a general error has occurred.  Use in ExtendedInfo "
336             "is discouraged.  When used in ExtendedInfo, implementations are "
337             "expected to include a Resolution property with this error to "
338             "indicate how to resolve the problem.",
339             "A general error has occurred. See Resolution for information on "
340             "how to resolve the error.",
341             "Critical",
342             "Critical",
343             0,
344             {},
345             "None.",
346         }},
347     MessageEntry{
348         "InsufficientPrivilege",
349         {
350             "Indicates that the credentials associated with the established "
351             "session do not have sufficient privileges for the requested "
352             "operation",
353             "There are insufficient privileges for the account or credentials "
354             "associated with the current session to perform the requested "
355             "operation.",
356             "Critical",
357             "Critical",
358             0,
359             {},
360             "Either abandon the operation or change the associated access "
361             "rights and resubmit the request if the operation failed.",
362         }},
363     MessageEntry{
364         "InternalError",
365         {
366             "Indicates that the request failed for an unknown internal error "
367             "but that the service is still operational.",
368             "The request failed due to an internal service error.  The service "
369             "is still operational.",
370             "Critical",
371             "Critical",
372             0,
373             {},
374             "Resubmit the request.  If the problem persists, consider "
375             "resetting the service.",
376         }},
377     MessageEntry{"InvalidIndex",
378                  {
379                      "The Index is not valid.",
380                      "The Index %1 is not a valid offset into the array.",
381                      "Warning",
382                      "Warning",
383                      1,
384                      {
385                          "number",
386                      },
387                      "Verify the index value provided is within the bounds of "
388                      "the array.",
389                  }},
390     MessageEntry{
391         "InvalidObject",
392         {
393             "Indicates that the object in question is invalid according to the "
394             "implementation.  Examples include a firmware update malformed "
395             "URI.",
396             "The object at %1 is invalid.",
397             "Critical",
398             "Critical",
399             1,
400             {
401                 "string",
402             },
403             "Either the object is malformed or the URI is not correct.  "
404             "Correct the condition and resubmit the request if it failed.",
405         }},
406     MessageEntry{"MalformedJSON",
407                  {
408                      "Indicates that the request body was malformed JSON.  "
409                      "Could be duplicate, syntax error,etc.",
410                      "The request body submitted was malformed JSON and could "
411                      "not be parsed by the receiving service.",
412                      "Critical",
413                      "Critical",
414                      0,
415                      {},
416                      "Ensure that the request body is valid JSON and resubmit "
417                      "the request.",
418                  }},
419     MessageEntry{
420         "MaximumErrorsExceeded",
421         {
422             "Indicates that sufficient errors have occurred that the reporting "
423             "service cannot return them all.",
424             "Too many errors have occurred to report them all.",
425             "Critical",
426             "Critical",
427             0,
428             {},
429             "Resolve other reported errors and retry the current operation.",
430         }},
431     MessageEntry{
432         "MutualExclusiveProperties",
433         {
434             "Indicates that the requested operation could not be completed, "
435             "because of a conflict properties.",
436             "The properties '%1' and '%2' are mutually exclusive.",
437             "Warning",
438             "Warning",
439             2,
440             {
441                 "string",
442                 "string",
443             },
444             "Ensure that the request body doesn't have mutually exclusive "
445             "properties and resubmit the request.",
446         }},
447     MessageEntry{
448         "NoOperation",
449         {
450             "Indicates that the requested operation will not perform any "
451             "changes on the service.",
452             "The request body submitted contain no data to act upon and no "
453             "changes to the resource took place.",
454             "Warning",
455             "Warning",
456             0,
457             {},
458             "Add properties in the JSON object and resubmit the request.",
459         }},
460     MessageEntry{
461         "NoValidSession",
462         {
463             "Indicates that the operation failed because a valid session is "
464             "required in order to access any resources.",
465             "There is no valid session established with the implementation.",
466             "Critical",
467             "Critical",
468             0,
469             {},
470             "Establish a session before attempting any operations.",
471         }},
472     MessageEntry{
473         "OperationFailed",
474         {
475             "Indicates that one of the internal operations necessary to "
476             "complete the request failed.  Examples of this are when an "
477             "internal service provider is unable to complete the request, such "
478             "as in aggregation or RDE.",
479             "An error occurred internal to the service as part of the overall "
480             "request.  Partial results may have been returned.",
481             "Warning",
482             "Warning",
483             0,
484             {},
485             "Resubmit the request.  If the problem persists, consider "
486             "resetting the service or provider.",
487         }},
488     MessageEntry{"OperationTimeout",
489                  {
490                      "Indicates that one of the internal operations necessary "
491                      "to complete the request timed out.  Examples of this are "
492                      "when an internal service provider is unable to complete "
493                      "the request, such as in aggregation or RDE.",
494                      "A timeout internal to the service occured as part of the "
495                      "request.  Partial results may have been returned.",
496                      "Warning",
497                      "Warning",
498                      0,
499                      {},
500                      "Resubmit the request.  If the problem persists, consider "
501                      "resetting the service or provider.",
502                  }},
503     MessageEntry{
504         "PasswordChangeRequired",
505         {
506             "Indicates that the password for the account provided must be "
507             "changed before accessing the service.  The password can be "
508             "changed with a PATCH to the 'Password' property in the "
509             "ManagerAccount resource instance.  Implementations that provide a "
510             "default password for an account may require a password change "
511             "prior to first access to the service.",
512             "The password provided for this account must be changed before "
513             "access is granted.  PATCH the 'Password' property for this "
514             "account located at the target URI '%1' to complete this process.",
515             "Critical",
516             "Critical",
517             1,
518             {
519                 "string",
520             },
521             "Change the password for this account using a PATCH to the "
522             "'Password' property at the URI provided.",
523         }},
524     MessageEntry{"PreconditionFailed",
525                  {
526                      "Indicates that the ETag supplied did not match the "
527                      "current ETag of the resource.",
528                      "The ETag supplied did not match the ETag required to "
529                      "change this resource.",
530                      "Critical",
531                      "Critical",
532                      0,
533                      {},
534                      "Try the operation again using the appropriate ETag.",
535                  }},
536     MessageEntry{"PreconditionRequired",
537                  {
538                      "Indicates that the request did not provide the required "
539                      "precondition such as an If-Match or If-None-Match "
540                      "header, or @odata.etag annotations.",
541                      "A precondition header or annotation is required to "
542                      "change this resource.",
543                      "Critical",
544                      "Critical",
545                      0,
546                      {},
547                      "Try the operation again using an If-Match or "
548                      "If-None-Match header and appropriate ETag.",
549                  }},
550     MessageEntry{"PropertyDuplicate",
551                  {
552                      "Indicates that a duplicate property was included in the "
553                      "request body.",
554                      "The property %1 was duplicated in the request.",
555                      "Warning",
556                      "Warning",
557                      1,
558                      {
559                          "string",
560                      },
561                      "Remove the duplicate property from the request body and "
562                      "resubmit the request if the operation failed.",
563                  }},
564     MessageEntry{
565         "PropertyMissing",
566         {
567             "Indicates that a required property was not supplied as part of "
568             "the request.",
569             "The property %1 is a required property and must be included in "
570             "the request.",
571             "Warning",
572             "Warning",
573             1,
574             {
575                 "string",
576             },
577             "Ensure that the property is in the request body and has a valid "
578             "value and resubmit the request if the operation failed.",
579         }},
580     MessageEntry{"PropertyNotWritable",
581                  {
582                      "Indicates that a property was given a value in the "
583                      "request body, but the property is a readonly property.",
584                      "The property %1 is a read only property and cannot be "
585                      "assigned a value.",
586                      "Warning",
587                      "Warning",
588                      1,
589                      {
590                          "string",
591                      },
592                      "Remove the property from the request body and resubmit "
593                      "the request if the operation failed.",
594                  }},
595     MessageEntry{"PropertyUnknown",
596                  {
597                      "Indicates that an unknown property was included in the "
598                      "request body.",
599                      "The property %1 is not in the list of valid properties "
600                      "for the resource.",
601                      "Warning",
602                      "Warning",
603                      1,
604                      {
605                          "string",
606                      },
607                      "Remove the unknown property from the request body and "
608                      "resubmit the request if the operation failed.",
609                  }},
610     MessageEntry{
611         "PropertyValueConflict",
612         {
613             "Indicates that the requested write of a property value could not "
614             "be completed, because of a conflict with another property value.",
615             "The property '%1' could not be written because its value would "
616             "conflict with the value of the '%2' property.",
617             "Warning",
618             "Warning",
619             2,
620             {
621                 "string",
622                 "string",
623             },
624             "No resolution is required.",
625         }},
626     MessageEntry{"PropertyValueFormatError",
627                  {
628                      "Indicates that a property was given the correct value "
629                      "type but the value of that property was not supported.",
630                      "The value %1 for the property %2 is of a different "
631                      "format than the property can accept.",
632                      "Warning",
633                      "Warning",
634                      2,
635                      {
636                          "string",
637                          "string",
638                      },
639                      "Correct the value for the property in the request body "
640                      "and resubmit the request if the operation failed.",
641                  }},
642     MessageEntry{"PropertyValueIncorrect",
643                  {
644                      "Indicates that the requested write of a property value "
645                      "could not be completed, because of an incorrect value of "
646                      "the property.  Examples include values that do not match "
647                      "a regular expression requirement or passwords that do "
648                      "not match the implementation constraints.",
649                      "The property '%1' with the requested value of '%2' could "
650                      "not be written because the value does not meet the "
651                      "constraints of the implementation.",
652                      "Warning",
653                      "Warning",
654                      2,
655                      {
656                          "string",
657                          "string",
658                      },
659                      "No resolution is required.",
660                  }},
661     MessageEntry{"PropertyValueModified",
662                  {
663                      "Indicates that a property was given the correct value "
664                      "type but the value of that property was modified.  "
665                      "Examples are truncated or rounded values.",
666                      "The property %1 was assigned the value %2 due to "
667                      "modification by the service.",
668                      "Warning",
669                      "Warning",
670                      2,
671                      {
672                          "string",
673                          "string",
674                      },
675                      "No resolution is required.",
676                  }},
677     MessageEntry{
678         "PropertyValueNotInList",
679         {
680             "Indicates that a property was given the correct value type but "
681             "the value of that property was not supported.  This values not in "
682             "an enumeration",
683             "The value %1 for the property %2 is not in the list of acceptable "
684             "values.",
685             "Warning",
686             "Warning",
687             2,
688             {
689                 "string",
690                 "string",
691             },
692             "Choose a value from the enumeration list that the implementation "
693             "can support and resubmit the request if the operation failed.",
694         }},
695     MessageEntry{
696         "PropertyValueTypeError",
697         {
698             "Indicates that a property was given the wrong value type, such as "
699             "when a number is supplied for a property that requires a string.",
700             "The value %1 for the property %2 is of a different type than the "
701             "property can accept.",
702             "Warning",
703             "Warning",
704             2,
705             {
706                 "string",
707                 "string",
708             },
709             "Correct the value for the property in the request body and "
710             "resubmit the request if the operation failed.",
711         }},
712     MessageEntry{
713         "QueryCombinationInvalid",
714         {
715             "Indicates the request contains multiple query parameters, and "
716             "that two or more of them cannot be used together.",
717             "Two or more query parameters in the request cannot be used "
718             "together.",
719             "Warning",
720             "Warning",
721             0,
722             {},
723             "Remove one or more of the query parameters and resubmit the "
724             "request if the operation failed.",
725         }},
726     MessageEntry{
727         "QueryNotSupported",
728         {
729             "Indicates that query is not supported on the implementation.",
730             "Querying is not supported by the implementation.",
731             "Warning",
732             "Warning",
733             0,
734             {},
735             "Remove the query parameters and resubmit the request if the "
736             "operation failed.",
737         }},
738     MessageEntry{
739         "QueryNotSupportedOnOperation",
740         {
741             "Indicates that query is not supported with the given operation, "
742             "such as when an expand query is attemped with a PATCH operation.",
743             "Querying is not supported with the requested operation.",
744             "Warning",
745             "Warning",
746             0,
747             {},
748             "Remove the query parameters and resubmit the request if the "
749             "operation failed.",
750         }},
751     MessageEntry{"QueryNotSupportedOnResource",
752                  {
753                      "Indicates that query is not supported on the given "
754                      "resource, such as when a start/count query is attempted "
755                      "on a resource that is not a collection.",
756                      "Querying is not supported on the requested resource.",
757                      "Warning",
758                      "Warning",
759                      0,
760                      {},
761                      "Remove the query parameters and resubmit the request if "
762                      "the operation failed.",
763                  }},
764     MessageEntry{
765         "QueryParameterOutOfRange",
766         {
767             "Indicates that a query parameter was supplied that is out of "
768             "range for the given resource.  This can happen with values that "
769             "are too low or beyond that possible for the supplied resource, "
770             "such as when a page is requested that is beyond the last page.",
771             "The value %1 for the query parameter %2 is out of range %3.",
772             "Warning",
773             "Warning",
774             3,
775             {
776                 "string",
777                 "string",
778                 "string",
779             },
780             "Reduce the value for the query parameter to a value that is "
781             "within range, such as a start or count value that is within "
782             "bounds of the number of resources in a collection or a page that "
783             "is within the range of valid pages.",
784         }},
785     MessageEntry{"QueryParameterValueFormatError",
786                  {
787                      "Indicates that a query parameter was given the correct "
788                      "value type but the value of that parameter was not "
789                      "supported.  This includes value size/length exceeded.",
790                      "The value %1 for the parameter %2 is of a different "
791                      "format than the parameter can accept.",
792                      "Warning",
793                      "Warning",
794                      2,
795                      {
796                          "string",
797                          "string",
798                      },
799                      "Correct the value for the query parameter in the request "
800                      "and resubmit the request if the operation failed.",
801                  }},
802     MessageEntry{"QueryParameterValueTypeError",
803                  {
804                      "Indicates that a query parameter was given the wrong "
805                      "value type, such as when a number is supplied for a "
806                      "query parameter that requires a string.",
807                      "The value %1 for the query parameter %2 is of a "
808                      "different type than the parameter can accept.",
809                      "Warning",
810                      "Warning",
811                      2,
812                      {
813                          "string",
814                          "string",
815                      },
816                      "Correct the value for the query parameter in the request "
817                      "and resubmit the request if the operation failed.",
818                  }},
819     MessageEntry{
820         "ResetRequired",
821         {
822             "Indicates that a component reset is required for changes or "
823             "operations to complete.",
824             "In order to complete the operation, a component reset is required "
825             "with the Reset action URI '%1' and ResetType '%2'.",
826             "Warning",
827             "Warning",
828             2,
829             {
830                 "string",
831                 "string",
832             },
833             "Perform the required Reset action on the specified component.",
834         }},
835     MessageEntry{"ResourceAlreadyExists",
836                  {
837                      "Indicates that a resource change or creation was "
838                      "attempted but that the operation cannot proceed because "
839                      "the resource already exists.",
840                      "The requested resource of type %1 with the property %2 "
841                      "with the value %3 already exists.",
842                      "Critical",
843                      "Critical",
844                      3,
845                      {
846                          "string",
847                          "string",
848                          "string",
849                      },
850                      "Do not repeat the create operation as the resource has "
851                      "already been created.",
852                  }},
853     MessageEntry{
854         "ResourceAtUriInUnknownFormat",
855         {
856             "Indicates that the URI was valid but the resource or image at "
857             "that URI was in a format not supported by the service.",
858             "The resource at %1 is in a format not recognized by the service.",
859             "Critical",
860             "Critical",
861             1,
862             {
863                 "string",
864             },
865             "Place an image or resource or file that is recognized by the "
866             "service at the URI.",
867         }},
868     MessageEntry{"ResourceAtUriUnauthorized",
869                  {
870                      "Indicates that the attempt to access the "
871                      "resource/file/image at the URI was unauthorized.",
872                      "While accessing the resource at %1, the service received "
873                      "an authorization error %2.",
874                      "Critical",
875                      "Critical",
876                      2,
877                      {
878                          "string",
879                          "string",
880                      },
881                      "Ensure that the appropriate access is provided for the "
882                      "service in order for it to access the URI.",
883                  }},
884     MessageEntry{"ResourceCannotBeDeleted",
885                  {
886                      "Indicates that a delete operation was attempted on a "
887                      "resource that cannot be deleted.",
888                      "The delete request failed because the resource requested "
889                      "cannot be deleted.",
890                      "Critical",
891                      "Critical",
892                      0,
893                      {},
894                      "Do not attempt to delete a non-deletable resource.",
895                  }},
896     MessageEntry{
897         "ResourceCreationConflict",
898         {
899             "Indicates that the requested resource creation could not be "
900             "completed because the service has a resource that conflicts with "
901             "the request.",
902             "The resource could not be created.  The service has a resource at "
903             "URI '%1' that conflicts with the creation request.",
904             "Warning",
905             "Warning",
906             1,
907             {
908                 "string",
909             },
910             "No resolution is required.",
911         }},
912     MessageEntry{
913         "ResourceExhaustion",
914         {
915             "Indicates that a resource could not satisfy the request due to "
916             "some unavailability of resources.  An example is that available "
917             "capacity has been allocated.",
918             "The resource %1 was unable to satisfy the request due to "
919             "unavailability of resources.",
920             "Critical",
921             "Critical",
922             1,
923             {
924                 "string",
925             },
926             "Ensure that the resources are available and resubmit the request.",
927         }},
928     MessageEntry{"ResourceInStandby",
929                  {
930                      "Indicates that the request could not be performed "
931                      "because the resource is in standby.",
932                      "The request could not be performed because the resource "
933                      "is in standby.",
934                      "Critical",
935                      "Critical",
936                      0,
937                      {},
938                      "Ensure that the resource is in the correct power state "
939                      "and resubmit the request.",
940                  }},
941     MessageEntry{"ResourceInUse",
942                  {
943                      "Indicates that a change was requested to a resource but "
944                      "the change was rejected due to the resource being in use "
945                      "or transition.",
946                      "The change to the requested resource failed because the "
947                      "resource is in use or in transition.",
948                      "Warning",
949                      "Warning",
950                      0,
951                      {},
952                      "Remove the condition and resubmit the request if the "
953                      "operation failed.",
954                  }},
955     MessageEntry{
956         "ResourceMissingAtURI",
957         {
958             "Indicates that the operation expected an image or other resource "
959             "at the provided URI but none was found.  Examples of this are in "
960             "requests that require URIs like Firmware Update.",
961             "The resource at the URI %1 was not found.",
962             "Critical",
963             "Critical",
964             1,
965             {
966                 "string",
967             },
968             "Place a valid resource at the URI or correct the URI and resubmit "
969             "the request.",
970         }},
971     MessageEntry{
972         "ResourceNotFound",
973         {
974             "Indicates that the operation expected a resource identifier that "
975             "corresponds to an existing resource but one was not found.",
976             "The requested resource of type %1 named %2 was not found.",
977             "Critical",
978             "Critical",
979             2,
980             {
981                 "string",
982                 "string",
983             },
984             "Provide a valid resource identifier and resubmit the request.",
985         }},
986     MessageEntry{
987         "ResourceTypeIncompatible",
988         {
989             "Indicates that the resource type of the operation does not match "
990             "that for the operation destination.  Examples of when this can "
991             "happen include during a POST to a collection using the wrong "
992             "resource type, an update where the @odata.types do not match or "
993             "on a major version incompatability.",
994             "The @odata.type of the request body %1 is incompatible with the "
995             "@odata.type of the resource which is %2.",
996             "Critical",
997             "Critical",
998             2,
999             {
1000                 "string",
1001                 "string",
1002             },
1003             "Resubmit the request with a payload compatible with the "
1004             "resource's schema.",
1005         }},
1006     MessageEntry{
1007         "ServiceInUnknownState",
1008         {
1009             "Indicates that the operation failed because the service is in an "
1010             "unknown state and cannot accept additional requests.",
1011             "The operation failed because the service is in an unknown state "
1012             "and can no longer take incoming requests.",
1013             "Critical",
1014             "Critical",
1015             0,
1016             {},
1017             "Restart the service and resubmit the request if the operation "
1018             "failed.",
1019         }},
1020     MessageEntry{"ServiceShuttingDown",
1021                  {
1022                      "Indicates that the operation failed as the service is "
1023                      "shutting down, such as when the service reboots.",
1024                      "The operation failed because the service is shutting "
1025                      "down and can no longer take incoming requests.",
1026                      "Critical",
1027                      "Critical",
1028                      0,
1029                      {},
1030                      "When the service becomes available, resubmit the request "
1031                      "if the operation failed.",
1032                  }},
1033     MessageEntry{
1034         "ServiceTemporarilyUnavailable",
1035         {
1036             "Indicates the service is temporarily unavailable.",
1037             "The service is temporarily unavailable.  Retry in %1 seconds.",
1038             "Critical",
1039             "Critical",
1040             1,
1041             {
1042                 "string",
1043             },
1044             "Wait for the indicated retry duration and retry the operation.",
1045         }},
1046     MessageEntry{
1047         "SessionLimitExceeded",
1048         {
1049             "Indicates that a session establishment has been requested but the "
1050             "operation failed due to the number of simultaneous sessions "
1051             "exceeding the limit of the implementation.",
1052             "The session establishment failed due to the number of "
1053             "simultaneous sessions exceeding the limit of the implementation.",
1054             "Critical",
1055             "Critical",
1056             0,
1057             {},
1058             "Reduce the number of other sessions before trying to establish "
1059             "the session or increase the limit of simultaneous sessions (if "
1060             "supported).",
1061         }},
1062     MessageEntry{
1063         "SessionTerminated",
1064         {
1065             "Indicates that the DELETE operation on the Session resource "
1066             "resulted in the successful termination of the session.",
1067             "The session was successfully terminated.",
1068             "OK",
1069             "OK",
1070             0,
1071             {},
1072             "No resolution is required.",
1073         }},
1074     MessageEntry{
1075         "SourceDoesNotSupportProtocol",
1076         {
1077             "Indicates that while attempting to access, connect to or transfer "
1078             "a resource/file/image from another location that the other end of "
1079             "the connection did not support the protocol",
1080             "The other end of the connection at %1 does not support the "
1081             "specified protocol %2.",
1082             "Critical",
1083             "Critical",
1084             2,
1085             {
1086                 "string",
1087                 "string",
1088             },
1089             "Change protocols or URIs. ",
1090         }},
1091     MessageEntry{"StringValueTooLong",
1092                  {
1093                      "Indicates that a string value passed to the given "
1094                      "resource exceeded its length limit. An example is when a "
1095                      "shorter limit is imposed by an implementation than that "
1096                      "allowed by the specification.",
1097                      "The string %1 exceeds the length limit %2.",
1098                      "Warning",
1099                      "Warning",
1100                      2,
1101                      {
1102                          "string",
1103                          "number",
1104                      },
1105                      "Resubmit the request with an appropriate string length.",
1106                  }},
1107     MessageEntry{"SubscriptionTerminated",
1108                  {
1109                      "An event subscription has been terminated by the "
1110                      "Service. No further events will be delivered.",
1111                      "The event subscription has been terminated.",
1112                      "OK",
1113                      "OK",
1114                      0,
1115                      {},
1116                      "No resolution is required.",
1117                  }},
1118     MessageEntry{"Success",
1119                  {
1120                      "Indicates that all conditions of a successful operation "
1121                      "have been met.",
1122                      "Successfully Completed Request",
1123                      "OK",
1124                      "OK",
1125                      0,
1126                      {},
1127                      "None",
1128                  }},
1129     MessageEntry{
1130         "UnrecognizedRequestBody",
1131         {
1132             "Indicates that the service encountered an unrecognizable request "
1133             "body that could not even be interpreted as malformed JSON.",
1134             "The service detected a malformed request body that it was unable "
1135             "to interpret.",
1136             "Warning",
1137             "Warning",
1138             0,
1139             {},
1140             "Correct the request body and resubmit the request if it failed.",
1141         }},
1142 };
1143 } // namespace redfish::message_registries::base
1144