Method: hashList.get
ハッシュリストの最新コンテンツを取得します。ハッシュリストは、脅威リストまたは脅威リスト以外(グローバルキャッシュなど)のいずれかです。
これは https://google.aip.dev/131 で定義されている標準の Get メソッドで、HTTP メソッドも GET です。
HTTP リクエスト
GET https://safebrowsing.googleapis.com/v5alpha1/hashList/{name}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。このハッシュリストの名前。脅威リストの場合もあれば、グローバルキャッシュの場合もあります。
|
クエリ パラメータ
パラメータ |
version |
string (bytes format)
クライアントがすでに所有しているハッシュリストのバージョン。クライアントがハッシュリストを初めて取得する場合、このフィールドは空のままにしなければなりません。それ以外の場合、クライアントはサーバーから以前に受信したバージョンを提供すべきです。クライアントは、これらのバイトを操作してはなりません。 V5 の新機能: API の V4 では states と呼ばれていましたが、わかりやすくするために version に名前が変更されました。 Base64 でエンコードされた文字列。
|
desiredHashLength |
enum (HashLength )
返されたハッシュの望ましいハッシュ プレフィックス長(バイト単位)。サーバーは、指定された長さのすべてのハッシュ接頭辞を返します。 ハッシュリストが異なれば、desiredHashLength フィールドに指定できる値の要件も異なります。これは HashListMetadata の supportedHashLengths フィールドにあります。desiredHashLength で supportedHashLengths 内の値が指定されていない場合は、エラーが返されます。
|
sizeConstraints |
object (SizeConstraints )
リストのサイズ制約。省略した場合、制約はありません。処理能力、帯域幅、ストレージが限られているすべてのデバイスに、制約を適用することをおすすめします。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には HashList
のインスタンスが含まれます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-04-01 UTC。
[null,null,["最終更新日 2024-04-01 UTC。"],[[["Get the latest contents of a hash list, which can be a threat list or the Global Cache, using a standard GET method."],["The `name` path parameter specifies the hash list to retrieve."],["Provide the `version` query parameter to indicate the client's current hash list version or leave it empty for the initial fetch."],["Optionally, specify the desired hash prefix length using the `desiredHashLength` query parameter and set size constraints with the `sizeConstraints` parameter."],["The response body will contain the requested `HashList` data."]]],["This document details retrieving a hash list (threat or non-threat) using a `GET` request. The URL is structured as `https://safebrowsing.googleapis.com/v5alpha1/hashList/{name}`, with `name` being a required path parameter. Optional query parameters include `version` (client's current list version), `desiredHashLength` (hash prefix length), and `sizeConstraints` (list size limits). The request body is empty, and a successful response returns a `HashList` instance.\n"]]