getThresholdNotiConfig (Hash Filter/File Filter)
    • PDF

    getThresholdNotiConfig (Hash Filter/File Filter)

    • PDF

    Article Summary

    Overview

    • The getThresholdNotiConfig API is a feature provided by "Hash Filter" and "File Filter" in "File Safer" and an API that checks the set values of advanced setting (threshold settings) within the Set results notification.
    • You can use this API through IAM authentication and API Gateway used in NAVER Cloud Platform.

    Hash Filter request

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

    File Filter request

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

    Request headers

    Header nameDescription
    x-ncp-apigw-timestampTime elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    The request is considered invalid if the time difference compared to the API Gateway server is more than 5 minutes
    x-ncp-apigw-api-keyKey issued from API Gateway
    x-ncp-iam-access-keyThe API key issued from NAVER Cloud Platform or AccessKey issued from IAM
    x-ncp-apigw-signature-v2A signature that encrypts the request path and header with a SecretKey mapped to an AccessKey
    HmacSHA256 is used as the HMAC encryption algorithm
    acceptIndicate json
    application/json

    Responses

    Response bodies (same for Hash Filter and File Filter)

    Field nameRequiredTypeDescription
    returnCodeYesstringProcessing result code for requests
    returnMessageYesstringProcessing result message for requests
    thresholdNotificationInfoListYesList- Information on analysis result notification value
    - When there's an object in list: analysis result notification setting
    - If there's no object in list: analysis result notification not set
    notificationTypeYesstringOnly included when analysis result notification is set
    Analysis result notification value
    referenceTimeYesintegerOnly included when analysis result notification is set
    - Time setting (minute) value
    Can be set in 5 minute increments with values from 5 to 30
    thresholdValueYesintegerOnly included when Analysis result notification is set
    - Threshold setting value
    Threshold can be set to a value of 1 to 1000

    Examples

    Request examples of Hash Filter set result notification

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

    Request examples of File Filter set result notification

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

    Response examples

    {
      "returnCode": "0",
      "returnMessage": "success",
      "thresholdNotificationInfoList": [
        "notificationType": "MAL",
        "referenceTime": 5,
        "thresholdValue": 1
      ]
    }
    

    Was this article helpful?

    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.