Updated on 2024-12-02 GMT+08:00

Application Side

URI

Request Method

POST

URI

/v5/iot/tunnels/{tunnel_id}/source-connect

Transport Protocol

wss (Sec-Websocket)

Request Parameters

Parameter

Mandatory

Type

Location

Description

tunnel_access_token

Yes

String

Header

Explanation: Device access tunnel token, which is delivered by the platform through the MQTT topic when a device tunnel is created.

Value range: 1–256 characters.

tunnel_id

Yes

String

Path

Explanation: Tunnel ID, which uniquely identifies a tunnel.

Value range: No more than 128 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed.

Example Request

POST wss://{endpoint}/v5/iot/tunnels/{tunnel_id}/source-connect

Example Response

Status Code: 200 Access success