|
Post by AMI_Felix on Apr 14, 2023 8:38:47 GMT
Refer to the EventDestination.v1_7_0.json: If POSTing a request to create a subscription but the OriginResources resource not in the array, is the respond the same as the property absent or the array is empty?
Example: POST /redfish/v1/EventService/Subscriptions { "Context": "Event_Sub", "Destination": "https://192.168.0.110:4443", "Protocol": "Redfish", "EventFormatType": "Event", "OriginResources": {
"@odata.id": "/redfish/v1/Systems"
},
"RegistryPrefixes": [ "EventLog" ], "ResourceTypes": [ "EventService" ] } >>Return 201 Created { "@odata.context": "/redfish/v1/$metadata#EventDestination.EventDestination", "@odata.etag": "\"1681457894\"", "@odata.id": "/redfish/v1/EventService/Subscriptions", "@odata.type": "#EventDestination.v1_7_0.EventDestination", "Context": "Event_Sub", "DeliveryRetryPolicy": "TerminateAfterRetries", "Description": "Event Subscription", "Destination": "https://192.168.0.110:4443", "EventFormatType": "Event", "Id": "2", "Name": "Subscription 2", "Protocol": "Redfish", "RegistryPrefixes": [ "EventLog" ], "ResourceTypes": [ "EventService" ], "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" }, "SubordinateResources": false, "SubscriptionType": "RedfishEvent" }
Is the above example response feasible? Is it necessary for the response to display the error message? Thanks, Felix
|
|
|
Post by mraineri on Apr 14, 2023 12:03:10 GMT
I would expect that to be rejected since the property isn't following the schema definition. The "PropertyValueError" message in the Base Message Registry would make the most sense here since it's difficult to include the value of that property in a simple string message.
|
|