VPN gateway renewal
Updated at:2025-10-16
Description
Renew the specified VPN to extend its expiration period.
Request structure
Plain Text
1 PUT /v{version}/vpn/{vpnId}?{action}&clientToken={clientToken} HTTP/1.1
2 Host: bcc.bj.baidubce.com
3 Authorization: authorization string
4 {
5 "billing":{
6 "reservation":{
7 "reservationLength": reservationLength,
8 "reservationTimeUnit": reservationTimeUnit
9 }
10 }
11 }
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| vpnId | String | Yes | URL parameter | ID of renewed VPN gateway |
| action | String | Yes | Query | Parameter value for this API: purchaseReserved |
| clientToken | String | No | Query | Idempotence Token, which is an ASCII string with a length not exceeding 64 bits, for details, refer to ClientToken Idempotence. |
| billing | [Billing](VPC/API Reference/Appendix.md#Billing) | Yes | RequestBody | Order information |
Response headers
No special headers are required beyond the standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1 PUT /v1/vpn/vpn-bir8biqwr45e?purchaseReserved&clientToken=dc31ef8c-5e41-4e38-9ds0-9de7250ds5b20 HTTP/1.1
2 Host: bcc.bj.baidubce.com
3 Authorization: bce-auth-v1/4df6da5b832211e8a106475a8496ca04/2018-07-09T02:47:39Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/e2cbb3d113486470719a83bcb55571c623cf6e881b879f74a0c162ba31c8a42e
4 {
5 "billing":{
6 "reservation":{
7 "reservationLength": 1,
8 "reservationTimeUnit": "month"
9 }
10 }
11 }
Response example
Plain Text
1 HTTP/1.1 200 OK
2 x-bce-request-id: 3ef091f6-37a4-450c-b8a9-ce64a2e80b27
3 Date: Mon, 09 Jul 2018 02:47:39 GMT
4 Transfer-Encoding: chunked
5 Content-Type: application/json;charset=UTF-8
6 Server: BWS
