getThresholdNotiConfig (Hash Filter,File Filter)
- 印刷する
- PDF
getThresholdNotiConfig (Hash Filter,File Filter)
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
概要
- getThresholdNotiConfig APIは、「File Safer」の「Hash Filter」と 「File Filter」で提供する機能で、結果通知設定内の高度な設定(しきい値設定)の設定値を確認する APIです。
- この APIは NAVERクラウドプラットフォームで使用する IAM認証と API Gatewayを通して使用できます。
Hash Filterリクエスト
Method | Request URI |
---|---|
POST | https://filesafer.apigw.ntruss.com/hashfilter/v1/getThresholdNotiConfig |
File Filterリクエスト
Method | Request URI |
---|---|
POST | https://filesafer.apigw.ntruss.com/filefilter/v1/getThresholdNotiConfig |
リクエストヘッダ
ヘッダ名 | 説明 |
---|---|
x-ncp-apigw-timestamp | 1970年1月1日00:00:00協定世界時(UTC)からの経過時間をミリ秒(Millisecond)で表したもの API Gatewayサーバとの時間差が5分以上の場合は無効なリクエストとみなす |
x-ncp-apigw-api-key | API Gatewayから発行されたキー |
x-ncp-iam-access-key | NAVERクラウドプラットフォームから発行された API Keyまたは IAMから発行された AccessKey |
x-ncp-apigw-signature-v2 | リクエストパスとヘッダを AccessKeyとマッピングされる SecretKeyで暗号化した署名として HMAC暗号化アルゴリズムは HmacSHA256を使用 |
accept | jsonを指定application/json |
レスポンス
レスポンスボディ(Hash Filter、File Filter同様)
フィールド名 | 必須有無 | タイプ | 説明 |
---|---|---|---|
returnCode | Yes | string | リクエストに対する処理結果コード |
returnMessage | Yes | string | リクエストに対する処理結果メッセージ |
thresholdNotificationInfoList | Yes | List | - 分析結果通知の設定値に関する情報 - リストに objectがある場合: 分析結果通知を設定 - リストに objectがない場合: 分析結果通知を未設定 |
notificationType | Yes | string | 分析結果通知が設定されている場合のみ含む 分析結果通知の設定値 |
referenceTime | Yes | integer | 分析結果通知が設定されている場合のみ含む - 時間設定(分)値 5分単位で5~30まで設定可能 |
thresholdValue | Yes | integer | 分析結果通知が設定されている場合のみ含む - しきい値の設定値 しきい値は1~1000の値で設定可能 |
例
Hash Filterの結果通知設定のリクエスト例
curl -X POST "https://filesafer.apigw.ntruss.com/hashfilter/v1/getThresholdNotiConfig"
-H "accept: application/json"
-H "x-ncp-apigw-api-key: {x-ncp-apigw-api-key}"
-H "x-ncp-iam-access-key: {x-ncp-iam-access-key}"
-H "x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}"
-H "x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}"
File Filterの結果通知設定のリクエスト例
curl -X POST "https://filesafer.apigw.ntruss.com/filefilter/v1/getThresholdNotiConfig"
-H "accept: application/json"
-H "x-ncp-apigw-api-key: {x-ncp-apigw-api-key}"
-H "x-ncp-iam-access-key: {x-ncp-iam-access-key}"
-H "x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}"
-H "x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}"
レスポンス例
{
"returnCode": "0",
"returnMessage": "success",
"thresholdNotificationInfoList": [
"notificationType": "MAL",
"referenceTime": 5,
"thresholdValue": 1
]
}
この記事は役に立ちましたか?