Tenable Security Center API: Job

/job

Methods
GET

Gets the list of Jobs across the application and all Organizations.

Fields Parameter
Expand

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

    ?fields=<field>,...

Allowed Fields

*id
**organization
**type
**status
objectID
initiator
targetedTime
startTime
pid
params
priority
errorCode
attemptNumber
dependentJobID
immediateJob

Legend

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

redFont =  field is a JSON object e.g. "repository" :{ "id" : <id>, "name" : <name> } )

Example Response
Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
    "type" : "regular",
    "response" : [
        {
            "id" : "387413",
            "type" : "repositorySnapshot",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387439",
            "type" : "appStatus",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387440",
            "type" : "licenseReport",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387444",
            "type" : "flushAllVulns",
            "status" : "scheduled",
            "orgID" : "0"       },
        {
            "id" : "387448",
            "type" : "nightlyCleanup",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387497",
            "type" : "updateAllLDAPAssets",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387503",
            "type" : "updateAllDNSAssets",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387520",
            "type" : "feedUpdate",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387521",
            "type" : "lcePluginUpdate",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387529",
            "type" : "updateIDSCorrelations",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387540",
            "type" : "passivePluginUpdate",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387552",
            "type" : "pluginUpdate",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387563",
            "type" : "updateIDSSignatures",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387783",
            "type" : "expireAcceptedRisk",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387790",
            "type" : "updateLCEStatus",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387791",
            "type" : "updateLCETypes",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387792",
            "type" : "updateLCESilos",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        },
        {
            "id" : "387793",
            "type" : "refreshScannerStatus",
            "status" : "scheduled",
            "organization" : {
                "id" : -1,
                "name" : "",
                "description" : ""          }
        }
    ],
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : [],
    "timestamp" : 1425331792
}

/job/{id}

Methods
GET

Gets the Job associated with {id}.

Fields Parameter
Expand

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

    ?fields=<field>,...

Allowed Fields

*id
**organization
**type
**status
objectID
initiator
targetedTime
startTime
pid
params
priority
errorCode
attemptNumber
dependentJobID
immediateJob

Legend

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

redFont =  field is a JSON object e.g. "repository" :{ "id" : <id>, "name" : <name> } )

Request Query Parameters

None

Example Response
Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
    "type" : "regular",
    "response" : {
        "id" : "387413",
        "type" : "repositorySnapshot",
        "objectID" : "-1",
        "status" : "scheduled",
        "organization" : {
            "id" : -1,
            "name" : "",
            "description" : ""      },
        "initiator" : {
            "id" : "1",
            "username" : "admin",
            "firstname" : "Admin",
            "lastname" : "User",
            "uuid" : "4F7DD1CD-EB1B-40D7-BCE1-2DB3E31F6F4C"     },
        "targetedTime" : "1425355200",
        "startTime" : "-1",
        "pid" : "-1",
        "params" : "a:0:{}",
        "priority" : "5",
        "errorCode" : "0",
        "attemptNumber" : "1",
        "dependentJobID" : "-1",
        "immediateJob" : "false"    },
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : [],
    "timestamp" : 1425332851

/job/{id}/kill

Methods
POST

Kills the Job associated with {id}, depending on access.

Request Parameters

None

Example Response
Expand
1
2
3
4
5
6
7
8
{
    "type" : "regular",
    "response" : "",
    "error_code" : 0,
    "error_msg" : "",
    "warnings" : [],
    "timestamp" : 1425334511
}