Close the Synchronous DNS of Peer Connection
Last Updated:2020-07-20
Description
Close the synchronous DNS record of peer connection.
- The DNS can be closed only when the status of peer connection is "Available".
- The synchronization of DNS cannot be closed when the DNS status of peer connection is "Synchronizing" or "Synchronization Closed".
Request Structure
PUT /v{version}/peerconn/{peerConnId}?{action}&role={role}&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 | Enable the peer connection of the synchronous dns record. |
action | String | Yes | Query parameter | The value of the parameter is close in this interface |
role | String | Yes | Query parameter | "initiator" and "acceptor" |
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?close&role=initiator&clientToken=dc31ef8c-5e41-4e38-9ds0-9de75d0ds5b20 HTTP/1.1
host: bcc.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/7784e2058c1111e8b62ccf3a4a052967/2018-07-20T11:51:01Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/13b9b4830ef19459427e78e61ab811a765ab68416b3ba097e18164b534906ceb
Return Example
HTTP/1.1 200 OK
x-bce-request-id: 3ef091f6-37a4-450c-b8a9-ce64a2e80b27
Date: Fri, 20 Jul 2018 02:47:39 GMT
Transfer-Encoding: chunked
Content-Type: application/json;charset=UTF-8
Server: BWS