Tenable Security Center API: Feed

 

/feed

Methods
GET

Gets the status of feed uploads.

Request Parameters

None

Example Response
Expand
{
	"type" : "regular",
	"response" : {
		"sc" : {
			"updateTime" : "1418977807",
			"stale" : "true",
			"updateRunning" : "false"
		},
		"active" : {
			"updateTime" : "1419269875",
			"stale" : "false",
			"updateRunning" : "false"
		},
		"passive" : {
			"updateTime" : "1373297113",
			"stale" : "true",
			"updateRunning" : "false"
		},
		"lce" : {
			"updateTime" : "0",
			"stale" : "true",
			"updateRunning" : "false"
		}
	},
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1419270370
}

/feed/{type}

Methods
GET

Gets the status of feed the upload associated with <type>

NOTE: {type} can be one of "active", "passive", "lce", "sc", or "all"

Request Parameters

None

Example Response
Expand
{
	"type" : "regular",
	"response" : {
		"updateTime" : "0",
		"stale" : "true",
		"updateRunning" : "false"
	},
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1419270370
}

/feed/{type}/update

Methods
POST

Sends a job to update the Feed type associated with <type>

NOTE: {type} can be one of "active", "passive", "lce", "sc", or "all"

Request Parameters

None

Example Response
Expand
{
	"type" : "regular",
	"response" : "",
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1419269719
}

/feed/{type}/process

Methods
POST

Processes an uploaded feed update file and sends a job to update the Feed type associated with <type>

NOTE: {type} can be one of "active", "passive", "lce", or "sc"

Request Parameters
Expand
{
	"filename" : <string>
}
Example Response
Expand
{
	"type" : "regular",
	"response" : "",
	"error_code" : 0,
	"error_msg" : "",
	"warnings" : [],
	"timestamp" : 1419269719
}