POST /scanner/scanprofiles

Initiates a request to create a new scanProfile. The request takes one parameter - createScanRequest, which is just a POJO. To create the scan, you will need to build up a JSON object that contains the Scan Profile name and hosts to scan e.g. {'name':'New Scan Profile', 'hosts':['10.100.85.135']}

Table 1. POST /scanner/scanprofiles resource details
MIME Type

text/plain

Table 2. POST /scanner/scanprofiles request body details
Parameter Data Type MIME Type Description Sample

scanProfile

Object

application/json

null

{ "description": "String", "hosts": [ "String" ], "name": "String" }

Table 3. POST /scanner/scanprofiles response codes
HTTP Response Code Unique Code Description

200

The scan has been successfully created

500

1030

Occurs when an attempt is made to create a scan when certain conditions are not met, or when too many scan requests have been made

Response Description

An indicator of whether the scan has been created successfully or not.

Response Sample


String