Documentation Index

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

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

Cloud DB for PostgreSQL 개요

Prev Next

Cloud DB for PostgreSQL은 PostgreSQL 데이터베이스를 손쉽게 구축하고 자동으로 관리할 수 있는 완전 관리형 클라우드 데이터베이스 서비스입니다. Cloud DB for PostgreSQL에서는 데이터베이스 관리 기능에 대한 CLI를 vpostgresql 명령어로 제공합니다.

Cloud DB for PostgreSQL 공통 설정

Cloud DB for PostgreSQL CLI에서 공통으로 사용하는 명령어와 옵션 형식을 설명합니다.

구문

vpostgresql는 다음 구문으로 실행합니다.

./ncloud vpostgresql <subcommand> [options]

옵션

vpostgresql에서 공통으로 사용할 수 있는 옵션입니다.

옵션 타입 필수 여부 설명
--regionCode String Optional 리전 코드
--output String Optional 응답 결과의 형식
  • json (기본값) | xml

Cloud DB for PostgreSQL 명령어

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 연관 리소스

Cloud DB for PostgreSQL CLI에 대한 사용자의 이해를 돕기 위해 다양한 연관 리소스를 제공하고 있습니다.