--- title: "addCloudPostgresqlUserList" slug: "cli-vpostgresql-addcloudpostgresqluserlist" tags: ["Cloud DB for PostgreSQL"] updated: 2026-10-22T09:07:22Z published: 2026-10-22T09:07:22Z canonical: "cli-gov.ncloud-docs.com/cli-vpostgresql-addcloudpostgresqluserlist" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli-gov.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # addCloudPostgresqlUserList VPC 환경에서 이용 가능합니다. Cloud DB for PostgreSQL 인스턴스에 DB User를 추가합니다. ## 구문 `addCloudPostgresqlUserList` 구문은 다음과 같습니다. ``` ./ncloud vpostgresql addCloudPostgresqlUserList \ --cloudPostgresqlInstanceNo \ --cloudPostgresqlUserList \ [--regionCode ] \ [--output ] ``` ## 옵션 `addCloudPostgresqlUserList` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `addCloudPostgresqlUserList`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--cloudPostgresqlInstanceNo` | String | Required | Cloud DB for PostgreSQL 인스턴스 번호 - [getCloudPostgresqlInstanceList](/docs/cli-vpostgresql-getcloudpostgresqlinstancelist) 참조 | | `--cloudPostgresqlUserList` | List | Required | 추가할 DB User 목록 - 각 사용자는 따옴표 안에 {필드='값'} 쌍을 콤마로 구분하여 입력 - `name` (Required): DB User 계정 ID. 영문 소문자, 숫자, 특수문자 `_`를 조합하여 4~16자 이내로 입력. 문자열은 영문자로 시작. 미리 정의된 role 및 예약어 사용 불가 - `password` (Required): DB User 계정 비밀번호. 영문자, 숫자, 특수문자를 각 1자 이상씩 포함하여 9~20자 이내로 입력. 특수문자 ``` `&` `+` `\` `"` `'` `/` 및 공백 사용 불가. User ID 포함 불가 - `clientCidr` (Required): 서버에 접속을 허용할 클라이언트의 CIDR 대역. 전체 허용: `0.0.0.0/0`, 특정 IP: `192.168.1.1/32`, IP 대역: `192.168.1.0/24` - `isReplicationRole` (Required): Replication Role 여부. `true` \| `false` | ### 공통 옵션 `vpostgresql` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Cloud DB for PostgreSQL (VPC) 옵션](/docs/cli-vpostgresql#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 DB User 추가 요청이 성공하면 입력한 사용자가 Cloud DB for PostgreSQL 인스턴스에 추가됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` ./ncloud vpostgresql addCloudPostgresqlUserList \ --cloudPostgresqlInstanceNo 34567890 \ --cloudPostgresqlUserList "name='testreader', password='Examplepw123!', clientCidr='0.0.0.0/0', isReplicationRole='false'" \ --regionCode KR \ --output json ``` ### 출력 출력 예시는 다음과 같습니다. ``` { "addCloudPostgresqlUserListResponse": { "requestId": "efe1cc8a-819f-4f5a-9efd-8443dc1e8b44", "returnCode": "0", "returnMessage": "success" } } ```