setThresholdNotiConfig (Hash Filter,File Filter)
- 印刷する
- PDF
setThresholdNotiConfig (Hash Filter,File Filter)
- 印刷する
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
概要
- setThresholdNotiConfig 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/setThresholdNotiConfig |
File Filterリクエスト
Method | Request URI |
---|---|
POST | https://filesafer.apigw.ntruss.com/filefilter/v1/setThresholdNotiConfig |
リクエストヘッダ
ヘッダ名 | 説明 |
---|---|
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 |
リクエストパラメータ
パラメータ名 | 必須有無 | タイプ | 説明 |
---|---|---|---|
notificationType | Yes | string | - 分析結果通知設定値 「MAL、ERR」 のどちらかの値をもてる |
referenceTime | Yes | integer | - 時間設定(分)値 5分単位で5~30まで設定可能 |
thresholdValue | Yes | integer | - しきい値の設定値 1 ~ 1000までの値をもてる |
レスポンス
レスポンスボディ(Hash Filter、File Filter同様)
フィールド名 | 必須有無 | タイプ | 説明 |
---|---|---|---|
returnCode | Yes | string | リクエストに対する処理結果コード |
returnMessage | Yes | string | リクエストに対する処理結果メッセージ |
例
Hash Filterの結果通知設定のリクエスト例
curl -X POST "https://filesafer.apigw.ntruss.com/hashfilter/v1/setThresholdNotiConfig"
-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}"
-d {
"notificationType":{notificationType},
"referenceTime":{referenceTime},
"thresholdValue":{thresholdValue}
}
File Filterの結果通知設定のリクエスト例
curl -X POST "https://filesafer.apigw.ntruss.com/filefilter/v1/setThresholdNotiConfig"
-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}"
-d {
"notificationType":{notificationType},
"referenceTime":{referenceTime},
"thresholdValue":{thresholdValue}
}
レスポンス例
{
"returnCode": "0",
"returnMessage": "success"
}
この記事は役に立ちましたか?