百度智能云

All Product Document

          Virtual Private Cloud

          VPN Gateway Renewal

          Description

          Specify the renewal operation of VPN, extend expiration time.

          Request Structure

              PUT /v{version}/vpn/{vpnId}?{action}&clientToken={clientToken} HTTP/1.1
              Host: bcc.bj.baidubce.com
              Authorization: authorization string
              {
                  "billing":{
                      "reservation":{
                          "reservationLength": reservationLength,
                          "reservationTimeUnit": reservationTimeUnit
                      }
                  }
              }

          Request Header

          There are no other special headers except the public headers.

          Request Parameter

          Parameter name Type Required or not Parameter position Description
          version String Yes URL parameter API version number (the current value is 1)
          vpnId String Yes URL parameter Renewed vpn gateway ID
          action String Yes Query parameter The value of the parameter is purchaseReserved in this interface
          clientToken String No Query parameter The idempotence Token is a ASCII string with a length not exceeding 64 bits. Refer to ClientToken Idempotence for details.
          billing Billing Yes RequestBody parameter Order information

          Return Header

          There are no other special headers except the public headers.

          Return Parameter

          There is no special return parameter.

          Request Example

              PUT /v1/vpn/vpn-bir8biqwr45e?purchaseReserved&clientToken=dc31ef8c-5e41-4e38-9ds0-9de7250ds5b20 HTTP/1.1
              host: bcc.bj.baidubce.com
              content-type: application/json
              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
              {
                "billing":{
                      "reservation":{
                          "reservationLength": 1,
                          "reservationTimeUnit": "month"
                      }
                  }
              } 

          Return Example

              HTTP/1.1 200 OK
              x-bce-request-id: 3ef091f6-37a4-450c-b8a9-ce64a2e80b27
              Date: Mon, 09 Jul 2018 02:47:39 GMT
              Transfer-Encoding: chunked
              Content-Type: application/json;charset=UTF-8
              Server: BWS
          Previous
          Create VPN Tunnel
          Next
          Unbind EIP