White Papers

40 Implementation of the DMTF Redfish API on Dell EMC PowerEdge Servers
Output:
Status Code: 200
Extended Error Message:{u'Success': {u'Message': u'Successfully Completed
Request', u'Resolution': u'None', u'Severity': u'Ok', u'MessageId':
u'Base.1.0.Success'}}
If the script is modified to attempt an update with an unsupported value, an error will occur and Extended
Information will be returned:
payload = {'BitRate':1900}
Output:
Status Code: 400
Extended Error Message: {u'error': {u'code': u'Base.1.0.GeneralError',
u'message': u'A general error has occurred. See ExtendedInfo for more
information', u'@Message.ExtendedInfo': [{u'Severity': u'Warning', u'MessageId':
u'Base.1.0.PropertyValueNotInList', u'RelatedProperties': [u'BitRate'],
u'Message': u'The value 1900 for the property BitRate is not in the list of
acceptable values.', u'Resolution': u'Choose a value from the enumeration list
that the implementation can support and resubmit the request if the operation
failed.', u'MessageArgs': [u'1900', u'BitRate']}]}}
The following example uses an incorrect data type a text string rather than a numeric value. This illustrates
the distinctive error information and resolutions provided by Extended Information and the Dell Message
Registry.
payload = {'BitRate':'19200'}
Output:
Status Code:400
Extended Error Message: {u'error': {u'code': u'Base.1.0.GeneralError',
u'message': u'A general error has occurred. See ExtendedInfo for more
information', u'@Message.ExtendedInfo': [{u'Severity': u'Warning', u'MessageId':
u'Base.1.0.PropertyValueTypeError', u'RelatedProperties': [u'BitRate'],
u'Message': u'The value string or boolean for the property BitRate is of a
different type than the property can accept.', u'Resolution': u'Correct the
value for the property in the request body and resubmit the request if the
operation failed.', u'MessageArgs': [u'string or boolean', u'BitRate']}]}}