Call this operation to delete message routing relationships between topics.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set the value to DeleteTopicRouteTable.
SrcTopic String Yes The message source topic. For example, SrcTopic. 1=/x7aWKW9****/testDataToDataHub/update.
DstTopic List Yes The target topics that you want to delete. Target topics are topics that subscribe to the SrcTopic for messages. For example, DstTopic. 1=/x7aWKW9****/deviceNameTest1/addDstTopic. 2=/x7aWKW9****/deviceNameTest2/delete.
Common Request Parameters - Yes See Signature.

Response parameters

Parameter Type Description
RequestId String The globally unique ID generated by Alibaba Cloud for the request.
Success Boolean Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed.
ErrorMessage String The error message returned when the call fails.
Code String The error code returned when the call fails. For more information about error codes, see Error codes.
FailureTopics List The failed topics whose message routing relationships with the source topic have not been deleted.

Examples

Request example

https://iot.cn-shanghai.aliyuncs.com/?Action=DeleteTopicRouteTable
&SrcTopic=%2Fx7aWKW94bb8%2FtestDataToDataHub%2Fupdate
&DstTopic. 1=%2Fx7aWKW94bb8%2FdeviceNameTest1%2Fadd
&DstTopic. 2=%2Fx7aWKW94bb8%2FdeviceNameTest2%2Fdelete
&<Public Request Parameters>

Response example

{
    "RequestId":"FCC27691-9151-4B93-9622-9C90F30542EC",
    "Success":true,
    "FailureTopics":[]
}