Set automatic export
- Print
- PDF
Set automatic export
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Description
Enable automatic export from Cloud Log Analytics to Object Storage.
Request
Request URL
POST https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/export/config
Request headers
Header name | Description |
---|---|
x-ncp-apigw-timestamp | It indicates the elapsed time in milliseconds since January 1, 1970 00:00:00 UTC. Request is considered invalid if the timestamp differs from the current time by more than 5 minutesx-ncp-apigw-timestamp:{Timestamp} |
x-ncp-apigw-api-key | Key value issued from APIGWx-ncp-apigw-api-key:{API Gateway API Key} |
x-ncp-iam-access-key | Access key ID value issued on NAVER Cloud Platform portalx-ncp-iam-access-key:{Account Access Key} |
x-ncp-apigw-signature-v2 | Signature encrypted with the access key ID value and secret keyx-ncp-apigw-signature-v2:{API Gateway Signature} |
Content-Type | Request body content type is specified as application/jsonContent-Type: application/json |
Request body
Parameter name | Parameter description | Required | Available values | Data type |
---|---|---|---|---|
exportBucket | Name of the bucket to run the export to | Y | Input value can be obtained through the View bucket list API | String |
logTypes | Log type | Y | E.g., ["all"], ["SYSLOG", "wineventlog"] | Array |
regionNo | Region number | Y | E.g., 1 , 13 | String |
Examples
Request example
POST https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/export/config
HOST: cloudloganalytics.apigw.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"
],
"regionNo": "1"
}
curl -X POST "https://cloudloganalytics.apigw.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\" ], \"regionNo\": \"1\"}"
Response example
{
"code": 0,
"message": "The request has been successfully processed.",
"result": "Success"
}
Was this article helpful?