Update the Local Interface Name and Comments of Peer Connection
Last Updated:2020-07-20
Description
Update the local interface name and comments of peer connection.
Request Structure
PUT /v{version}/peerconn/{peerConnId}?clientToken={clientToken} HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
{
"localIfId" : localIfId,
"description" : description,
"localIfName":localIfName
}
Request Parameter
Parameter name | Type | Required or not | Parameter position | Description |
---|---|---|---|---|
version | String | Yes | URL parameter | API version number (the current value is 1) |
peerConnId | String | Yes | URL parameter | peer connection ID |
localIfId | String | Yes | Request Body parameters | The interface ID of peer connection cannot be changed. |
description | String | No | Request Body parameters | Comments |
localIfName | String | No | Request Body parameters | Local interface name |
Return Header
There are no other special headers except the public headers.
Return Parameter
There is no special return parameter.
Request Example
PUT /v1/peerconn/peerconn-9td54fmx143e?clientToken=be31b98c-5e41-4838-9d30-9be700de5a20 HTTP/1.1
host: bcc.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/a512b86f810f11e8a106475a8496ca04/2018-07-06T11:29:59Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/b7a3b5982425be943ec93591f4ef4607c82f257693fab476bd26a45e9acb4fb1
{
"localIfId" : "qpif-ken2yc9j8x56",
"description" : "peer_diff_accounts",
"localIfName":"test"
}
Return Example
HTTP/1.1 200 OK
x-bce-request-id: d758dd78-aa10-4bcb-9679-d258aac94491
Date: Fri, 06 Jul 2018 11:29:59 GMT
Content-Type: application/json;charset=UTF-8
Server: BWS