Post by manipk on Feb 9, 2024 12:00:01 GMT
Hi all,
I have a clarification on Related properties like when we patch a property(MetricReportDefinitions) which is of type array and giving invalid value it will throw error. Which below error response will be correct regarding Related Properties in the view of index value(0,1 or no index value).
Request:
{
"Context": "xxx",
"Destination": "https://192.168.0.110:4443",
"Protocol": "Redfish",
"MetricReportDefinitions": [
{
"@odata.id": "xxxxx"
}
],
"EventFormatType": "MetricReport",
"RegistryPrefixes": [
"EventLog"
],
"ResourceTypes": [
"TelemetryService"
]
}
Response 1(index value start with value 1):
{
"error": {
"@message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "xxxxxxxx",
"MessageArgs": [
"xxxxxxxx"
],
"MessageId": "xxx.1.0.xxxxx",
"RelatedProperties": [
"/MetricReportDefinitions/1/@odata.id"
],
"Resolution": "Change the value of the property and resubmit the request.",
"Severity": "Warning"
}
],
"code": "xxx.1.0.xxxx",
"message": "xxxx"
}
}
Response 2(index value start with value 0):
{
"error": {
"@message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "xxxxxxxx",
"MessageArgs": [
"xxxxxxxx"
],
"MessageId": "xxx.1.0.xxxxx",
"RelatedProperties": [
"/MetricReportDefinitions/0/@odata.id"
],
"Resolution": "Change the value of the property and resubmit the request.",
"Severity": "Warning"
}
],
"code": "xxx.1.0.xxxx",
"message": "xxxx"
}
}
Respone 3(with no index value):
{
"error": {
"@message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "xxxxxxxx",
"MessageArgs": [
"xxxxxxxx"
],
"MessageId": "xxx.1.0.xxxxx",
"RelatedProperties": [
"/MetricReportDefinitions"
],
"Resolution": "Change the value of the property and resubmit the request.",
"Severity": "Warning"
}
],
"code": "xxx.1.0.xxxx",
"message": "xxxx"
}
}
Thanks,
Mani P K
I have a clarification on Related properties like when we patch a property(MetricReportDefinitions) which is of type array and giving invalid value it will throw error. Which below error response will be correct regarding Related Properties in the view of index value(0,1 or no index value).
Request:
{
"Context": "xxx",
"Destination": "https://192.168.0.110:4443",
"Protocol": "Redfish",
"MetricReportDefinitions": [
{
"@odata.id": "xxxxx"
}
],
"EventFormatType": "MetricReport",
"RegistryPrefixes": [
"EventLog"
],
"ResourceTypes": [
"TelemetryService"
]
}
Response 1(index value start with value 1):
{
"error": {
"@message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "xxxxxxxx",
"MessageArgs": [
"xxxxxxxx"
],
"MessageId": "xxx.1.0.xxxxx",
"RelatedProperties": [
"/MetricReportDefinitions/1/@odata.id"
],
"Resolution": "Change the value of the property and resubmit the request.",
"Severity": "Warning"
}
],
"code": "xxx.1.0.xxxx",
"message": "xxxx"
}
}
Response 2(index value start with value 0):
{
"error": {
"@message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "xxxxxxxx",
"MessageArgs": [
"xxxxxxxx"
],
"MessageId": "xxx.1.0.xxxxx",
"RelatedProperties": [
"/MetricReportDefinitions/0/@odata.id"
],
"Resolution": "Change the value of the property and resubmit the request.",
"Severity": "Warning"
}
],
"code": "xxx.1.0.xxxx",
"message": "xxxx"
}
}
Respone 3(with no index value):
{
"error": {
"@message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "xxxxxxxx",
"MessageArgs": [
"xxxxxxxx"
],
"MessageId": "xxx.1.0.xxxxx",
"RelatedProperties": [
"/MetricReportDefinitions"
],
"Resolution": "Change the value of the property and resubmit the request.",
"Severity": "Warning"
}
],
"code": "xxx.1.0.xxxx",
"message": "xxxx"
}
}
Thanks,
Mani P K