exportDbServerLogToObjectStorage
    • PDF

    exportDbServerLogToObjectStorage

    • PDF

    Article summary

    Available in VPC

    Send Cloud DB for MongoDB database server log files to Object Storage.

    Commands

    The command statement is as follows.

    ncloud vmongodb exportDbServerLogToObjectStorage [regionCode] [logType] [fileName] [bucketName] [cloudMongoDbServerInstanceNo] [output]
    

    Parameter

    The following describes the parameters.

    ParameterTypeRequiredDescriptionRestrictions
    regionCodeStringNRegion code
    - regionCode can be obtained through the getRegionList action
    - Default: Select the first Region of the getRegionList search result
    -
    logTypeStringYDatabase server log file type
    - Options: POSTGRESQL_LOG
    -
    fileNameStringYDatabase server log file name
    - fileName can be obtained through the getDbServerLogList action
    -
    bucketNameStringYObject Storage bucket name
    - bucketName can be obtained through the getCloudMongoDbBucketList action
    -
    cloudMongoDbServerInstanceNoStringYCloud DB for MongoDB server instance number
    - cloudMongoDbServerInstanceNo can be obtained through the getCloudMongoDbInstanceList action
    -
    outputStringNFormat type of the response result
    - Options: xml | json
    - Default: json
    -

    Examples

    It describes call and response examples.

    Call examples

    The following is a call example.

    ncloud vmongodb exportDbServerLogToObjectStorage --regionCode KR --logType log --fileName mongodb.log --bucketName mongodb-log --cloudMongoDbServerInstanceNo ****891
    

    Response example

    The following is a sample response.

    When the response result format type (output) is JSON

    {
      "exportDbServerLogToObjectStorageResponse": {
        "requestId": "6564e513-acd5-4fe3-ac62-2ab16ee267e8",
        "returnCode": "0",
        "returnMessage": "success"
      }
    }
    

    When the response result format type (output) is XML

    <exportDbServerLogToObjectStorageResponse>
        <requestId>6564e513-acd5-4fe3-ac62-2ab16ee267e8</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
    </exportDbServerLogToObjectStorageResponse>
    

    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.