POST – Submit a test event
Use the POST method to send a test event to subscribers.
Request URL
POST https://<BMC_IPADDR>/redfish/v1/EventService/Actions/EventService.SubmitTestEvent
Request body
| Field | Type | Error Message ID | 
|---|---|---|
EventGroupId  | Integer | The group id of event to be added.  | 
EventId  | String | The ID of event to be added.  | 
EventTimestamp  | String | The time stamp of event to be added.  | 
Message  | String | The event message text of event to be added.  | 
MessageId  | String | The message ID of event to be added.  | 
MessageArgs  | Array | The array of message arguments of event to be added.  | 
OriginOfCondition  | String | The URL of a valid resource caused the event to be added.  | 
Response
None
Status code
| HTTP Status Code | Error Message ID | 
|---|---|
| 204 | NoContent | 
| 500 | InternalError | 
Example
The following example is POST body
{
    "OriginOfCondition": "/redfish/v1/Systems/1/LogServices/AuditLog",
    "Message":"Login ID: USERID from web at IP address 1.1.1.1 has logged off. ----Test Test",
    "MessageArgs":["USERID","web","1.1.1.1"],
    "MessageId":"EventRegistry.1.0.FQXSPSE4032I",
    "EventTimestamp":"2020-12-31T00:00:00+00:00",
    "EventId": "0000003a",
    "EventGroupId": 1
}
The following example JSON response is returned:
None
The following event data received by a listener stays at the destination subscribed to Redfish service.
{
    "Events@odata.count": 1,
    "Id": "1",
    "Events": [
        {
            "MessageArgs": [
                "USERID",
                "web",
                "1.1.1.1"
            ],
            "Message": "Login ID: USERID from web at IP address 1.1.1.1 has logged off. ----Test Test",
            "EventGroupId": 1,
            "EventId": "1",
            "MemberId": "0001",
            "MessageId": "EventRegistry.1.0.FQXSPSE4032I",
            "EventTimestamp": "2020-12-31T00:00:00+00:00",
            "OriginOfCondition": {
                "@odata.id": "/redfish/v1/Systems/1/LogServices/AuditLog"
            }
        }
    ],
    "@odata.type": "#Event.v1_5_0.Event",
    "Name": "SubmitTestEvent",
    "Description": "This resource represents an event for a Redfish implementation."
}
Give documentation feedback