Sources

Add source to inventory

post/source/add

Request

Query parameters

as_subdomainboolean

If keyword is example.example.com and as_subdomain is true, we'll add everything under example.example.com including itself. Otherwise we'll add everything under example.com including itself.

dont_discoverboolean

If keyword is example.com and dont_discover is true, we won't perform subdomain discovery which means that only assets with hostname 'example.com' will be added.

is_elasticboolean

Set to true if assets in this source should be resolved to their current IP address each time when extracting data

Request body

keywordstring required

Example request

{
  "keyword": "domainname.com"
}

Response

OK

idinteger
keywordstring
results_countinteger
results_fetchedinteger
dbdateinteger

Example response

{
  "keyword": "domainname.com"
}

Changes

No recorded changes to this operation across all 1 revision of this API.