百度智能云

All Product Document

          Elastic IP

          Renew EIP

          Specify the renewal operation of EIP, extend expiration time.

          No renewal operation can be conducted during EIP capacity expansion and reduction.

          Request structure

          PUT /v{version}/eip/{eip}?{action}&clientToken={clientToken} HTTP/1.1
          Host: eip.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
          eip String Yes URL parameter Bound EIP, expressed with dotted decimal notation
          action String Yes Query parameter The value of the parameter is purchaseReserved in this interface
          clientToken String Yes Query parameter Idempotence Token is an ASCII string with length not exceeding 64 bytes, for details, please see Idempotence
          billing Billing Yes RequestBody parameter Order information

          Return header

          There are no other special headers except the public headers.

          Return parameter

          No special return parameters

          Request example

          PUT /v1/eip/180.76.122.3?purchaseReserved&clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
          HOST eip.bj.baidubce.com
          Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
          
          {
          	"billing":{
          	    "reservation":{
          	        "reservationLength":1,
          	        "reservationTimeUnit":"Month"
          	    }
          	}
          }

          Return example

          HTTP/1.1 200 OK
          x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
          Date: Wed, 10 Apr 2016 08:26:52 GMT
          Transfer-Encoding: chunked
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          Previous
          Query EIP List
          Next
          EIP Automatic Renewal