You can call this operation to delete a tunnel for a table by specifying the required table name and tunnel name.

Request parameters

  • TableName(required): the name of the table where you delete the specified tunnel.
  • TunnelName(required): the name of the tunnel that you want to delete.

Response parameters

ResponseInfo: some other fields returned in the request.

RequestId: the GUID generated by Alibaba Cloud for the request.

Example

private static void deleteTunnel(TunnelClient client, String tableName, String tunnelName) {
    DeleteTunnelRequest request = new DeleteTunnelRequest(tableName, tunnelName);
    DeleteTunnelResponse resp = client.deleteTunnel(request);
    System.out.println("RequestId: " + resp.getRequestId());
}