Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This functionality was first introduced in the Hillary release series. The specific methods described on this page work with Hillary R2 and later releases.

...

Code Block
languagejs
firstlineRestAPI Response
{
	"message": "Completed",
	"details": "",
	"request_id": "1"
}


Status MessageDescription
QueuedThe RestAPI Request is queued
ProcessingThe RestAPI Request is being processed
CompletedThe RestAPI Request has been successfully processed
ErrorThere was a fatal error processing the RestAPI Request
Invalid Request IDThe request_id is invalid.

JSON Data file format

A tutorial on how to create JSON data files is beyond the scope of this article. For a full description of the JSON data format see the wikipedia page or the JSON.org website.

The JSON data file should contain the fields "Name" (the value MUST be "LOCATION TARGET"), "Version" (the value MUST BE "1.3")and "Locations", where the Locations field contains an array of locations.

Code Block
languagejs
themeMidnight
titleJSON File header
{
    "Name":"LOCATION TARGET",
    "Version":"1.3",
    "Locations":
    [
		{ "comment": "Array of locations belongs here" }
	]
}


Each Location should contain the following fields:

FieldDescriptionCan be empty?Example or Possible Values
LocationPathName of the location. Sub-locations seperated by the pipe symbol "|"NOSample|Node
Sample|Node2|Leaf1
Sample|Node2|Leaf2
TargetWhat category of target is this (Either Application or Device)NODevice
Application
TypeWhat sub-type of target is this (What type of Device, or Which Application)NOSee the list of valid target types
NameThe name of the location (This is a freeform text field)NOMain Lab
QA Lab
My Test Location
Instance NameThe name of the database instanceYESFor scanning database application targets
HostnameThe host name for hostname targetsYESvm-test.localdomain
www.myserver.example.com
vm-myserver
StartIPThe Start IP Address - use this for Application targets, Single, Range and Subnet targetsYES10.0.0.1
EndIPThe End IP Address - use this for Range targets onlyYES10.0.0.99
SubnetMaskThe netmask - as a number not as a dotted quad - use for Subnet targets onlyYESUse "24" not "255.255.255.0"
"0" can be used for an empty target
PortThe port on which to scan, for Application Targets onlyYESE.g. an SQL Server is usually on port 1433 but can be set to an arbitrary number.
ExclusionWhether this is a target exclusion. Use to exclude IP addresses from a larger listYESValid values are "True" or "False". Empty implies False

The list of valid Device Target types is:

...

Page Properties
hiddentrue


Related issues