扩容云上网关缓存盘。
接口说明
调用该接口时,您需要注意:
请确保在使用该接口前,已充分了解云存储网关产品的收费方式和价格。
-
请确认您已创建缓存盘,并通过接口返回的购买链接进行购买,完成缓存盘的扩容。
-
基础型网关扩容缓存盘上限为 4 TB,标准型网关扩容缓存盘上限为 8 TB,增强型和性能型网关扩容缓存盘上限为 32 TB。
-
云存储网关支持扩容缓存盘,但不支持缩减缓存盘。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
hcs-sgw:ExpandCacheDisk |
update |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
GatewayId |
string |
是 |
网关 ID。 |
gw-000eg44nmxbsfwbvq*** |
NewSizeInGB |
integer |
是 |
扩容后的缓存容量。单位为 GB。扩容要求如下:
|
101 |
LocalFilePath |
string |
是 |
缓存盘内部设备名。您可以通过 DescribeGatewayCaches 接口获得缓存盘内部设备名。 |
/dev/vdb |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
BuyURL |
string |
缓存盘为预付费情况下的购买支付链接。 |
https://common-buy.aliyun.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 |
任务 ID。 |
t-000eg44nmxbsh3qk3*** |
RequestId |
string |
请求 ID。 |
F8B59F29-453D-49BF-8673-EEB8F9F2D5C6 |
Message |
string |
请求结果描述。 |
successful |
Code |
string |
状态码。状态码为 200 表示请求成功。 |
200 |
Success |
boolean |
请求是否成功。可取值如下:
|
true |
示例
正常返回示例
JSON
格式
{
"BuyURL": "https://common-buy.aliyun.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
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | EmptyGatewayId | You must enter a valid ID for the gateway. | 网关ID不能为空。 |
400 | GatewayNotExist | 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. | 网关当前状态不允许执行该操作。 |
400 | GatewayInOperation | The gateway is processing requests . Try again later. | 网关正在进行操作中,请稍后再试。 |
400 | BadRequest | 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. | 缓存盘不存在,请确认输入参数是否正确。 |
400 | EmptyLocalFilePath | You must enter an local file path 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. | 无效的扩容缓存容量值,请确认输入参数是否正确。 |
400 | CacheSizeLimit | The maximum size of cache disks for the gateway is 32 TB. | 网关缓存盘大小上限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. | 扩容量超过最大缓存盘上限,基础型网关缓存盘上限为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. | 扩容量超过最大缓存盘上限,标准型网关缓存盘上限为8 TB。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。