setThresholdNotiConfig (Hash Filter/File Filter)
- Print
- PDF
setThresholdNotiConfig (Hash Filter/File Filter)
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
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
Method | Request URI |
---|---|
POST | https://filesafer.apigw.ntruss.com/hashfilter/v1/setThresholdNotiConfig |
File Filter request
Method | Request URI |
---|---|
POST | https://filesafer.apigw.ntruss.com/filefilter/v1/setThresholdNotiConfig |
Request headers
Header name | Description |
---|---|
x-ncp-apigw-timestamp | Time 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-key | Key issued from API Gateway |
x-ncp-iam-access-key | The API key issued from NAVER Cloud Platform or AccessKey issued from IAM |
x-ncp-apigw-signature-v2 | A signature that encrypts the request path and header with a SecretKey mapped to an AccessKey HmacSHA256 is used as the HMAC encryption algorithm |
accept | Indicate jsonapplication/json |
Request parameters
Parameter name | Required | Type | Description |
---|---|---|---|
notificationType | Yes | string | - Analysis result notification value Can have one of following values: "MAL, ERR" |
referenceTime | Yes | integer | - Time setting (minute) value Can be set in 5 minute increments with values from 5 to 30 |
thresholdValue | Yes | integer | - Threshold setting value Can have a value of 1 to 1000 |
Responses
Response bodies (same for Hash Filter and File Filter)
Field name | Required | Type | Description |
---|---|---|---|
returnCode | Yes | string | Processing result code for requests |
returnMessage | Yes | string | Processing 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?