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.

getCloudPostgresqlTargetVpcList

Prev Next

VPC 환경에서 이용 가능합니다.

Cloud DB for PostgreSQL에서 사용할 수 있는 VPC 목록을 조회합니다.

구문

getCloudPostgresqlTargetVpcList 구문은 다음과 같습니다.

./ncloud vpostgresql getCloudPostgresqlTargetVpcList \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

옵션

getCloudPostgresqlTargetVpcList 실행 시 지정할 수 있는 옵션을 설명합니다.

공통 옵션

vpostgresql 명령에서 공통으로 사용하는 옵션에 대한 정보는 Cloud DB for PostgreSQL (VPC) 옵션을 참조해 주십시오.

예시

Cloud DB for PostgreSQL VPC 목록 조회 요청이 성공하면 각 VPC의 번호와 이름, IP 대역 정보가 반환됩니다.

명령

명령 예시는 다음과 같습니다.

./ncloud vpostgresql getCloudPostgresqlTargetVpcList \
    --regionCode KR \
    --output json

출력

출력 예시는 다음과 같습니다.

{
  "getCloudPostgresqlTargetVpcListResponse": {
    "totalRows": 1,
    "targetVpcList": [
      {
        "vpcNo": "12345678",
        "vpcName": "vpc-01",
        "ipv4Cidr": "10.0.0.0/16",
        "regionCode": "KR",
        "createdDate": "2025-04-25T13:31:33+0900"
      }
    ],
    "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}