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) 요청 헤더를 참조해 주십시오.
요청 쿼리 파라미터
요청 쿼리 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
regionCode |
String | Optional | 조회할 VPC의 리전 코드
|
responseFormatType |
String | Optional | 응답 결과의 형식
|
요청 예시
요청 예시는 다음과 같습니다.
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를 참조해 주십시오.
응답 상태 코드
네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud API 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
<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 API
getCloudRedisTargetVpcList API의 요청, 응답 형식을 설명합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| GET | POST | /vredis/v2/getCloudRedisTargetVpcList |
요청 헤더
Cloud DB for Cache (VPC) API에서 공통으로 사용하는 헤더에 대한 정보는 Cloud DB for Cache (VPC) 요청 헤더를 참조해 주십시오.
요청 쿼리 파라미터
요청 쿼리 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
regionCode |
String | Optional | 조회할 VPC의 리전 코드
|
responseFormatType |
String | Optional | 응답 결과의 형식
|
요청 예시
요청 예시는 다음과 같습니다.
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를 참조해 주십시오.
응답 상태 코드
네이버 클라우드 플랫폼에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud API 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
-
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(기본값) 일 때<?xml version="1.0" encoding="UTF-8"?> <getCloudRedisTargetVpcListResponse> <requestId>ea022053-****-****-****-0a3a4842af11</requestId> <returnCode>0</returnCode> <returnMessage>success</returnMessage> <totalRows>2</totalRows> <targetVpcList> <targetVpc> <vpcNo>****73</vpcNo> <vpcName>exer****</vpcName> <ipv4Cidr>10.0.0.0/16</ipv4Cidr> <regionCode>KR</regionCode> <createdDate>2024-04-24T09:54:59+0900</createdDate> </targetVpc> <targetVpc> <vpcNo>****83</vpcNo> <vpcName>te**</vpcName> <ipv4Cidr>192.168.0.0/16</ipv4Cidr> <regionCode>KR</regionCode> <createdDate>2021-11-24T13:08:02+0900</createdDate> </targetVpc> </targetVpcList> </getCloudRedisTargetVpcListResponse>