Use the interface to obtain Cloud system logs.


URL ip[:port]/sc_cloud/scapi/get-logs
Data Format 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 Example

GET /sc_cloud/scapi/get-logs HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;

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.
logs Cloud log list.
Parameter Description
id Log ID.
date Generated time.
info Log descriptions.
type Log types. The options are
1: information. 2: warning. 3: error.
sn Cloud serial number.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
  "result": 0,
   "logs": [
        "id": 4030,
        "date": 1635479011,
        "info": "Admin logged in from ''.",
        "type": 1,
        "sn": "CLOD200914001"

results matching ""

    No results matching ""

    results matching ""

      No results matching ""