可对线上网关的网关规格进行升配。
接口说明
接口说明
调用该接口时,您需要注意:
-
请确保在使用该接口前,已充分了解云存储网关产品的收费方式和价格。
-
如果您的网关为包年包月类型,即预付费时,您必须通过接口返回的购买链接进行购买,才能完成网关升配。
-
你可以通过 DescribeGatewayModificationClasses 接口查询指定线上网关可升配的规格信息。
-
只能升级线上网关可升配规格的规格,且线上网关只能升配不能降配。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
hcs-sgw:ModifyGatewayClass |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| GatewayId |
string |
是 |
网关 ID。 |
gw-0001xv7580031yzun*** |
| GatewayClass |
string |
是 |
升配的网关规格。可升配的规格可以通过 DescribeGatewayModificationClasses 接口查询。可能值:
|
Enhanced |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| BuyURL |
string |
付费类型为包年包月时,网关升配的购买链接。 |
https://common-buy.aliyun.com/?commodityCode=hcs_sgw_csg_pre&orderType=UPGRADE&instanceId=gw-000c6hshwukjwc7e1***#/upgrade |
| TaskId |
string |
任务 ID。 |
t-0001xv7je3580bx6v*** |
| RequestId |
string |
请求 ID。 |
395B1136-982E-4F95-BDCE-7323FFEF499E |
| Message |
string |
请求结果描述。 |
successful |
| Code |
string |
状态码。状态码为 200 表示请求成功。 |
200 |
| Success |
boolean |
请求是否成功。 |
true |
示例
正常返回示例
JSON格式
{
"BuyURL": "https://common-buy.aliyun.com/?commodityCode=hcs_sgw_csg_pre&orderType=UPGRADE&instanceId=gw-000c6hshwukjwc7e1***#/upgrade",
"TaskId": "t-0001xv7je3580bx6v***",
"RequestId": "395B1136-982E-4F95-BDCE-7323FFEF499E",
"Message": "successful",
"Code": "200",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | EmptyGatewayId | You must enter a valid ID for the gateway. | 网关ID不能为空。 |
| 400 | InvalidGatewayClass | The specified specification of the gateway is invalid. | 无效的网关规格。 |
| 400 | GatewayNotExist | The specified gateway does not exist. You must specify a valid parameter. | 网关不存在,请确认输入参数是否正确。 |
| 400 | LocationCloudRequired | You must specify a cloud gateway. Try again later. | 需要网关为线上网关,请检查后重试。 |
| 400 | GatewayStatusRunningRequired | The gateway is not in the Running state. Try again later. | 需要网关为启动状态,请稍后再试。 |
| 400 | GatewayClassUpgradeOnly | You can upgrade only the specification of the gateway. | 当前网关规格仅支持升配。 |
| 400 | NoAvailableOnlineResource | There are no cloud gateways available. We recommend that you select a different specification or VSwitch that resides in another zone. | 当前没有可用的线上网关资源,请选择其他规格或者其他可用区虚拟交换机。 |
| 400 | GatewayInOperation | The gateway is processing requests . Try again later. | 网关正在进行操作中,请稍后再试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。