Post by scottbusi on Apr 21, 2022 16:40:21 GMT
Hello, I am working with AMI's redfish and running into an issue with creating a metric report.
In the AMI spec it states the property is:
"MetricProperties":[
"/redfish/v1/Chassis/Self/Thermal#/Temperatures/116_0/ReadingCelsius",
"/redfish/v1/Chassis/Self/Thermal#/Temperatures/117_0/ReadingCelsius"
But get a 400 return that the "MetricProperties is not in the list of acceptable values."
Not sure what is wrong here?
curl --globoff -L -w "%{http_code} %{url_effective}\\n" -ku Administrator:superuser -H "Content-Type: application/json" -d '{"Id": "TemperatureReport","Name":"Temperature","Schedule":{"RecurrenceInterval":"PT20S"}, "MetricReportDefinitionType":"Periodic","MetricReport":{"@odata.id":"/redfish/v1/TelemetryService/MetricReports/TemperatureReport"},"MetricProperties":["/redfish/v1/Chassis/Self/Thermal#/Temerature/150_0/Reading/Celsius"]}' -X POST 10.0.127.106/redfish/v1/TelemetryService/MetricReportDefinitions
{"error":{"@message.ExtendedInfo":[{"@odata.type":"#Message.v1_0_8.Message","Message":"The value /redfish/v1/Chassis/Self/Thermal#/Temerature/150_0/Reading/Celsius for the property MetricProperties is not in the list of acceptable values.","MessageArgs":["/redfish/v1/Chassis/Self/Thermal#/Temerature/150_0/Reading/Celsius","MetricProperties"],"MessageId":"Base.1.5.PropertyValueNotInList","RelatedProperties":["#/TelemetryService/MetricReportDefinitions#MetricProperties"],"Resolution":"Choose a value from the enumeration list that the implementation can support and resubmit the request if the operation failed.","Severity":"Warning"}],"code":"Base.1.5.PropertyValueNotInList","message":"The value /redfish/v1/Chassis/Self/Thermal#/Temerature/150_0/Reading/Celsius for the property MetricProperties is not in the list of acceptable values."}}400 10.0.127.106/redfish/v1/TelemetryService/MetricReportDefinitions
[root@telco-tools telemetry]#
In the AMI spec it states the property is:
"MetricProperties":[
"/redfish/v1/Chassis/Self/Thermal#/Temperatures/116_0/ReadingCelsius",
"/redfish/v1/Chassis/Self/Thermal#/Temperatures/117_0/ReadingCelsius"
But get a 400 return that the "MetricProperties is not in the list of acceptable values."
Not sure what is wrong here?
curl --globoff -L -w "%{http_code} %{url_effective}\\n" -ku Administrator:superuser -H "Content-Type: application/json" -d '{"Id": "TemperatureReport","Name":"Temperature","Schedule":{"RecurrenceInterval":"PT20S"}, "MetricReportDefinitionType":"Periodic","MetricReport":{"@odata.id":"/redfish/v1/TelemetryService/MetricReports/TemperatureReport"},"MetricProperties":["/redfish/v1/Chassis/Self/Thermal#/Temerature/150_0/Reading/Celsius"]}' -X POST 10.0.127.106/redfish/v1/TelemetryService/MetricReportDefinitions
{"error":{"@message.ExtendedInfo":[{"@odata.type":"#Message.v1_0_8.Message","Message":"The value /redfish/v1/Chassis/Self/Thermal#/Temerature/150_0/Reading/Celsius for the property MetricProperties is not in the list of acceptable values.","MessageArgs":["/redfish/v1/Chassis/Self/Thermal#/Temerature/150_0/Reading/Celsius","MetricProperties"],"MessageId":"Base.1.5.PropertyValueNotInList","RelatedProperties":["#/TelemetryService/MetricReportDefinitions#MetricProperties"],"Resolution":"Choose a value from the enumeration list that the implementation can support and resubmit the request if the operation failed.","Severity":"Warning"}],"code":"Base.1.5.PropertyValueNotInList","message":"The value /redfish/v1/Chassis/Self/Thermal#/Temerature/150_0/Reading/Celsius for the property MetricProperties is not in the list of acceptable values."}}400 10.0.127.106/redfish/v1/TelemetryService/MetricReportDefinitions
[root@telco-tools telemetry]#