clear-logs

Use the interface to clear logs of Cloud or a specified hosted device.

Only available for users with administrative rights.

Prototype

Protocol HTTP/HTTPS GET
URL ip[:port]/sc_cloud/log/clear
Data Format Request: Content-Type: application/json
Response: Content-Type: application/json

Request Cookies

Parameter Description
mwcloud-sid A string value that is used to uniquely identify user logged-in.
mwcloud-uid Current logged-in username.
Request Body
Parameter Description
sn Serial number.
  • CLOD200914001: indicates to clear all Cloud logs.
  • Other values: indicates to clear the logs of the specified device.

Request Example

POST /sc_cloud/log/clear HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Content-Length: 22
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
{
    "sn":"CLOD200914001"
}

Response Parameters

Response Header
Parameter Description
Content-Type Value: 'application/json; charset=UTF-8'
Response Body
Parameter Description
result Result code. The options are as follows:
  • 0: success.
  • Other values. For details about the result codes, please refer to API Status.
method clear-logs

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 34
{
  "method": "clear-logs",
  "result": 0
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""