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.

rebootCloudPostgresqlServerInstance

Prev Next

VPC環境で利用できます。

Cloud DB for PostgreSQLサーバインスタンスを再起動します。

構文

rebootCloudPostgresqlServerInstance構文は次の通りです。

./ncloud vpostgresql rebootCloudPostgresqlServerInstance \
    --cloudPostgresqlServerInstanceNo <server-instance-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

オプション

rebootCloudPostgresqlServerInstanceの実行時に指定できるオプションについて説明します。

必須オプション

rebootCloudPostgresqlServerInstanceの必須オプションです。

オプション タイプ 必須の有無 説明
--cloudPostgresqlServerInstanceNo String Required Cloud DB for PostgreSQLサーバインスタンス番号

共通オプション

vpostgresqlコマンドで共通して使用するオプションについては、Cloud DB for PostgreSQL (VPC)のオプションを参照してください。

Cloud DB for PostgreSQLサーバインスタンスの再起動リクエストが成功すると、インスタンスの構成情報と各サーバインスタンスの詳細情報が返されます。

コマンド

コマンドの例は次の通りです。

./ncloud vpostgresql rebootCloudPostgresqlServerInstance \
    --cloudPostgresqlServerInstanceNo 34567891 \
    --regionCode KR \
    --output json

出力

出力の例は次の通りです。

{
  "rebootCloudPostgresqlServerInstanceResponse": {
    "totalRows": 1,
    "cloudPostgresqlInstanceList": [
      {
        "cloudPostgresqlInstanceNo": "34567890",
        "cloudPostgresqlServiceName": "test-pgsql",
        "cloudPostgresqlInstanceStatusName": "running",
        "cloudPostgresqlInstanceStatus": {
          "code": "CREAT",
          "codeName": "CLOUD DATABASE(VPC) Created状態"
        },
        "cloudPostgresqlInstanceOperation": {
          "code": "NULL",
          "codeName": "CLOUD DATABASE(VPC) Null OP"
        },
        "cloudPostgresqlImageProductCode": "SW.VPGSL.OS.LNX64.ROCKY.0810.PGSQL.B050",
        "generationCode": "G2",
        "engineVersion": "PostgreSQL 15.15",
        "license": "PostgreSQL License",
        "cloudPostgresqlPort": 13432,
        "isHa": true,
        "isMultiZone": false,
        "isBackup": true,
        "backupFileRetentionPeriod": 1,
        "backupTime": "AUTO",
        "createDate": "2026-06-09T18:17:31+0900",
        "accessControlGroupNoList": [
          "67890123"
        ],
        "cloudPostgresqlConfigList": [],
        "cloudPostgresqlServerInstanceList": [
          {
            "cloudPostgresqlServerInstanceNo": "34567891",
            "cloudPostgresqlServerName": "testpg-001-98b4",
            "cloudPostgresqlServerRole": {
              "code": "M",
              "codeName": "Primary"
            },
            "cloudPostgresqlServerInstanceStatusName": "shuttingDown",
            "cloudPostgresqlServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC)サーバ Running状態"
            },
            "cloudPostgresqlServerInstanceOperation": {
              "code": "STOP",
              "codeName": "CLOUD DATABASE(VPC)サーバ Stop OP"
            },
            "cloudPostgresqlProductCode": "SVR.VPGSL.DBSVR.HICPU.C002.M004.NET.SSD.B050.G002",
            "regionCode": "KR",
            "zoneCode": "KR-1",
            "vpcNo": "12345678",
            "subnetNo": "23456789",
            "isPublicSubnet": false,
            "privateDomain": "pg-****.vpc-cdb-kr.ntruss.com",
            "privateIp": "10.0.0.7",
            "dataStorageType": {
              "code": "SSD",
              "codeName": "SSD"
            },
            "isStorageEncryption": false,
            "dataStorageSize": 10737418240,
            "usedDataStorageSize": 199835933,
            "cpuCount": 2,
            "memorySize": 4294967296,
            "uptime": "2026-06-09T18:23:53+0900",
            "createDate": "2026-06-09T18:17:31+0900"
          },
          {
            "cloudPostgresqlServerInstanceNo": "34567892",
            "cloudPostgresqlServerName": "testpg-002-98b5",
            "cloudPostgresqlServerRole": {
              "code": "H",
              "codeName": "Secondary"
            },
            "cloudPostgresqlServerInstanceStatusName": "running",
            "cloudPostgresqlServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC)サーバ Running状態"
            },
            "cloudPostgresqlServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC)サーバ Null OP"
            },
            "cloudPostgresqlProductCode": "SVR.VPGSL.DBSVR.HICPU.C002.M004.NET.SSD.B050.G002",
            "regionCode": "KR",
            "zoneCode": "KR-1",
            "vpcNo": "12345678",
            "subnetNo": "23456789",
            "isPublicSubnet": false,
            "privateDomain": "pg-****.vpc-cdb-kr.ntruss.com",
            "privateIp": "10.0.0.8",
            "dataStorageType": {
              "code": "SSD",
              "codeName": "SSD"
            },
            "isStorageEncryption": false,
            "dataStorageSize": 10737418240,
            "usedDataStorageSize": 132565937,
            "cpuCount": 2,
            "memorySize": 4294967296,
            "uptime": "2026-06-09T18:22:56+0900",
            "createDate": "2026-06-09T18:17:31+0900"
          },
          {
            "cloudPostgresqlServerInstanceNo": "34567893",
            "cloudPostgresqlServerName": "testpg-003-98b9",
            "cloudPostgresqlServerRole": {
              "code": "S",
              "codeName": "Read Replica"
            },
            "cloudPostgresqlServerInstanceStatusName": "running",
            "cloudPostgresqlServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC)サーバ Running状態"
            },
            "cloudPostgresqlServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC)サーバ Null OP"
            },
            "cloudPostgresqlProductCode": "SVR.VPGSL.DBSVR.HICPU.C002.M004.NET.SSD.B050.G002",
            "regionCode": "KR",
            "zoneCode": "KR-1",
            "vpcNo": "12345678",
            "subnetNo": "23456789",
            "isPublicSubnet": false,
            "privateDomain": "pg-****.vpc-cdb-kr.ntruss.com",
            "privateIp": "10.0.0.10",
            "dataStorageType": {
              "code": "SSD",
              "codeName": "SSD"
            },
            "isStorageEncryption": false,
            "dataStorageSize": 10737418240,
            "usedDataStorageSize": 65439816,
            "cpuCount": 2,
            "memorySize": 4294967296,
            "uptime": "2026-06-09T19:10:24+0900",
            "createDate": "2026-06-09T18:17:31+0900"
          }
        ]
      }
    ],
    "requestId": "e5f6a7b8-c9d0-1234-efab-567890123456",
    "returnCode": "0",
    "returnMessage": "success"
  }
}