Create a new discovery campaign
Create a new discovery campaign in Horizon
Discovery campaign to register
_id
string (Internal ID)
requiredObject internal ID |
name
string
requiredThe name of the discovery campaign |
authorizationLevels
object (models.discovery.campaign.DiscoveryCampaignAuthorizationLevels)
required
The authorization levels of the discovery campaign |
eventOnSuccess
boolean
requiredWhether to log a Horizon event in case of success |
eventOnWarning
boolean
requiredWhether to log a Horizon event in case of warning |
eventOnFailure
boolean
requiredWhether to log a Horizon event in case of failure |
enabled
boolean
requiredWhether the discovery campaign is enabled, i.e. whether it can be fed |
description
string | null
The description of the discovery campaign |
hosts
array of string | null
The hosts to be scanned by the discovery campaign |
ports
array of string | null
The ports to be scanned by the discovery campaign |
gradingPolicies
array of string | null
The grading policies to apply to grade the discovered certificates on this campaign |
-
201 Discovery campaign successfully registered
_idstring (Internal ID) requiredObject internal ID
namestring requiredThe name of the discovery campaign
authorizationLevelsobject (models.discovery.campaign.DiscoveryCampaignAuthorizationLevels) requiredThe authorization levels of the discovery campaign
eventOnSuccessboolean requiredWhether to log a Horizon event in case of success
eventOnWarningboolean requiredWhether to log a Horizon event in case of warning
eventOnFailureboolean requiredWhether to log a Horizon event in case of failure
enabledboolean requiredWhether the discovery campaign is enabled, i.e. whether it can be fed
descriptionstring | nullThe description of the discovery campaign
hostsarray of string | nullThe hosts to be scanned by the discovery campaign
portsarray of string | nullThe ports to be scanned by the discovery campaign
gradingPoliciesarray of string | nullThe grading policies to apply to grade the discovered certificates on this campaign
-
400 Unable to register the discovery campaign
-
401 Authentication error
-
403 Forbidden action
-
500 Unexpected internal server error