百度智能云

All Product Document

          Elastic IP

          Query Details of a Bandwidth Package

          Description

          • Query the detailed information of specified bandwidth package resources according to the bandwidth package id.

          Request Structure

          GET /v{version}/eipbp/{id} 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

          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

          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

          Type Description
          name String Name of bandwidth package
          id String Bandwidth package id
          bindType String Type of resource bound to bandwidth package, "eip" (elastic public network EIP) or "eipgroup" (shared bandwidth)
          bandwidthInMbps int Bandwidth value of bandwidth package
          instanceId String id of the resource bound to bandwidth package
          eips List< String> If bindType is "eip", only one eip address is included; if bindType is "eipgroup", all eip addresses under shared bandwidth are included.
          instanceBandwidthInMbps int If bindType is "eip", it represents the bandwidth of eip bound to bandwidth package; if bindType is "eipgroup", it represents the bandwidth of shared bandwidth bound to bandwidth package.
          createTime String Bandwidth package creation time
          autoReleaseTime String Bandwidth package automatic release time, and if not set, it is consistent with expiration time of the bound resource.
          type String Bandwidth pacakge type, BandwidthPackage (Bandwidth pacakge) or AccelerationPackage (cross-boarder acceleration package)
          region String Region to which the bandwidth pacakge belongs

          Request Example

          GET /v1/eipbp/bw-IyWRnII7 HTTP/1.1
          Host: eip.bj.baidubce.com
          ContentType: application/json
          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: 1214cca7-4ad5-451d-9215-71cb844c0a50
          Date: Thu, 16 Mar 2017 06:29:48 GMT
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          {
              "name":"bp_1",
              "id":"bw-IyWRnII7", 
              "bindType":"eip",
              "bandwidthInMbps":"5",
              "instanceId":"ip-xefrn257", 
              "eips":[
          		"10.23.54.23"
              ],
              "instanceBandwidthInMbps":5,
              "createTime":"2019-08-03T20:38:43Z", 
              "autoReleaseTime":"2019-09-23T12:38:43Z",
              "type": "BandwidthPackage",
              "region": "bj"
          }
          Previous
          Create Bandwidth Package
          Next
          Query Information of a Bandwidth Package List