Expands the cache disk of a Cloud Storage Gateway.
Operation description
Before you call this operation, note the following:
Before you call this operation, make sure that you are familiar with the billing and pricing of Cloud Storage Gateway.
-
Make sure that a cache disk is created. You can use the purchase URL returned by this operation to complete the payment and expand the cache disk.
-
The maximum cache disk capacity is 4 TB for a Basic gateway, 8 TB for a Medium gateway, and 32 TB for an Enhanced or Performance gateway.
-
Cloud Storage Gateway lets you scale out cache disks, but you cannot scale them in.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hcs-sgw:ExpandCacheDisk |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayId |
string |
Yes |
The ID of the gateway. |
gw-000eg44nmxbsfwbvq*** |
| NewSizeInGB |
integer |
Yes |
The capacity of the cache disk after it is scaled out. Unit: GB. The following requirements must be met:
|
101 |
| LocalFilePath |
string |
Yes |
The internal device name of the cache disk. You can call the DescribeGatewayCaches operation to query the internal device name of the cache disk. |
/dev/vdb |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| BuyURL |
string |
The URL that is used to pay for the subscription cache disk. |
https://common-buy-intl.alibabacloud.com/?commodityCode=hcs_sgw_csg_pre&request={"gateway_id":"gw-0007va9bnidei3s8a***”,”directBuy":"false","gateway_class":"standard","cache_cloud_efficiency_size":0}®ionId=cn-hangzhou#/buy |
| TaskId |
string |
The ID of the task. |
t-000eg44nmxbsh3qk3*** |
| RequestId |
string |
The ID of the request. |
F8B59F29-453D-49BF-8673-EEB8F9F2D5C6 |
| Message |
string |
The message that is returned. |
successful |
| Code |
string |
The status code. A status code of 200 indicates that the request was successful. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"BuyURL": "https://common-buy-intl.alibabacloud.com/?commodityCode=hcs_sgw_csg_pre&request={\"gateway_id\":\"gw-0007va9bnidei3s8a***”,”directBuy\":\"false\",\"gateway_class\":\"standard\",\"cache_cloud_efficiency_size\":0}®ionId=cn-hangzhou#/buy",
"TaskId": "t-000eg44nmxbsh3qk3***",
"RequestId": "F8B59F29-453D-49BF-8673-EEB8F9F2D5C6",
"Message": "successful",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EmptyGatewayId | You must enter a valid ID for the gateway. | You must enter a valid ID for the gateway. |
| 400 | GatewayNotExist | The specified gateway does not exist. You must specify a valid parameter. | The specified gateway does not exist. You must specify a valid parameter. |
| 400 | GatewayOperationNotAllowed | You cannot perform the operation when the gateway is in the current state. | You cannot perform the operation when the gateway is in the current state. |
| 400 | GatewayInOperation | The gateway is processing requests . Try again later. | The gateway is busy. Try again later. |
| 400 | BadRequest | Invalid request. You must specify valid parameters in the request. | Invalid request. You must specify valid parameters in the request. |
| 400 | CacheNotExist | The specified cache disk does not exist. You must specify a valid parameter. | The specified cache disk does not exist. You must specify a valid parameter. |
| 400 | EmptyLocalFilePath | You must enter an local file path for the cache disk. | You must enter an internal device name for the cache disk. |
| 400 | InvalidNewSizeInGB | The scale-up size that you specified for the cache disk is invalid. You must specify a valid size. | The scale-up size that you specified for the cache disk is invalid. You must specify a valid size. |
| 400 | CacheSizeLimit | The maximum size of cache disks for the gateway is 32 TB. | The maximum cache disk size of the gateway is 32 TB. |
| 400 | CacheSizeLimitForBasic | The specified scale-up size exceeds the maximum limit. The maximum scale-up size of cache disks for a Basic gateway is 4 TB. | The expansion capacity exceeds the maximum cache disk limit. The maximum cache disk limit for Basic Gateway is 4 TB. |
| 400 | CacheSizeLimitForStandard | The specified scale-up size exceeds the maximum limit. The maximum scale-up size of cache disks for a Standard gateway is 8 TB. | The expansion capacity exceeds the maximum cache disk limit. The standard gateway cache disk limit is 8 TB. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.