--- title: "getCloudCacheTargetVpcList" slug: "database-vcache-getcloudcachetargetvpclist" tags: ["Cloud DB for Cache"] updated: 2026-10-22T10:47:15Z published: 2026-10-22T10:47:15Z canonical: "api-gov.ncloud-docs.com/database-vcache-getcloudcachetargetvpclist" --- > ## Documentation Index > Fetch the complete documentation index at: https://api-gov.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getCloudCacheTargetVpcList VPC 환경에서 이용 가능합니다. Cloud DB for Cache에서 사용할 수 있는 VPC 리스트를 조회합니다. 참고 Cloud DB for Cache API는 지원하는 DBMS 범위에 따라 두 가지 버전을 제공합니다. - getCloudCacheTargetVpcList API: Valkey, Redis DBMS 이용 가능 - getCloudRedisTargetVpcList API: Redis DBMS 이용 가능 ## getCloudCacheTargetVpcList API getCloudCacheTargetVpcList API의 요청, 응답 형식을 설명합니다. ### 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET \| POST | /vcache/v2/getCloudCacheTargetVpcList | #### 요청 헤더 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` | String | Optional | 조회할 VPC의 리전 코드 - [getRegionList](/docs/compute-vserver-server-common-getregionlist) 참조 - `getRegionList` 조회 결과의 첫 번째 리전(기본값) | | `responseFormatType` | String | Optional | 응답 결과의 형식 - `xml` (기본값) \| `json` | #### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request GET 'https://ncloud.apigw.gov-ntruss.com/vcache/v2/getCloudCacheTargetVpcList ?regionCode=KR' --header 'x-ncp-apigw-timestamp: {Timestamp}' --header 'x-ncp-iam-access-key: {Access Key}' --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ### 응답 응답 형식을 설명합니다. #### 응답 바디 응답 바디는 [TargetVpcList](/docs/common-vapidatatype-targetvpclist)를 참조해 주십시오. #### 응답 상태 코드 네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Ncloud API 응답 상태 코드](/docs/api-call-lgc-errorhandling)를 참조해 주십시오. #### 응답 예시 응답 예시는 다음과 같습니다. ``` cd819e87-d0b6-42cc-bdea-a311d422e091 0 success 2 39** exer**** 10.2.0.0/16 KR 2022-02-09T18:29:04+0900 18** te** 10.3.1.0/24 KR 2021-01-14T23:00:32+0900 ``` ## getCloudRedisTargetVpcList API getCloudRedisTargetVpcList API의 요청, 응답 형식을 설명합니다. ### 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET \| POST | /vredis/v2/getCloudRedisTargetVpcList | #### 요청 헤더 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` | String | Optional | 조회할 VPC의 리전 코드 - [getRegionList](/docs/compute-vserver-server-common-getregionlist) 참조 - `getRegionList` 조회 결과의 첫 번째 리전(기본값) | | `responseFormatType` | String | Optional | 응답 결과의 형식 - `xml` (기본값) \| `json` | #### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request GET 'https://ncloud.apigw.gov-ntruss.com/vredis/v2/getCloudRedisTargetVpcList ?regionCode=KR' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ### 응답 응답 형식을 설명합니다. #### 응답 바디 응답 바디는 [TargetVpcList](/docs/common-vapidatatype-targetvpclist)를 참조해 주십시오. #### 응답 상태 코드 네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Ncloud API 응답 상태 코드](/docs/api-call-lgc-errorhandling)를 참조해 주십시오. #### 응답 예시 응답 예시는 다음과 같습니다. - `responseFormatType=json` 일 때 ``` { "getCloudRedisTargetVpcListResponse": { "totalRows": 2, "targetVpcList": [ { "vpcNo": "****73", "vpcName": "exer****", "ipv4Cidr": "10.0.0.0/16", "regionCode": "KR", "createdDate": "2024-04-24T09:54:59+0900" }, { "vpcNo": "****83", "vpcName": "te**", "ipv4Cidr": "192.168.0.0/16", "regionCode": "KR", "createdDate": "2021-11-24T13:08:02+0900" } ], "requestId": "ea022053-****-****-****-0a3a4842af11", "returnCode": "0", "returnMessage": "success" } } ``` - `responseFormatType=xml` (기본값) 일 때 ``` ea022053-****-****-****-0a3a4842af11 0 success 2 ****73 exer**** 10.0.0.0/16 KR 2024-04-24T09:54:59+0900 ****83 te** 192.168.0.0/16 KR 2021-11-24T13:08:02+0900 ```