Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/resources/url-scanner/url-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ export interface URLScannerScanParams {
*/
account_scans?: boolean;

/**
* Filter scans by Autonomous System Number (ASN) of _any_ request made by the
* webpage.
*/
asn?: string;

/**
* Filter scans requested before date (inclusive).
*/
Expand All @@ -103,6 +109,11 @@ export interface URLScannerScanParams {
*/
ip?: string;

/**
* Filter scans by malicious verdict.
*/
is_malicious?: boolean;

/**
* Limit the number of objects in the response.
*/
Expand All @@ -113,6 +124,11 @@ export interface URLScannerScanParams {
*/
next_cursor?: string;

/**
* Filter scans by main page Autonomous System Number (ASN).
*/
page_asn?: string;

/**
* Filter scans by main page hostname .
*/
Expand Down
3 changes: 3 additions & 0 deletions tests/api-resources/url-scanner/url-scanner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ describe('resource urlScanner', () => {
'string',
{
account_scans: true,
asn: '13335',
date_end: '2019-12-27T18:11:19.117Z',
date_start: '2019-12-27T18:11:19.117Z',
hostname: 'example.com',
ip: '1.1.1.1',
is_malicious: true,
limit: 100,
next_cursor: 'string',
page_asn: 'string',
page_hostname: 'string',
page_ip: 'string',
page_path: 'string',
Expand Down