---
title: "getCloudCacheTargetVpcList"
slug: "cli-vcache-getcloudcachetargetvpclist"
tags: ["Cloud DB for Cache"]
updated: 2026-05-21T09:02:05Z
published: 2026-05-21T09:11:35Z
canonical: "cli-gov.ncloud-docs.com/cli-vcache-getcloudcachetargetvpclist"
---

> ## 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.

# getCloudCacheTargetVpcList

<p class="platform-info type-vpc">VPC 환경에서 이용 가능합니다.</p>

Cloud DB for Cache를 생성할 때 이용 가능한 VPC 목록을 조회합니다.

:::(Info) (참고)
Cloud DB for Cache CLI는 지원하는 DBMS 범위에 따라 두 가지 버전을 제공합니다.
* getCloudCacheTargetVpcList CLI: Valkey, Redis DBMS 이용 가능
* getCloudRedisTargetVpcList CLI: Redis DBMS 이용 가능
:::

## getCloudCacheTargetVpcList CLI<a name="getCloudCacheTargetVpcListCLI"></a> 
getCloudCacheTargetVpcList CLI의 요청, 응답 형식을 설명합니다.

### 요청<a name="요청"></a>

#### 요청 파라미터<a name="요청파라미터"></a>
요청 파라미터는 다음과 같습니다.
| 파라미터명      | 필수 여부 | 타입     | 제약 사항 | 설명                                                                                                                                                  |
|------------|-------|--------|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| regionCode | No    | String |       | <ul><li>리전 코드</li><li>regionCode는 [getRegionList](/docs/cli-vserver-server-common-getregionlist) 액션을 통해 획득 가능</li><li>Default: getRegionList 조회 결과의 첫 번째 리전을 선택</li></ul> |
| output     | No    | String |       | <ul><li>응답 결과의 포맷 타입</li><li>Options: xml \| json</li><li>Default: json</li></ul> |

### 응답<a name="응답"></a>

#### 응답 바디<a name="응답바디"></a>
응답 바디는 다음과 같습니다.
| TargetVpcList extends CommonResponse                             |
|------------------------------------------------------------------|
| private Integer totalRows;                                       |
| private List&lt;TargetVpc&gt; TargetVpcList = new ArrayList<>(); |

| TargetVpc                  |
|----------------------------|
| private String vpcNo;      |
| private String vpcName;    |
| private String ipv4Cidr;   |
| private String regionCode; |
| private Date createdDate;  |

### 예시<a name="예시"></a>

#### 호출 예시<a name="호출예시"></a>

```http
./ncloud vcache getCloudCacheTargetVpcList --regionCode KR
```

#### 응답 예시<a name="응답예시"></a>

```xml

<getCloudCacheTargetVpcListResponse>
    <requestId>cd819e87-d0b6-42cc-bdea-a311d422e091</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>2</totalRows>
    <targetVpcList>
        <targetVpc>
            <vpcNo>39**</vpcNo>
            <vpcName>exer****</vpcName>
            <ipv4Cidr>10.2.0.0/16</ipv4Cidr>
            <regionCode>KR</regionCode>
            <createdDate>2022-02-09T18:29:04+0900</createdDate>
        </targetVpc>
        <targetVpc>
            <vpcNo>18**</vpcNo>
            <vpcName>te**</vpcName>
            <ipv4Cidr>10.3.1.0/24</ipv4Cidr>
            <regionCode>KR</regionCode>
            <createdDate>2021-01-14T23:00:32+0900</createdDate>
        </targetVpc>
    </targetVpcList>
</getCloudCacheTargetVpcListResponse>
```

## getCloudRedisTargetVpcList CLI<a name="getCloudRedisTargetVpcListCLI"></a> 
getCloudRedisTargetVpcList CLI의 요청, 응답 형식을 설명합니다.

### 요청<a name="요청2"></a>

#### 요청 파라미터<a name="요청파라미터2"></a>
요청 파라미터는 다음과 같습니다.
| 파라미터명      | 필수 여부 | 타입     | 제약 사항 | 설명                                                                                                                                                  |
|------------|-------|--------|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| regionCode | No    | String |       | <ul><li>리전 코드</li><li>regionCode는 [getRegionList](/docs/cli-vserver-server-common-getregionlist) 액션을 통해 획득 가능</li><li>Default: getRegionList 조회 결과의 첫 번째 리전을 선택</li></ul> |
| output     | No    | String |       | <ul><li>응답 결과의 포맷 타입</li><li>Options: xml \| json</li><li>Default: json</li></ul> |

### 응답<a name="응답2"></a>

#### 응답 바디<a name="응답바디2"></a>
응답 바디는 다음과 같습니다.
| TargetVpcList extends CommonResponse                             |
|------------------------------------------------------------------|
| private Integer totalRows;                                       |
| private List&lt;TargetVpc&gt; TargetVpcList = new ArrayList<>(); |

| TargetVpc                  |
|----------------------------|
| private String vpcNo;      |
| private String vpcName;    |
| private String ipv4Cidr;   |
| private String regionCode; |
| private Date createdDate;  |

### 예시<a name="예시2"></a>

#### 호출 예시<a name="호출예시2"></a>

```http
./ncloud vredis getCloudRedisTargetVpcList --regionCode KR
```

#### 응답 예시<a name="응답예시2"></a>

```xml

<getCloudRedisTargetVpcListResponse>
    <requestId>cd819e87-d0b6-42cc-bdea-a311d422e091</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>2</totalRows>
    <targetVpcList>
        <targetVpc>
            <vpcNo>39**</vpcNo>
            <vpcName>exer****</vpcName>
            <ipv4Cidr>10.2.0.0/16</ipv4Cidr>
            <regionCode>KR</regionCode>
            <createdDate>2022-02-09T18:29:04+0900</createdDate>
        </targetVpc>
        <targetVpc>
            <vpcNo>18**</vpcNo>
            <vpcName>te**</vpcName>
            <ipv4Cidr>10.3.1.0/24</ipv4Cidr>
            <regionCode>KR</regionCode>
            <createdDate>2021-01-14T23:00:32+0900</createdDate>
        </targetVpc>
    </targetVpcList>
</getCloudRedisTargetVpcListResponse>
```
