百度智能云

All Product Document

          Virtual Private Cloud

          NAT Gateway Renewal

          Description

          Specify the renewal operation of NAT, extend expiration time.

          • The postpaid NAT gateway cannot be renewed.

          Request Structure

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

          Request Parameter

          Parameter name Type Required or not Parameter position Description
          version String Yes URL parameter API version number (the current value is 1)
          natId String Yes URL parameter Renewed NAT gateway ID
          action String Yes Query parameter The value of the parameter is purchaseReserved in this interface
          clientToken String No Query parameter Idempotence Token is an ASCII string with length not exceeding 64 bytes, for details, please see ClientToken Idempotence
          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/nat/nat-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
          Release NAT Gateway
          Next
          Pee Connection Related Interface