mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-16 23:01:03 +00:00
feat(api): add hash to url_scanner
This commit is contained in:
parent
ca2bde239b
commit
28c06a7fd3
2 changed files with 11 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ class URLScannerResource(SyncAPIResource):
|
|||
asn: str | NotGiven = NOT_GIVEN,
|
||||
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
||||
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
||||
hash: str | NotGiven = NOT_GIVEN,
|
||||
hostname: str | NotGiven = NOT_GIVEN,
|
||||
ip: str | NotGiven = NOT_GIVEN,
|
||||
is_malicious: bool | NotGiven = NOT_GIVEN,
|
||||
|
|
@ -97,6 +98,8 @@ class URLScannerResource(SyncAPIResource):
|
|||
|
||||
date_start: Filter scans requested after date (inclusive).
|
||||
|
||||
hash: Filter scans by hash of any html/js/css request made by the webpage.
|
||||
|
||||
hostname: Filter scans by hostname of _any_ request made by the webpage.
|
||||
|
||||
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
|
||||
|
|
@ -146,6 +149,7 @@ class URLScannerResource(SyncAPIResource):
|
|||
"asn": asn,
|
||||
"date_end": date_end,
|
||||
"date_start": date_start,
|
||||
"hash": hash,
|
||||
"hostname": hostname,
|
||||
"ip": ip,
|
||||
"is_malicious": is_malicious,
|
||||
|
|
@ -189,6 +193,7 @@ class AsyncURLScannerResource(AsyncAPIResource):
|
|||
asn: str | NotGiven = NOT_GIVEN,
|
||||
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
||||
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
|
||||
hash: str | NotGiven = NOT_GIVEN,
|
||||
hostname: str | NotGiven = NOT_GIVEN,
|
||||
ip: str | NotGiven = NOT_GIVEN,
|
||||
is_malicious: bool | NotGiven = NOT_GIVEN,
|
||||
|
|
@ -229,6 +234,8 @@ class AsyncURLScannerResource(AsyncAPIResource):
|
|||
|
||||
date_start: Filter scans requested after date (inclusive).
|
||||
|
||||
hash: Filter scans by hash of any html/js/css request made by the webpage.
|
||||
|
||||
hostname: Filter scans by hostname of _any_ request made by the webpage.
|
||||
|
||||
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
|
||||
|
|
@ -278,6 +285,7 @@ class AsyncURLScannerResource(AsyncAPIResource):
|
|||
"asn": asn,
|
||||
"date_end": date_end,
|
||||
"date_start": date_start,
|
||||
"hash": hash,
|
||||
"hostname": hostname,
|
||||
"ip": ip,
|
||||
"is_malicious": is_malicious,
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@ class URLScannerScanParams(TypedDict, total=False):
|
|||
date_start: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
|
||||
"""Filter scans requested after date (inclusive)."""
|
||||
|
||||
hash: str
|
||||
"""Filter scans by hash of any html/js/css request made by the webpage."""
|
||||
|
||||
hostname: str
|
||||
"""Filter scans by hostname of _any_ request made by the webpage."""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue