Tenable Security Center API: WAS Scanner

These endpoints may only be used by administrators.

/wasScanner

Methods
GET

Gets the list of WAS Scanners.

NOTE: This call will return all WAS Scanners for an Administrator.

Fields Parameter
Expand

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

    ?fields=<field>,...

Allowed Fields (Admin User)

*id
**name
**description
**enabled

**status
**version
**ips
lastLinkedOn
lastCheckinTime
createdTime
modifiedTime

Legend

* = always comes back

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

Request Query Parameters

None

Example Response
Expand
{
	"type": "regular",
	"response": [
		{
			"id": "1",
			"name": "WAS Scanner",
			"description": "Description of WAS Scanner",
			"status": "0",
			"version": "1.0.1",
			"ips": "10.0.0.0"
		},
		{
			"id": "2",
			"name": "New WAS Scanner",
			"description": "Updated WAS Scanner",
			"status": "1",
			"version": "1.2.3",
			"ips": "10.0.0.1,10.0.0.2"
		}
	],
	"error_code": 0,
	"error_msg": "",
	"warnings": [],
	"timestamp": 1727369687
}


/wasScanner/{id}

Methods
GET

Gets the WAS Scanner associated with {id}.

NOTE: This call will return WAS Scanner associated with {id} for an Administrator.

Fields Parameter
Expand

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

    ?fields=<field>,...

Allowed Fields (Admin User)

*id
**name
**description
**enabled

**status
**version
**ips
lastLinkedOn
lastCheckinTime
createdTime
modifiedTime

Legend

* = always comes back

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

Request Query Parameters

None

Example Response
Expand
{
	"type": "regular",
	"response": {
		"id": "7",
		"name": "WAS Scanner 7 Updated",
		"description": "description update",
		"enabled": "true",
		"version": null,
		"pluginSet": null,
		"status": "0",
		"linkedOn": "1726683642",
		"lastCheckinTime": "1726683642",
		"ips": "10.1.1.1,10.1.1.2,10.1.1.3",
		"createdTime": "1726683642",
		"modifiedTime": "1727100479"
	},
	"error_code": 0,
	"error_msg": "",
	"warnings": [],
	"timestamp": 1727369700
}

PATCH

Edits the WAS Scanner associated with {id}, changing only the passed in fields.

Request Parameters
Expand
{
	"name": "Was Scanner update",
	"description": "description update",
	"enabled": "true" // false
}
Example Response
See /wasScanner/{id}::GET

DELETE

Deletes the WAS Scanner associated with {id}.

Request Parameters

None

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