Skip to content

Commit 28c06a7

Browse files
committed
feat(api): add hash to url_scanner
1 parent ca2bde2 commit 28c06a7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/cloudflare/resources/url_scanner/url_scanner.py

+8
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def scan(
5757
asn: str | NotGiven = NOT_GIVEN,
5858
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
5959
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
60+
hash: str | NotGiven = NOT_GIVEN,
6061
hostname: str | NotGiven = NOT_GIVEN,
6162
ip: str | NotGiven = NOT_GIVEN,
6263
is_malicious: bool | NotGiven = NOT_GIVEN,
@@ -97,6 +98,8 @@ def scan(
9798
9899
date_start: Filter scans requested after date (inclusive).
99100
101+
hash: Filter scans by hash of any html/js/css request made by the webpage.
102+
100103
hostname: Filter scans by hostname of _any_ request made by the webpage.
101104
102105
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
@@ -146,6 +149,7 @@ def scan(
146149
"asn": asn,
147150
"date_end": date_end,
148151
"date_start": date_start,
152+
"hash": hash,
149153
"hostname": hostname,
150154
"ip": ip,
151155
"is_malicious": is_malicious,
@@ -189,6 +193,7 @@ async def scan(
189193
asn: str | NotGiven = NOT_GIVEN,
190194
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
191195
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
196+
hash: str | NotGiven = NOT_GIVEN,
192197
hostname: str | NotGiven = NOT_GIVEN,
193198
ip: str | NotGiven = NOT_GIVEN,
194199
is_malicious: bool | NotGiven = NOT_GIVEN,
@@ -229,6 +234,8 @@ async def scan(
229234
230235
date_start: Filter scans requested after date (inclusive).
231236
237+
hash: Filter scans by hash of any html/js/css request made by the webpage.
238+
232239
hostname: Filter scans by hostname of _any_ request made by the webpage.
233240
234241
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
@@ -278,6 +285,7 @@ async def scan(
278285
"asn": asn,
279286
"date_end": date_end,
280287
"date_start": date_start,
288+
"hash": hash,
281289
"hostname": hostname,
282290
"ip": ip,
283291
"is_malicious": is_malicious,

src/cloudflare/types/url_scanner/url_scanner_scan_params.py

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class URLScannerScanParams(TypedDict, total=False):
2727
date_start: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
2828
"""Filter scans requested after date (inclusive)."""
2929

30+
hash: str
31+
"""Filter scans by hash of any html/js/css request made by the webpage."""
32+
3033
hostname: str
3134
"""Filter scans by hostname of _any_ request made by the webpage."""
3235

0 commit comments

Comments
 (0)