Compute Diff

web_risk.compute_diff
ActionGoogle Cloudconnection required

Calls Web Risk GET /v1/threatLists:computeDiff.

Gets the most recent threat list diffs. These diffs should be applied to a local database of hashes to keep it up-to-date.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Web Risk
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
project_id
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
threat_type
Which list to diff — the API diffs one at a time. Defaults to MALWARE.
stringNoMALWAREone of "MALWARE", "SOCIAL_ENGINEERING", "UNWANTED_SOFTWARE", "SOCIAL_ENGINEERING_EXTENDED_COVERAGE"—
version_token
Cursor from the previous diff. Omit for a full reset.
stringNo———
max_diff_entries
Cap on entries in the diff.
numberNo—≥ 0—
max_database_entries
Cap on the size of the local database after applying the diff.
numberNo—≥ 0—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "threat_type": "MALWARE"
}

Output

One shape.

result

FieldTypeExample
ok
boolean—
removals
object—
newVersionToken
string—
checksum
object—
responseType
string—
recommendedNextDiff
string—
additions
object—
{
  "additions": {},
  "checksum": {},
  "newVersionToken": "",
  "ok": false,
  "recommendedNextDiff": "",
  "removals": {},
  "responseType": ""
}

Related Google Web Risk nodes

See Compute Diff run in a workflow.

In a technical demo we add the Google Web Risk connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.