ExpandCacheDisk_云存储网关_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

调用该接口时,您需要注意:

请确保在使用该接口前,已充分了解云存储网关产品的收费方式和价格

  • 请确认您已创建缓存盘,并通过接口返回的购买链接进行购买,完成缓存盘的扩容。

  • 基础型网关扩容缓存盘上限为 4 TB,标准型网关扩容缓存盘上限为 8 TB,增强型和性能型网关扩容缓存盘上限为 32 TB。

  • 云存储网关支持扩容缓存盘,但不支持缩减缓存盘。

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
hcs-sgw:ExpandCacheDisk
Update
全部资源
*

请求参数

字段名称字段详情
GatewayIdstring

网关 ID。

示例值:gw-000eg44nmxbsfwbvq***参考取值来源:
    ModifyGateway
    CreateGateway
    DescribeGateways
NewSizeInGBinteger<int32>

扩容后的缓存容量。单位为 GB。扩容要求如下:展开详情

示例值:101
LocalFilePathstring

缓存盘内部设备名。您可以通过 DescribeGatewayCaches 接口获得缓存盘内部设备名。

示例值:/dev/vdb参考取值来源:
    CreateGatewayFileShare

返回参数

字段名称字段详情
BuyURLstring

缓存盘为预付费情况下的购买支付链接。

示例值: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}&regionId=cn-hangzhou#/buy
TaskIdstring

任务 ID。

示例值:t-000eg44nmxbsh3qk3***
RequestIdstring

请求 ID。

示例值:F8B59F29-453D-49BF-8673-EEB8F9F2D5C6
Messagestring

请求结果描述。

示例值:successful
Codestring

状态码。状态码为 200 表示请求成功。

示例值:200
Successboolean

请求是否成功。可取值如下:展开详情

示例值:true

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
EmptyGatewayId
You must enter a valid ID for the gateway.诊断
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.诊断
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.诊断
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.诊断

变更历史

变更时间变更内容概要操作
2024-09-06
变更错误码400

相关示例