百度智能云

All Product Document

          Elastic IP

          Adjust Bandwidth in a Bandwidth Package

          Description

          • Adjust bandwidth size of bandwidth package
          • bandwidthInMbps field represents the public network bandwidth of bandwidth package, which is required to be an integer greater than 0. The sum of that value and the bandwidth of the bound resource cannot be greater than 200Mbps.
          • If the bandwidth package is a cross-border acceleration package, the sum of the bandwidth value of the package and the default cross-border bandwidth for the bound instance should be less than or equal to the bandwidth value of the bound instance.

          Request Structure

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

          Request Header

          There are no other special headers except the public headers.

          Request Parameter

          Parameter Name|Type|Required|Parameter Position|Description :--|:--|:--|:--|:-- version | String | Yes | URL parameter | API version number (the current value is 1) clientToken | String | No | Query parameter | Idempotent Token id | String | Yes | URL parameter | Bandwidth package id action | String | Yes | Query parameter | For the operation executed by bandwidth package instance, the value in this interface is resize. bandwidthInMbps | int | Yes | RequestBody parameter | Public network bandwidth of adjusted bandwidth package
          Return Status Code

          200 is returned successfully. For the failed return, see Error code.

          Return Header

          There are no other special headers except the public headers.

          Return Parameter

          There is no special return parameter.

          Request Example

          PUT /v1/eipbp/bw-2ede9df3?resize&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/ec3c0069                                                           f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
          {
              "bandwidthInMbps": 10 
          }

          Response Example

          HTTP/1.1 200 OK
          x-bce-request-id: f7302165-756d-4c83-bb7a-1d4548fbba8c
          Cache-Control: no-cache
          Server: BWS
          Previous
          Bandwidth Packet Release
          Next
          Create Bandwidth Package