Update Bandwidth Packet Name
Last Updated:2022-01-14
Description
- Update name of bandwidth packet
- name field is required to start with a letter, only number, letter and special characters of
-
_
.
/
can be included with a length no more than 65 characters.
Request Structure
PUT /v{version}/eipbp/{id}?{action}&clientToken={clientToken} HTTP/1.1
Host: eip.bj.baidubce.com
Authorization: authorization string
{
"name":name
}
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 rename. |
name | String | Yes | RequestBody parameter | Name of updated 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 Parameter
There is no special return parameter.
Request Example
PUT /v1/eipbp/bw-2ede9df3?rename&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
{
"name": "newname"
}
Response Example
HTTP/1.1 200 OK
x-bce-request-id: f7302165-756d-4c83-bb7a-1d4548fbba8c
Cache-Control: no-cache
Server: BWS