Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

GET sys_log/meta

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a list of meta data used for System Log information data.

Resource URL

http://{host}/api/2.0/sys_log/meta/.format

Example Request

GET 

  1. http://44.235.52.211/api/2.0/sys_log/meta/.json

{
    "EventSeverities": {
        "1": "Critical",
        "2": "Major",
        "3": "Minor",
        "4": "Warning",
        "5": "Notice",
        "6": "Info"
    },
    "ApplicationTypes": {
        "1": "Decoder",
        "2": "Encoder",
        "3": "Manager",
        "4": "Snmp Agent",
        "5": "Email Agent",
        "6": "Scanner",
        "7": "SMS Agent",
        "8": "FTP Server",
        "9": "NTP Agent",
        "10": "Extarnal Device Manager",
        "11": "Web Server",
        "12": "Syslog Agent",
        "13": "CLI",
        "14": "Recorder",
        "15": "File Agent",
        "16": "OTT Receiver",
        "17": "Bridge",
        "18": "Key Manager",
        "19": "Receiver",
        "20": "SMPTE Receiver",
        "26": "CTP Receiver",
        "100": "System Total"
    }
}

 


 

GET sys_log

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

GET

Returns a list of all System Log events information.

Resource URL

http://{host}/api/2.0/sys_log/.format

Example Request

GET 

  1. http://44.235.52.211/api/2.0/sys_log/.json

[
    {
        "SysLog": {
            "id": 1286015308,
            "type": 20486,
            "device_id": 9011,
            "username": "",
            "application_id": 1,
            "application_type_id": 5,
            "description": "failed sending email to test@example.com (code 0)",
            "source": "(Email) Default",
            "occurrences": 2880,
            "event_severity_id": 6,
            "modified": "1617952014418",
            "created": "1617940933965"
        }
    },
    {
        "SysLog": {
            "id": 1261432987,
            "type": 32772,
            "device_id": 9011,
            "username": "",
            "application_id": 1,
            "application_type_id": 8,
            "description": "ftp user logged out/connection dropped",
            "source": "FTP Server",
            "occurrences": 5,
            "event_severity_id": 6,
            "modified": "1617950358313",
            "created": "1617942307138"
        }
    }
]

 


 

DELETE sys_log/{id}

Resource Information

Requires Authentication?

Yes

Response Formats

json

HTTP Methods

DELETE

Deletes a single System Log Event.

Resource URL

http://{host}/api/2.0/sys_log/{id}/.format

Parameters

Parameter

Data Type

Description

id
(required)

integer

The ID of the desired System log task to be deleted.

Example Request

DELETE 

  1. http://44.235.52.211/api/2.0/sys_log/1/.json

{
    "success": true
}
  • No labels