getNotiConfig (Hash Filter/File Filter)
    • PDF

    getNotiConfig (Hash Filter/File Filter)

    • PDF

    Article Summary

    Overview

    • getNotiConfig API is provided by the "Hash Filter" and "File Filter" of "File Safer" that checks condition settings for notification of analysis results.
    • The API request must be IAM-authenticated via API Gateway.

    Request Hash Filter

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

    Request File Filter

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

    Request Header

    HeaderDescription
    x-ncp-apigw-timestampIt is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
    If the time difference with the API Gateway server is more than 5 minutes, the request is considered invalid.
    x-ncp-apigw-api-keyAPI key issued by API Gateway
    x-ncp-iam-access-keyAPI key issued by NAVER Cloud Platform or access key issued by IAM
    x-ncp-apigw-signature-v2Signature used to encrypt the body with the “secret key” that maps with the “access key.”
    The HMAC encryption algorithm is HMAC SHA256.

    Reference Call APIs that require IAM authentication
    acceptSpecify application/json.

    Response

    Response body (Hash Filter, File Filter)

    FieldRequiredTypeDescription
    returnCodeYesstringResponse code
    returnMessageYesstringResponse message
    notificationTypeYesstringSetting value of notification of analysis results

    Example

    Example of requesting checking for Hash Filter result notifications

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

    Example of requesting checking for Hash Filter result notifications

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

    Response example (If Notify everyone is set)

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

    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.