Adjustment of Bandwidth in a Bandwidth Packet
Last Updated:2022-01-14
Description
- Adjust bandwidth size of bandwidth packet
- bandwidthInMbps field represents the public network bandwidth of bandwidth packet, which is required to be an integer greater than 0, and the sum of that value and the bandwidth of bound resource cannot be greater than 200Mbps.
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 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 |
action | String | Yes | Query parameter | For the operation executed by bandwidth packet instance, the value in this interface is resize. |
bandwidthInMbps | int | Yes | RequestBody parameter | Public network bandwidth of adjusted bandwidth packet |
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 Pparameter
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