Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getDbServerLogList

Prev Next

Available in VPC

Get the list of Cloud DB for PostgreSQL instance DB server logs.

Syntax

The getDbServerLogList syntax is as follows:

./ncloud vpostgresql getDbServerLogList \
    --cloudPostgresqlServerInstanceNo <server-instance-no> \
    --logType <POSTGRESQL_LOG> \
    [--pageNo <page-no>] \
    [--pageSize <page-size>] \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getDbServerLogList.

Required options

The following options are required for getDbServerLogList.

Options Type Required Description
--cloudPostgresqlServerInstanceNo String Required Cloud DB for PostgreSQL server instance number
--logType String Required DB server log file type
  • POSTGRESQL_LOG
--pageSize Integer Conditional Number of items per page
  • Required when entering pageNo.

Optional options

These are the optional options for getDbServerLogList. Options that are not specified will use their default values.

Options Type Required Description
--pageNo Integer Optional Page number
  • 0-N

Common options

For information about the options common to all vpostgresql subcommands, see Cloud DB for PostgreSQL (VPC) options.

Examples

If the request to retrieve the list of logs for the Cloud DB for PostgreSQL DB server is successful, the name, size, and creation date and time of each log file are returned.

Command

The command example is as follows:

./ncloud vpostgresql getDbServerLogList \
    --cloudPostgresqlServerInstanceNo 34567891 \
    --logType POSTGRESQL_LOG \
    --pageNo 0 \
    --pageSize 10 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getDbServerLogListResponse": {
    "totalRows": 2,
    "cloudPostgresqlDbServerLogList": [
      {
        "fileName": "postgresql-2026-06-09_182710.log",
        "fileSize": 2712,
        "fileDate": "2026-06-09T18:47:12+0900"
      },
      {
        "fileName": "postgresql-2026-06-09_182708.log",
        "fileSize": 2154,
        "fileDate": "2026-06-09T18:27:09+0900"
      }
    ],
    "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "returnCode": "0",
    "returnMessage": "success"
  }
}