You need to enable JavaScript to run this app.
导航

RenewVpnGateway

最近更新时间2023.07.12 11:24:24

首次发布时间2022.04.28 07:17:15

调用RenewVpnGateway为指定的包年包月类型的VPN网关续费。

请求参数

名称类型是否必选示例值描述
ActionStringRenewVpnGateway要执行的操作,取值:RenewVpnGateway。
VersionString2020-04-01API版本信息。
VpnGatewayIdStringvgw-273zkshb2qayo7fap8t2****要续费的VPN网关的ID。您可调用DescribeVpnGateways查询VPN网关的ID信息。

PeriodUnit

String

Month

包年包月类型VPN网关续费时长的单位,默认Month。

  • Month:月
  • Year :年

Period

Integer

1

包年包月类型VPN网关续费的时长,默认1。

  • PeriodUnit传入“Month”,Period取值范围:1~9、12、24、36。
  • PeriodUnit传入“Year”,Period取值范:1~3。

返回数据

名称类型
示例值
描述
RequestIdString202203241614290567524308102CF****请求ID。

请求示例

GET /?Action=RenewVpnGateway&Version=2020-04-01&VpnGatewayId=vgw-2fe7zjsz13ksg5oxruwed**** HTTP/1.1
Host: open.volcengineapi.com
ServiceName: vpn
Region: cn-beijing

返回示例

{
    "ResponseMetadata":{
        "RequestId":"202203241614290567524308102CF****",
        "Action":"RenewVpnGateway",
        "Version":"2020-04-01",
        "Service":"vpn",
        "Region":"cn-beijing"
    },
    "Result":{
        "RequestId":"202203241614290567524308102CF****"
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode错误码错误信息描述
400InvalidVpnGateway.InvalidStatusThe specified VPN gateway is not in the correct status for the request.指定的VPN网关所处的状态无法响应该请求。
400InvalidBillingType.MalformedThe specified billing type is malformed.指定的计费类型不合法。
400InvalidMonthPeriod.MalformedThe specified monthly period is malformed.Monthly period only supports 1~9, 12, 24, 36.指定的预付费按月购买时长不合法。预付费按月购买时长只支持1~9, 12, 24, 36月。
400InvalidYearPeriod.MalformedThe specified yearly period is malformed.Yearly period only supports 1~3.指定的预付费按年购买时长不合法。预付费按年购买时长只支持1~3年。
400InvalidPeriodUnit.MalformedThe specified period unit is malformed. Pre billing period unit can only be Month or Year.指定的预付费类型时长单位不合法。预付费类型时长单位只能为月或年。
400OrderErrorFailed to create an order in one step.创建订单并支付失败。
400UnsupportedOperationThe request on the specified instance is denied due to the account balance and available vouchers are less than 100 yuan in total.因账户余额及可用代金券共不足100元,对于该实例的操作请求被拒绝。
400UnsupportedOperationThe request on the specified instance is denied due to the account in arrears status.因账户处于欠费状态,对于该实例的操作请求被拒绝。
404InvalidVpnGateway.NotFoundThe specified VPN gateway does not exist.指定的VPN网关不存在。
404InvalidVpnGateway.GetInstanceDetailGet instance detail failed.获取实例信息失败。