Skip to main content

threat_lists

Creates, updates, deletes, gets or lists a threat_lists resource.

Overview​

Namethreat_lists
TypeResource
Idgoogle.webrisk.threat_lists

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
compute_diffexecconstraints.maxDatabaseEntries, constraints.maxDiffEntries, constraints.supportedCompressions, threatType, versionTokenGets the most recent threat list diffs. These diffs should be applied to a local database of hashes to keep it up-to-date. If the local database is empty or excessively out-of-date, a complete snapshot of the database will be returned. This Method only updates a single ThreatList at a time. To update multiple ThreatList databases, this method needs to be called once for each list.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
constraints.maxDatabaseEntriesinteger (int32)
constraints.maxDiffEntriesinteger (int32)
constraints.supportedCompressionsstring
threatTypestring
versionTokenstring (byte)

Lifecycle Methods​

Gets the most recent threat list diffs. These diffs should be applied to a local database of hashes to keep it up-to-date. If the local database is empty or excessively out-of-date, a complete snapshot of the database will be returned. This Method only updates a single ThreatList at a time. To update multiple ThreatList databases, this method needs to be called once for each list.

EXEC google.webrisk.threat_lists.compute_diff
@constraints.maxDatabaseEntries='{{ constraints.maxDatabaseEntries }}',
@constraints.maxDiffEntries='{{ constraints.maxDiffEntries }}',
@constraints.supportedCompressions='{{ constraints.supportedCompressions }}',
@threatType='{{ threatType }}',
@versionToken='{{ versionToken }}'
;