List hostnames and their risks
Get the list of registered hostnames and their risks. You can use the omit_risks, omit_vendor, omit_score and omit_labels query parameter to turn off these information from the response and quickly get a list of registered hostnames.
This is an add-on endpoint not available to all accounts. Please contact support for information about bulk endpoints and how to upgrade your account.
Required API key permissions: Admin (select when creating API key in Account Settings)
Request
- Base URLhttps://cyber-risk.upguard.com/api/public
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The page_token from a previous request, use this to get the next page of results.
The number of results to return per page.
Whether to sort the results in descending order.
Omit the scan information, i.e. risks, score and last scanned at.
Omit the vendor information for a hostname in the response.
Omit the labels for a hostname in the response.
Exclude active hostnames from the results.
Exclude inactive hostnames from the results.
Filter results to only hostnames that have all the provided labels.
Response
Returns the list of hostnames and their risks.
Example response
{
"hostnames": [
{
"active": true,
"automated_score": 800,
"labels": [
"network",
"data"
],
"risks": [
{
"category": "vulnerability_management",
"description": "Remote code execution exploit chain consisting of 3 vulnerabilities in Microsoft Exchange Server: CVE-2021-34473, CVE-2021-34523 and CVE-2021-31207",
"finding": "Vulnerable to CVE-2021-34473 (ProxyShell)",
"id": "verified_vuln:CVE-2021-34473",
"risk": "Vulnerabilities",
"riskSubtype": "CVE-2021-34473",
"riskType": "verified_vuln",
"severity": "critical"
}
],
"vendor": {
"id": 123456789,
"name": "Example Industries",
"primary_hostname": "example.com"
}
}
],
"next_page_token": "123456789",
"total_results": 1000
}Changes
No recorded changes to this operation across all 2 revisions of this API.