Available in VPC
Note
Cloud DB for Cache CLI offers two versions based on the supported DBMS range.
- getCloudCacheBucketList CLI: Support for Valkey and Redis DBMS
- getCloudRedisBucketList CLI: Support for Redis DBMS
getCloudCacheBucketList CLI
This section describes the request and response formats for the getCloudCacheBucketList CLI.
Request
Request parameters
| Parameter name | Required | Type | Restrictions | Description |
|---|---|---|---|---|
| regionCode | No | String | - Region code Determine the Region in which the Cloud DB for Cache bucket list will be queried. regionCode can be obtained through the getRegionList action. Default: Select the first Region of the getRegionList search results. |
|
| cloudCacheInstanceNo | Yes | String | - Cloud DB for Cache instance number cloudCacheInstanceNo can be obtained through the getCloudCacheInstanceList action. |
|
| output | No | String | - Format type of the response result Options: xml | json Default: json |
Response
Response data type
- CloudCacheBucketList type
| CloudCacheBucketList extends CommonResponse |
|---|
| private Integer totalRows; |
| private List<CloudCacheBucket> cloudCacheBucketList = new ArrayList<>(); |
| CloudCacheBucket |
|---|
| private String bucketName; |
Examples
Call examples
ncloud vcache getCloudCacheBucketList --regionCode KR --cloudCacheInstanceNo 821***
Response example
{
"getCloudCacheBucketListResponse": {
"requestId": "40cb968e-72ef-42d3-adc3-e392e8f7cc99",
"returnCode": "0",
"returnMessage": "success",
"totalRows": 2,
"cloudCacheBucketList": [
{
"bucketName": "aab***"
},
{
"bucketName": "asdsd****"
}
]
}
}
<getCloudCacheBucketListResponse>
<requestId>9f2c90d3-9f6d-4891-af62-780c36949402</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>2</totalRows>
<cloudCacheBucketList>
<cloudCacheBucket>
<bucketName>aab***</bucketName>
</cloudCacheBucket>
<cloudCacheBucket>
<bucketName>asdsd****</bucketName>
</cloudCacheBucket>
</cloudCacheBucketList>
</getCloudCacheBucketListResponse>