getNotiConfig (Hash Filter/File Filter)
    • PDF

    getNotiConfig (Hash Filter/File Filter)

    • PDF

    Article Summary

    概要

    • getNotiConfig APIは「File Safer」の「Hash Filter」と「File Filter」で提供する機能であり、分析結果通知条件の設定を確認するAPIです。
    • 該当APIは、Naverクラウドプラットフォームで使うIAM認証及びAPI Gatewayを通じて使えます。

    Hash Filter リクエスト

    MethodRequest URI
    GEThttps://filesafer.apigw.ntruss.com/hashfilter/v1/getNotiConfig

    File Filter リクエスト

    MethodRequest URI
    GEThttps://filesafer.apigw.ntruss.com/filefilter/v1/getNotiConfig

    リクエストヘッダ

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

    IAM認証が必要なAPIの呼び出しを参照します。
    acceptjsonを明示します。
    application/json

    レスポンス

    レスポンスボディ (Hash Filter, File Filter)

    フィールド名必須タイプ説明
    returnCodeYesstringリクエストに対する処理結果コードです。
    returnMessageYesstringリクエストに対する処理結果メッセージです。
    notificationTypeYesstring結果通知設定値です。

    例示

    Hash Filter リクエスト例示

    curl -X GET "https://filesafer.apigw.ntruss.com/hashfilter/v1/getNotiConfig"
       -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 GET "https://filesafer.apigw.ntruss.com/filefilter/v1/getNotiConfig"
       -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",
      "notificationType": "ALL"
    }
    

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

    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.