ThreatEntry
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
تهدید فردی؛ به عنوان مثال، یک URL مخرب یا نمایش هش آن. فقط یکی از این فیلدها باید تنظیم شود.
نمایندگی JSON |
---|
{
"hash": string,
"url": string,
"digest": string
} |
فیلدها |
---|
hash | string ( bytes format) یک پیشوند هش، متشکل از مهم ترین 4-32 بایت هش SHA256. این فیلد به صورت باینری است. برای درخواستهای JSON، هشها با پایه ۶۴ کدگذاری میشوند. رشته ای با کد base64. |
url | string یک URL. |
digest | string ( bytes format) خلاصه یک فایل اجرایی با فرمت SHA256. API از هر دو هضم باینری و هگز پشتیبانی می کند. برای درخواستهای JSON، خلاصهها با پایه 64 کدگذاری میشوند. رشته ای با کد base64. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThreatEntry defines an individual threat using either a hash, a URL, or a digest, but only one field should be populated at a time.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ehash\u003c/code\u003e field represents a SHA256 hash prefix in binary format (base64-encoded for JSON).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eurl\u003c/code\u003e field simply contains a URL string to specify the threat.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edigest\u003c/code\u003e field holds the SHA256 digest of an executable, supporting both binary and hex formats (base64-encoded for JSON).\u003c/p\u003e\n"]]],["The JSON data represents a single threat, using either a `hash`, `url`, or `digest`. The `hash` is a base64-encoded SHA256 hash prefix (4-32 bytes). The `url` is a string representing a URL. The `digest` is a base64-encoded SHA256 digest of an executable, supporting both binary and hex. Only one of these fields should be populated in any given representation of this threat data.\n"],null,["# ThreatEntry\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAn individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set.\n\n| JSON representation |\n|-------------------------------------------------------------|\n| ``` { \"hash\": string, \"url\": string, \"digest\": string } ``` |\n\n| Fields ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `hash` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded. A base64-encoded string. |\n| `url` | `string` A URL. |\n| `digest` | `string (`[bytes](https://developers.google.com/discovery/v1/type-format)` format)` The digest of an executable in SHA256 format. The API supports both binary and hex digests. For JSON requests, digests are base64-encoded. A base64-encoded string. |"]]