LCE REST Reference

/lce

Methods
GET

Gets the list of LCEs.

Fields Parameter
Expand

The fields parameter should be specified along the query string, and it takes the syntax

    ?fields=<field>,...

Allowed Fields

*id
**name
**description
**status

ip
ntpIP
port
username
password
managedRanges
version
downloadVulns
vulnStatus
lastReportTime
createdTime
modifiedTime
silos
canUse
canManage
organizations
repositories

Legend

* = always comes back

** = comes back if fields list not specified on GET all

Request Parameters

None

Example Response
Expand
{
    "type" : "regular",
    "response" : [
        {
            "id" : "3",
            "name" : "LCE 192.168.1.11",
            "description" : "",
            "ip" : "192.168.1.11",
            "ntpIP" : "192.168.1.1",
            "port" : "1243",
            "username" : "root",
            "password" : "SET",
            "managedRanges" : null,
            "version" : "4.0.2",
            "downloadVulns" : "false",
            "status" : "1",
            "vulnStatus" : "2",
            "lastReportTime" : "0",
            "createdTime" : "1409837073",
            "modifiedTime" : "1409944978",
			"silos" : [
				{
					"id" : "1",
					"file" : "\/opt\/lce\/silo_archive\/\/lceSep122014-Sep132014.ndb",
					"startDate" : "Sep 12, 2014",
					"endDate" : "Sep 13, 2014",
					"records":"0"
			}
			"organizations" : [
                {
                    "id" : "8",
                    "name" : "Org",
                    "description" : "Testing for Policies with New Schema"
                }
            ],
            "repositories" : [],
            "canUse" : "true",
            "canManage" : "true"
        }
    ],
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : [],
    "timestamp" : 1409945528
}

/lce/eventTypes

Methods
GET
Request Parameters

Gets the list of LCE event types.

Example Response
Expand
{
	"type" : "regular",
	"response" : {
		"types" : [
			"(unknown)",
			"access-denied",
			"application",
			"connection",
			"continuous",
			"data-leak",
			"database",
			"detected-change",
			"dhcp",
			"dns",
			"dos",
			"error",
			"file-access",
			"firewall",
			"honeypot",
			"indicator",
			"intrusion",
			"lce",
			"login",
			"login-failure",
			"logout",
			"nbs",
			"network",
			"process",
			"restart",
			"scanning",
			"social-networks",
			"spam",
			"stats",
			"system",
			"threatlist",
			"unnormalized",
			"usb",
			"virus",
			"vulnerability",
			"web-access",
			"web-error"
		]
	},
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1409946200
}