Query Details of a Bandwidth Packet
Last Updated:2022-01-14
Description
- Query the detailed information of specified bandwidth packet resources according to the bandwidth packet 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
Parameter Name | Type | Required or not | 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 packet id |
Return Status Code
200 is returned successfully, for the failed return, please see Error code.
Return Header
There are no other special headers except the public headers.
Return Parameter
Parameter Name | Type | Description |
---|---|---|
name | String | Name of bandwidth packet |
id | String | Bandwidth packet id |
bindType | String | Type of resource bound to bandwidth packet, "eip" (elastic public network EIP) or "eipgroup" (shared bandwidth) |
bandwidthInMbps | int | Bandwidth value of bandwidth packet |
instanceId | String | id of the resource bound to bandwidth packet |
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 packet; if bindType is "eipgroup", it represents the bandwidth of shared bandwidth bound to bandwidth packet. |
createTime | String | Bandwidth packet creation time |
autoReleaseTime | String | Bandwidth packet automatic release time, and if not set, it is consistent with expiration time of the bound resource. |
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"
}