setThresholdNotiConfig (Hash Filter/File Filter)
    • PDF

    setThresholdNotiConfig (Hash Filter/File Filter)

    • PDF

    Article Summary

    Overview

    • The setThresholdNotiConfig API is a feature provided by "Hash Filter" and "File Filter" in "File Safer" and a API that makes advanced settings (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/setThresholdNotiConfig

    File Filter request

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

    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

    Request parameters

    Parameter nameRequiredTypeDescription
    notificationTypeYesstring- Analysis result notification value
    Can have one of following values: "MAL, ERR"
    referenceTimeYesinteger- Time setting (minute) value
    Can be set in 5 minute increments with values from 5 to 30
    thresholdValueYesinteger- Threshold setting value
    Can have a value of 1 to 1000

    Responses

    Response bodies (same for Hash Filter and File Filter)

    Field nameRequiredTypeDescription
    returnCodeYesstringProcessing result code for requests
    returnMessageYesstringProcessing result message for requests

    Examples

    Request examples of Hash Filter set result notification

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

    Request examples of File Filter set result notification

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

    Response examples

    {
      "returnCode": "0",
      "returnMessage": "success"
    }
    

    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.