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.

Cloud DB for PostgreSQL (VPC)の概要

Prev Next

VPC環境で利用できます。

Cloud DB for PostgreSQLは、PostgreSQLデータベースを簡単に構築して自動管理する完全管理型クラウドデータベースサービスです。Cloud DB for PostgreSQLでは、データベース管理機能関連の CLIをvpostgresqlコマンドとして提供します。

Cloud DB for PostgreSQL(VPC)共通設定

Cloud DB for PostgreSQL (VPC) CLIで共通して使用するコマンドとオプションの形式について説明します。

構文

vpostgresqlの構文は次の通りです。

./ncloud vpostgresql <subcommand> [options]

オプション

vpostgresqlで共通して使用できるオプションです。

オプション タイプ 必須の有無 説明
--regionCode String Optional リージョンコード
  • KR | SGN | JPN
  • デフォルト: getRegionList照会結果の最初のリージョン
--output String Optional レスポンス結果の形式
  • json(デフォルト) | xml

Cloud DB for PostgreSQL (VPC)コマンド

vpostgresql配下で使用できるサブコマンドのリストです。

DB Server

DB Server関連のコマンドは次の通りです。

コマンド 説明
createCloudPostgresqlInstance Cloud DB for PostgreSQLインスタンスを作成
getCloudPostgresqlInstanceList Cloud DB for PostgreSQLインスタンスリストを照会
getCloudPostgresqlInstanceDetail Cloud DB for PostgreSQLインスタンスの詳細情報を照会
createCloudPostgresqlReadReplicaInstance Cloud DB for PostgreSQLインスタンスに Read Replicaサーバインスタンスを追加
rebootCloudPostgresqlServerInstance Cloud DB for PostgreSQLサーバインスタンスを再起動
deleteCloudPostgresqlReadReplicaInstance Cloud DB for PostgreSQLインスタンスの Read Replicaサーバインスタンスを削除
deleteCloudPostgresqlInstance Cloud DB for PostgreSQLインスタンスを削除

Database

データベース関連のコマンドは次の通りです。

コマンド 説明
addCloudPostgresqlDatabaseList Cloud DB for PostgreSQLインスタンスにデータベースを追加
getCloudPostgresqlDatabaseList Cloud DB for PostgreSQLインスタンスのデータベースリストを照会
deleteCloudPostgresqlDatabaseList Cloud DB for PostgreSQLインスタンスからデータベースを削除

DB User

DB User関連のコマンドは次の通りです。

コマンド 説明
addCloudPostgresqlUserList Cloud DB for PostgreSQLインスタンスにユーザーを追加
getCloudPostgresqlUserList Cloud DB for PostgreSQLインスタンスのユーザーリストを照会
changeCloudPostgresqlUserList Cloud DB for PostgreSQLインスタンスのユーザー情報を変更
deleteCloudPostgresqlUserList Cloud DB for PostgreSQLインスタンスからユーザーを削除

Backup

バックアップ関連のコマンドは次の通りです。

コマンド 説明
getCloudPostgresqlBackupList Cloud DB for PostgreSQLインスタンスのバックアップリストを照会
getCloudPostgresqlBackupDetailList Cloud DB for PostgreSQLインスタンスのバックアップ詳細情報リストを照会
exportBackupToObjectStorage Cloud DB for PostgreSQLインスタンスのバックアップファイルを Object Storageに転送

DB Server Log

DB Serverログ関連のコマンドは次の通りです。

コマンド 説明
getDbServerLogList Cloud DB for PostgreSQLインスタンスの DBサーバログリストを照会
exportDbServerLogToObjectStorage Cloud DB for PostgreSQLインスタンスの DBサーバログファイルを Object Storageに転送

Common

リソース作成時に参照できる共通の照会コマンドは次の通りです。

コマンド 説明
getCloudPostgresqlImageProductList Cloud DB for PostgreSQLイメージ商品リストを照会
getCloudPostgresqlProductList Cloud DB for PostgreSQLサーバ商品リストを照会
getCloudPostgresqlTargetVpcList VPCリストを照会
getCloudPostgresqlTargetSubnetList Subnetリストを照会
getCloudPostgresqlBucketList Object Storageバケットリストを照会

Cloud DB for PostgreSQL (VPC)関連リソース

Cloud DB for PostgreSQL (VPC) CLIをより効果的に活用するために、さまざまな関連リソースを提供しています。