Note:
This is a legacy API which has been hidden and will no longer be updated. We recommend using the new VPC API 3.0 which is standardized and faster.
This API (RenewVpn) is used to renew the VPN.
Domain for API request: vpc.api.qcloud.com
The following request parameter list only provides API request parameters. Common request parameters need to be added when the API is called. For more information, refer to Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
vpcId | Yes | string | VPC ID or unified ID (unified ID is recommended). For example: vpc-aa3z6vxo. Can be queried via the API DescribeVpcEx. |
vpnGwId | Yes | string | VPN gateway ID to be modified, which can be vpnGwId or unVpnGwId. unVpnGwId is recommended. For example: pngw-nhg87nmg. Can be queried via the API DescribeVpnGw. |
period | Yes | Int | Number of month you want to renew (up to 36 months) |
Parameter Name | Type | Description |
---|---|---|
code | Int | Error code, 0: Succeeded; other values: Failed |
message | String | Error message |
This API does not have service error codes. For common error codes, see VPC Error Codes.
Input
https://domain/v2/index.php?Action=RenewVpn &<Common request parameters> &vpcId=gz_vpc_1111 &period=1 &vpnGwId=1
Output
{
"code" : 0,
"message" : "ok",
}
Was this page helpful?