---
title: "getCloudCacheTargetSubnetList"
slug: "database-vcache-getcloudcachetargetsubnetlist"
tags: ["Cloud DB for Cache", "Subnet"]
updated: 2026-09-17T09:10:16Z
published: 2026-09-17T09:10:16Z
canonical: "api-fin.ncloud-docs.com/database-vcache-getcloudcachetargetsubnetlist"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://api-fin.ncloud-docs.com/llms.txt
> Use this file to discover all available pages before exploring further.
# getCloudCacheTargetSubnetList
Cloud DB for Cache에서 사용할 수 있는 Subnet 리스트를 조회합니다.
참고
Cloud DB for Cache API는 지원하는 DBMS 범위에 따라 두 가지 버전을 제공합니다.
- getCloudCacheTargetSubnetList API: Valkey, Redis DBMS 이용 가능
- getCloudRedisTargetSubnetList API: Redis DBMS 이용 가능
## getCloudCacheTargetSubnetList API
getCloudCacheTargetSubnetList API의 요청, 응답 형식을 설명합니다.
### 요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
| --- | --- |
| GET, POST | /getCloudCacheTargetSubnetList |
#### 요청 헤더
Cloud DB for Cache (VPC) API에서 공통으로 사용하는 헤더에 대한 자세한 내용은 [Cloud DB for Cache (VPC) 요청 헤더](/docs/database-vcache#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오.
#### 요청 파라미터
| 파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
| --- | --- | --- | --- | --- |
| regionCode | No | String | | - 리전 코드 regionCode는 [getRegionList](/docs/compute-vserver-server-common-getregionlist) 액션을 통해서 획득 가능 Default : getRegionList 조회 결과의 첫 번째 리전을 선택 |
| vpcNo | Yes | String | | - 조회할 Vpc의 vpc 번호 vpcNo는 [getCloudCacheTargetVpcList](/docs/database-vcache-getcloudcachetargetvpclist) 액션을 통해서 획득 가능 |
| cloudCacheImageProductCode | Yes | String | | - Cloud Cache 이미지 상품 코드 cloudCacheImageProductCode는 [getCloudCacheImageProductList](/docs/database-vcache-getcloudcacheimageproductlist) 액션을 통해서 획득 가능 |
| isPublic | No | Boolean | | - Public Subnet 조회 여부 |
| responseFormatType | No | String | | - 응답 결과의 포맷 타입 Options: xml \| json Default: xml |
#### 요청 예시
요청 예시는 다음과 같습니다.
```
curl --location --request GET 'https://ncloud.apigw.fin-ntruss.com/vcache/v2/getCloudCacheTargetSubnetList
?regionCode=FKR
&vpcNo=39**
&cloudCacheImageProductCode=SW.VRDS.OS.LNX64.ROCKY.0810.VALKY.B050'
--header 'x-ncp-apigw-timestamp: {Timestamp}'
--header 'x-ncp-iam-access-key: {Access Key}'
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
```
### 응답
응답 형식을 설명합니다.
#### 응답 바디
응답 바디는 [TargetSubnetList](/docs/common-apidatatype-targetsubnetlist)를 참조해 주십시오.
#### 응답 상태 코드
네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 자세한 내용은 [Ncloud API 응답 상태 코드](/docs/common-ncpapi-ncpapi#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오.
#### 응답 예시
응답 예시는 다음과 같습니다.
- `responseFormatType=xml` (기본값) 일 때
```
3d4f057b-fa19-4baa-9cbc-d49074665ae9
0
success
1
57**
f**
39**
exercise2
KR-1
10.2.1.0/24
false
2022-03-24T18:00:00+0900
```
## getCloudRedisTargetSubnetList API
getCloudRedisTargetSubnetList API의 요청, 응답 형식을 설명합니다.
## 요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
| --- | --- |
| GET \| POST | /vredis/v2/getCloudRedisTargetSubnetList |
### 요청 헤더
Cloud DB for Cache API에서 공통으로 사용하는 헤더에 대한 정보는 [Cloud DB for Cache 공통 헤더](/docs/database-vcache#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오.
### 요청 쿼리 파라미터
요청 쿼리 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
| --- | --- | --- | --- |
| `regionCode` | String | Optional | 조회할 Subnet의 리전 코드 - [getRegionList](/docs/compute-vserver-server-common-getregionlist) 참조 - `getRegionList` 조회 결과의 첫 번째 리전(기본값) |
| `vpcNo` | String | Required | VPC 번호로 필터링 - [getCloudCacheTargetVpcList](/docs/database-vcache-getcloudcachetargetvpclist) 참조 |
| `cloudRedisImageProductCode` | String | Required | Cloud DB for Cache 이미지 상품 코드로 필터링 - [getCloudCacheImageProductList](/docs/database-vcache-getcloudcacheimageproductlist) 참조 |
| `isPublic` | Boolean | Optional | Public Subnet 여부로 필터링 - `true` \| `false` |
| `responseFormatType` | String | Optional | 응답 결과의 형식 - `xml` (기본값) \| `json` |
### 요청 예시
요청 예시는 다음과 같습니다.
```
curl --location --request GET 'https://fin-ncloud.apigw.fin-ntruss.com/vredis/v2/getCloudRedisTargetSubnetList
?regionCode=FKR
?vpcNo=****83
?cloudRedisImageProductCode=SW.VDBAS.VRDS.LNX64.CNTOS.0708.REDIS.7015.B050' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
```
## 응답
응답 형식을 설명합니다.
### 응답 바디
응답 바디는 [TargetSubnetList](/docs/common-apidatatype-targetsubnetlist)를 참조해 주십시오.
### 응답 상태 코드
Cloud DB for Cache API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Cloud DB for Cache 응답 상태 코드](/docs/database-vcache#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오.
### 응답 예시
응답 예시는 다음과 같습니다.
- `responseFormatType=json` 일 때
```
{
"getCloudRedisTargetSubnetListResponse": {
"totalRows": 3,
"targetSubnetList": [
{
"subnetNo": "****91",
"subnetName": "f**",
"vpcNo": "****83",
"vpcName": "te**",
"zoneCode": "FKR-1",
"subnet": "192.168.1.0/28",
"isPublic": false,
"createdDate": "2024-05-28T09:44:21+0900"
}
],
"requestId": "7c37c61d-****-****-****-ae81a5bc3e9a",
"returnCode": "0",
"returnMessage": "success"
}
}
```
- `responseFormatType=xml` (기본값) 일 때
```
7c37c61d-****-****-****-ae81a5bc3e9a
0
success
1
****91
f**
39**
te**
FKR-1
192.168.1.0/28
false
2024-05-28T09:44:21+0900
```