getThresholdNotiConfig (Hash Filter,File Filter)
    • PDF

    getThresholdNotiConfig (Hash Filter,File Filter)

    • PDF

    Article Summary

    概要

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

    Hash Filterリクエスト

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

    File Filterリクエスト

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

    リクエストヘッダ

    ヘッダ名説明
    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

    レスポンス

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

    フィールド名必須有無タイプ説明
    returnCodeYesstringリクエストに対する処理結果コード
    returnMessageYesstringリクエストに対する処理結果メッセージ
    thresholdNotificationInfoListYesList- 分析結果通知の設定値に関する情報
    - リストに objectがある場合: 分析結果通知を設定
    - リストに objectがない場合: 分析結果通知を未設定
    notificationTypeYesstring分析結果通知が設定されている場合のみ含む
    分析結果通知の設定値
    referenceTimeYesinteger分析結果通知が設定されている場合のみ含む
    - 時間設定(分)値
    5分単位で5~30まで設定可能
    thresholdValueYesinteger分析結果通知が設定されている場合のみ含む
    - しきい値の設定値
    しきい値は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
      ]
    }
    

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

    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.