exportDbServerLogToObjectStorage
    • PDF

    exportDbServerLogToObjectStorage

    • PDF

    Article summary

    Available in VPC

    Transfer Cloud DB for PostgreSQL database server log files to Object Storage.

    Commands

    The text of the command is as follows:

    ncloud vpostgresql exportDbServerLogToObjectStorage [regionCode] [logType] [fileName] [bucketName] [cloudPostgresqlServerInstanceNo] [output]
    

    Parameter

    The following is a description on parameters.

    ParameterTypeRequirement statusDescriptionRestrictions
    regionCodeStringNRegion code
    - regionCode can be obtained via the getRegionList action
    - Default: selects the first region of the getRegionList search results
    -
    logTypeStringYDatabase server log file type
    - options: POSTGRESQL_LOG
    -
    fileNameStringYDatabase server log file name
    - You can obtain fileName through the getDbServerLogList action
    -
    bucketNameStringYObject Storage bucket name
    - You can obtain bucketName through the getCloudPostgresqlBucketList action
    -
    cloudPostgresqlServerInstanceNoStringYCloud DB for PostgreSQL server instance number
    - You can obtain cloudPostgresqlServerInstanceNo through the getCloudPostgresqlInstanceList action
    -
    outputStringNFormat type of the response result
    - options: xml | json
    - default: json
    -

    Examples

    Describes examples of recalls and responses.

    Recall examples

    The following are examples of recalls.

    ncloud vpostgresql exportDbServerLogToObjectStorage --regionCode KR --logType POSTGRESQL_LOG --fileName postgresql_000000.log --bucketName postgresql-log --cloudPostgresqlServerInstanceNo ****891
    

    Response examples

    The following are examples of responses.

    If the response shows that format type (output) is json

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

    If the response shows that 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.