자동 내보내기 설정
- 인쇄
- PDF
자동 내보내기 설정
- 인쇄
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
설명
Cloud Log Analytics에서 Object Storage로 자동 내보내기를 하도록 설정합니다.
요청
요청 URL
POST https://cloudloganalytics.apigw.fin-ntruss.com/api/{regionCode}-v1/export/config
요청 헤더
헤더명 | 설명 |
---|---|
x-ncp-apigw-timestamp | 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타내며, API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주x-ncp-apigw-timestamp:{Timestamp} |
x-ncp-apigw-api-key | APIGW에서 발급받은 키 값x-ncp-apigw-api-key:{API Gateway API Key} |
x-ncp-iam-access-key | 네이버 클라우드 플랫폼 포털에서 발급받은 Access Key ID 값x-ncp-iam-access-key:{Account Access Key} |
x-ncp-apigw-signature-v2 | Access Key ID 값과 Secret Key로 암호화한 서명x-ncp-apigw-signature-v2:{API Gateway Signature} |
Content-Type | Request body content type을 application/json으로 지정Content-Type: application/json |
요청 바디
Parameter 이름 | Parameter 설명 | 필수 여부 | Available Values | Data Type |
---|---|---|---|---|
exportBucket | 내보내기를 실행할 Bucket 명 | Y | 버킷 목록 조회 API를 통해 입력 값 획득 | String |
logTypes | 로그 타입 | Y | 예시: ["all"], ["SYSLOG", "wineventlog"] | Array |
예시
요청 예시
POST https://cloudloganalytics.apigw.fin-ntruss.com/api/{regionCode}-v1/export/config
HOST: cloudloganalytics.apigw.fin-ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: FJSBB4K3XnaGAvVe0Hzj3/2hfNWvgLHR1rQHW2Et2Rs=
x-ncp-apigw-timestamp: 1593848345548
x-ncp-iam-access-key: 11IKBWgQegM4DwiJL4mo
{
"exportBucket": "asdcx",
"logTypes": [
"all"
]
}
curl -X POST "https://cloudloganalytics.apigw.fin-ntruss.com/api/{regionCode}-v1/export/config"
-H "accept: application/json"
-H "Content-Type: application/json"
-H "x-ncp-iam-access-key: 11IKBWgQegM4DwiJL4mo"
-H "x-ncp-apigw-timestamp: 1594101972281"
-H "x-ncp-apigw-signature-v2: nbCzsE2UfHOsHZq6ce6mtekG5UvSuiaSRY/kOpn8Pw0="
-d "{ \"exportBucket\": \"asdcx\", \"logTypes\": [ \"all\" ]}"
응답 예시
{
"code": 0,
"message": "요청이 정상적으로 처리되었습니다",
"result": "Success"
}
이 문서가 도움이 되었습니까?