百度智能云

All Product Document

          Elastic IP

          EIP Automatic Renewal

          Open EIP Automatic Renewal

          • EIP The billing method is prepaid.
          • EIP No billing change task.
          • EIP Automatic renewal is not activated.

          Request structure

          PUT /v{version}/eip/{eip}?{action}&clientToken={clientToken} HTTP/1.1 
          Host: eip.bj.baidubce.com 
          Authorization: authorization string 
          { 
              "autoRenewTimeUnit": autoRenewTimeUnit, 
              "autoRenewTime": autoRenewTime 
          } 

          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).
          clientToken String Yes Query parameter Idempotent Token, see Idempotence for details.
          eip String Yes URL parameter EIP to be automatically renewed, expressed in dotted decimal notation
          action String Yes Query parameter For the action executed by EIP instance, the value in this interface is startAutoRenew.
          autoRenewTimeUnit String No RequestBody parameter The value is month or year (month by default)
          autoRenewTime int No RequestBody parameter There are different ranges according to the value of autoRenewTimeUnit, 1-9 for month and 1-3 for year

          Return status code

          Return 200 for success, and error code for failure.

          Return header

          There are no other special headers except the public headers.

          Return parameter

          There is no special return parameter.

          Request example

          PUT /v1/eip/180.76.122.3?startAutoRenew&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 
          
          { 
              "autoRenewTime": 1, 
              "autoRenewTimeUnit": "month" 
          } 

          Response 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 

          Close EIP Automatic Renewal

          • EIP is required, automatic renewal has been activated.

          Request structure

          PUT /v{version}/eip/{eip}?{action}&clientToken={clientToken} HTTP/1.1 
          Host: eip.bj.baidubce.com 
          Authorization: authorization string 

          Request header

          There are no other special headers except the public headers.

          Request parameter

          Parameter name Type Required or not Parameter location Description
          version String Yes URL parameter API version number (the current value is 1).
          clientToken String Yes Query parameter Idempotent Token, see Idempotence for details.
          eip String Yes URL parameter The EIP to cancel the automatic renewal, expressed in dotted decimal notation
          action String Yes Query parameter For the action executed by EIP instance, the value in this interface is stopAutoRenew.

          Return status code

          Return 200 for success, and error code for failure.

          Return header

          There are no other special headers except the public headers.

          Return parameter

          There is no special return parameter.

          Request example

          PUT /v1/eip/180.76.122.3?stopAutoRenew&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 

          Response 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
          Renew EIP
          Next
          Disable EIP Direct-connection