VPC環境で利用できます。
Cloud DB for PostgreSQLインスタンスを削除します。
構文
deleteCloudPostgresqlInstance構文は次の通りです。
./ncloud vpostgresql deleteCloudPostgresqlInstance \
--cloudPostgresqlInstanceNo <instance-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
オプション
deleteCloudPostgresqlInstanceの実行時に指定できるオプションについて説明します。
必須オプション
deleteCloudPostgresqlInstanceの必須オプションです。
| オプション | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
--cloudPostgresqlInstanceNo |
String | Required | Cloud DB for PostgreSQLインスタンス番号
|
共通オプション
vpostgresqlコマンドで共通して使用するオプションについては、Cloud DB for PostgreSQL (VPC)のオプションを参照してください。
例
Cloud DB for PostgreSQLインスタンスの削除リクエストが成功すると、インスタンスの構成情報と終了状態が返されます。
コマンド
コマンドの例は次の通りです。
./ncloud vpostgresql deleteCloudPostgresqlInstance \
--cloudPostgresqlInstanceNo 34567890 \
--regionCode KR \
--output json
出力
出力の例は次の通りです。
{
"deleteCloudPostgresqlInstanceResponse": {
"totalRows": 1,
"cloudPostgresqlInstanceList": [
{
"cloudPostgresqlInstanceNo": "34567890",
"cloudPostgresqlServiceName": "test-pgsql",
"cloudPostgresqlInstanceStatusName": "deleted",
"cloudPostgresqlInstanceStatus": {
"code": "DEL",
"codeName": "CLOUD DATABASE(VPC) Deleted状態"
},
"cloudPostgresqlInstanceOperation": {
"code": "DEL",
"codeName": "CLOUD DATABASE(VPC) Delete 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"
],
"cloudPostgresqlServerInstanceList": [
{
"cloudPostgresqlServerInstanceNo": "34567891",
"cloudPostgresqlServerName": "testpg-001-98b4",
"cloudPostgresqlServerRole": {
"code": "M",
"codeName": "Primary"
},
"cloudPostgresqlServerInstanceStatusName": "deleting",
"cloudPostgresqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC)サーバ Running状態"
},
"cloudPostgresqlServerInstanceOperation": {
"code": "DEL",
"codeName": "CLOUD DATABASE(VPC)サーバ Delete 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": 216626363,
"cpuCount": 2,
"memorySize": 4294967296,
"uptime": "2026-06-09T19:17:01+0900",
"createDate": "2026-06-09T18:17:31+0900"
},
{
"cloudPostgresqlServerInstanceNo": "34567892",
"cloudPostgresqlServerName": "testpg-002-98b5",
"cloudPostgresqlServerRole": {
"code": "H",
"codeName": "Secondary"
},
"cloudPostgresqlServerInstanceStatusName": "deleting",
"cloudPostgresqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC)サーバ Running状態"
},
"cloudPostgresqlServerInstanceOperation": {
"code": "DEL",
"codeName": "CLOUD DATABASE(VPC)サーバ Delete 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": 149354965,
"cpuCount": 2,
"memorySize": 4294967296,
"uptime": "2026-06-09T18:22:56+0900",
"createDate": "2026-06-09T18:17:31+0900"
}
]
}
],
"requestId": "a7b8c9d0-e1f2-3456-abcd-789012345678",
"returnCode": "0",
"returnMessage": "success"
}
}