Set automatic export
    • PDF

    Set automatic export

    • PDF

    Article summary

    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 nameDescription
    x-ncp-apigw-timestampIt 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 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-apigw-api-keyKey value issued from APIGW
    x-ncp-apigw-api-key:{API Gateway API Key}
    x-ncp-iam-access-keyAccess key ID value issued on NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with the access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    Content-TypeRequest body content type is specified as application/json
    Content-Type: application/json

    Request body

    Parameter nameParameter descriptionRequiredAvailable valuesData type
    exportBucketName of the bucket to run the export toYInput value can be obtained through the View bucket list APIString
    logTypesLog typeYE.g., ["all"], ["SYSLOG", "wineventlog"]Array
    regionNoRegion numberYE.g., 1 , 13String

    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?

    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.