Process Peer Connection Application
Last Updated:2020-07-20
Description
Process the peer connection application.
- When the connection request timeout initiated by the initiator is 7 days, the status of the peer connection of the initiator after time-out is "Consultation Failed".
- After the acceptor denies, the status of the peer connection of the initiator is "Consultation Failed".
Request Structure
PUT /v{version}/peerconn/{peerConnId}?{action}&clientToken={clientToken} HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
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 |
action | String | Yes | Query parameter | In this interface, the value taken for rejection parameter is "reject" and that for acceptance parameter is "accept". |
clientToken | String | No | Query parameter | Idempotence Token is an ASCII string with length not exceeding 64 bytes, for details, please see ClientToken Idempotence |
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?accept&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
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