Tenable Security Center API: Custom Plugins

/customPlugins

GET

Gets the status of custom Plugin uploads.

Fields Parameter
Expand

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

    ?fields=<field>,...

Allowed Fields

**custom
**customPassive

Legend

* = always comes back

** = comes back if fields list not specified
redFont =  field is a JSON object e.g. "repository" :{ "id" : <id>, "name" : <name> } )
Request Parameters

None

Example Response
Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
    "type" : "regular",
    "response" : {
        "custom" : {
            "processing" : "false",
            "lastProcessed" : "1419284733"      },
        "customPassive" : {
            "processing" : "false",
            "lastProcessed" : -1
        }
    },
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : [],
    "timestamp" : 1419285119
}

/customPlugins/{type}/process

Methods
POST

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

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

Request Parameters
Expand
1
2
{
    "filename" : <string>}
Example Response
Expand
1
2
3
4
5
6
7
8
{
    "type" : "regular",
    "response" : "",
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : [],
    "timestamp" : 1419269719
}