setThresholdNotiConfig (Hash Filter,File Filter)
    • PDF

    setThresholdNotiConfig (Hash Filter,File Filter)

    • PDF

    Article Summary

    概要

    • setThresholdNotiConfig APIは、「File Safer」の「Hash Filter」と 「File Filter」で提供する機能で、結果通知設定内の詳細設定(しきい値設定)を行う APIです。
    • この APIは NAVERクラウドプラットフォームで使用する IAM認証と API Gatewayを通して使用できます。

    Hash Filterリクエスト

    MethodRequest URI
    POSThttps://filesafer.apigw.ntruss.com/hashfilter/v1/setThresholdNotiConfig

    File Filterリクエスト

    MethodRequest URI
    POSThttps://filesafer.apigw.ntruss.com/filefilter/v1/setThresholdNotiConfig

    リクエストヘッダ

    ヘッダ名説明
    x-ncp-apigw-timestamp1970年1月1日00:00:00協定世界時(UTC)からの経過時間をミリ秒(Millisecond)で表したもの
    API Gatewayサーバとの時間差が5分以上の場合は無効なリクエストとみなす
    x-ncp-apigw-api-keyAPI Gatewayから発行されたキー
    x-ncp-iam-access-keyNAVERクラウドプラットフォームから発行された API Keyまたは IAMから発行された AccessKey
    x-ncp-apigw-signature-v2リクエストパスとヘッダを AccessKeyとマッピングされる SecretKeyで暗号化した署名として
    HMAC暗号化アルゴリズムは HmacSHA256を使用
    acceptjsonを指定
    application/json

    リクエストパラメータ

    パラメータ名必須有無タイプ説明
    notificationTypeYesstring- 分析結果通知設定値
    「MAL、ERR」 のどちらかの値をもてる
    referenceTimeYesinteger- 時間設定(分)値
    5分単位で5~30まで設定可能
    thresholdValueYesinteger- しきい値の設定値
    1 ~ 1000までの値をもてる

    レスポンス

    レスポンスボディ(Hash Filter、File Filter同様)

    フィールド名必須有無タイプ説明
    returnCodeYesstringリクエストに対する処理結果コード
    returnMessageYesstringリクエストに対する処理結果メッセージ

    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"
    }
    

    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.