POST– Log Service Instance
Request
Chassis
POST https://{{ip}}/redfish/v1/Chassis/{{chassis_instance}}/LogServices/{{chassis_log_instance}}/Actions/LogService.ClearLog
Content-Type: application/json
Manager
POST https://{{ip}}/redfish/v1/Managers/{{manager_instance}}/LogServices/{{manager_log_instance}}/Actions/LogService.ClearLog
Content-Type: application/json
System
POST https://{{ip}}/redfish/v1/Systems/{{system_instance}}/LogServices/{{system_log_instance}}/Actions/LogService.ClearLog
Content-Type: application/json
Telemetry
POST https://{{ip}}/redfish/v1/TelemetryService/LogService/Actions/LogService.ClearLog
Content-Type: application/json
Request body
{
"ClearType": "ClearAll"
}
Response
The response of the request will be in JSON format with the success status code as 202.
For Error Response, please refer to Error Response.
Response example
{
"@odata.context": "/redfish/v1/$metadata#Task.Task(TaskState,Description,Name,Id)",
"@odata.id": "/redfish/v1/TaskService/Tasks/1",
"@odata.type": "#Task.v1_4_2.Task",
"Description": "Task for Chassis LogService",
"Id": "1",
"Name": " Chassis LogService ",
"TaskState": "New"
}
Give documentation feedback