setThresholdNotiConfig

Prev Next

File Filter๋ฅผ ์‚ฌ์šฉํ•œ ๋ถ„์„ ๊ฒฐ๊ณผ์˜ ํ†ต๋ณด ์„ค์ •์—์„œ ๊ณ ๊ธ‰ ์„ค์ • ๊ฐ’์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ๊ณ ๊ธ‰ ์„ค์ •์€ ์ผ์ • ์‹œ๊ฐ„ ๋™์•ˆ ์ž„๊ณ„์น˜์— ํ•ด๋‹นํ•˜๋Š” ์•…์„ฑ์ฝ”๋“œ๊ฐ€ ํƒ์ง€๋˜๋ฉด ํ†ต๋ณดํ•˜๋Š” ๊ธฐ๋Šฅ์ž…๋‹ˆ๋‹ค.

์š”์ฒญ ํ˜•์‹์„ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค. ์š”์ฒญ ํ˜•์‹์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋ฉ”์„œ๋“œ URI
POST /setThresholdNotiConfig

File Safer API์—์„œ ๊ณตํ†ต์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ํ—ค๋”์— ๋Œ€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ์€ File Safer API ๊ณตํ†ต ํ—ค๋”๋ฅผ ์ฐธ์กฐํ•ด ์ฃผ์‹ญ์‹œ์˜ค.

์š”์ฒญ ๋ฐ”๋””์— ๋Œ€ํ•œ ์„ค๋ช…์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

ํ•„๋“œ ํƒ€์ž… ํ•„์ˆ˜ ์—ฌ๋ถ€ ์„ค๋ช…
notificationType String Required ๋ถ„์„ ๊ฒฐ๊ณผ ํ†ต๋ณด ์กฐ๊ฑด
  • MAL | ERR
    • MAL: ์•…์„ฑ์ฝ”๋“œ ํƒ์ง€ ์‹œ ํ†ต๋ณด
    • ERR: ์กฐํšŒ ์‹คํŒจ ์‹œ ํ†ต๋ณด
referenceTime Integer Required ์ž„๊ณ„์น˜์— ํ•ด๋‹นํ•˜๋Š” ์•…์„ฑ์ฝ”๋“œ๋ฅผ ํƒ์ง€ํ•˜๋Š” ์‹œ๊ฐ„(๋ถ„)
  • 5~30
  • 5๋ถ„ ๋‹จ์œ„๋กœ ์„ค์ • ๊ฐ€๋Šฅ
thresholdValue Integer Required ์ž„๊ณ„์น˜(๊ฑด)
  • 1~1000

์š”์ฒญ ์˜ˆ์‹œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

curl --location --request POST 'https://fin-filesafer.apigw.fin-ntruss.com/filefilter/v1/setThresholdNotiConfig' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-apigw-api-key: {API Gateway API Key}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Accept: application/json' \
--data '{
    "notificationType": "ERR",
    "referenceTime": 5,
    "thresholdValue": 1
}'
Shell

์‘๋‹ต ํ˜•์‹์„ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค.

์‘๋‹ต ๋ฐ”๋””์— ๋Œ€ํ•œ ์„ค๋ช…์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

ํ•„๋“œ ํƒ€์ž… ํ•„์ˆ˜ ์—ฌ๋ถ€ ์„ค๋ช…
returnCode String Required ์‘๋‹ต ์ฝ”๋“œ
returnMessage String Required ์‘๋‹ต ๋ฉ”์‹œ์ง€

File Safer API์—์„œ ๊ณตํ†ต์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ์‘๋‹ต ์ƒํƒœ ์ฝ”๋“œ์— ๋Œ€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ์€ File Safer ์‘๋‹ต ์ƒํƒœ ์ฝ”๋“œ๋ฅผ ์ฐธ์กฐํ•ด ์ฃผ์‹ญ์‹œ์˜ค.

์‘๋‹ต ์˜ˆ์‹œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

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