调用该接口查询指定规则下已添加操作对应的数据目的列表。
QPS限制
单个阿里云账号调用该接口的每秒请求数(QPS)最大限制为50。
RAM用户共享阿里云账号配额。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
调用API时,除了本文介绍的该API的特有请求参数,还需传入公共请求参数。公共请求参数说明,请参见公共参数文档。
返回数据
示例
请求示例
https://iot.cn-shanghai.aliyuncs.com/?Action=ListRuleActions
&RuleId=10000
&<公共请求参数>
正常返回示例
XML
格式
<ListRuleActionsResponse>
<RuleActionList>
<RuleActionInfo>
<Type>OTS</Type>
<RuleId>10000</RuleId>
<Id>139099</Id>
<Status>NORMAL</Status>
<Configuration>{"endPoint":"http://ShanghaiRegion.cn-shanghai.ots.aliyuncs.com","instanceName":"ShanghaiRegion","primaryKeys":[{"columnName":"temperature","columnType":"INTEGER","columnValue":"${deviceName}"}],"regionName":"cn-shanghai","role":{"roleArn":"acs:ram::1231579085******:role/aliyuniotaccessingotsrole","roleName":"AliyunIOTAccessingOTSRole"},"tableName":"iottest","uid":"1231579085******"}</Configuration>
<ErrorActionFlag>false</ErrorActionFlag>
</RuleActionInfo>
<RuleActionInfo>
<Type>REPUBLISH</Type>
<RuleId>152323</RuleId>
<Id>142401</Id>
<Status>NORMAL</Status>
<Configuration>{"topic":"/sys/a1zSA28H***/device/thing/service/property/set","topicType":0,"uid":"1231579085******"}</Configuration>
<ErrorActionFlag>false</ErrorActionFlag>
</RuleActionInfo>
</RuleActionList>
<RequestId>22254BDB-3DC1-4643-8D1B-EE0437EF09A9</RequestId>
<Success>true</Success>
</ListRuleActionsResponse>
JSON
格式
{
"RuleActionList": {
"RuleActionInfo": [
{
"Type": "OTS",
"RuleId": 10000,
"Id": 139099,
"Status":"NORMAL",
"Configuration": "{\"endPoint\":\"http://ShanghaiRegion.cn-shanghai.ots.aliyuncs.com\",\"instanceName\":\"ShanghaiRegion\",\"primaryKeys\":[{\"columnName\":\"temperature\",\"columnType\":\"INTEGER\",\"columnValue\":\"${deviceName}\"}],\"regionName\":\"cn-shanghai\",\"role\":{\"roleArn\":\"acs:ram::1231579085******:role/aliyuniotaccessingotsrole\",\"roleName\":\"AliyunIOTAccessingOTSRole\"},\"tableName\":\"iottest\",\"uid\":\"1231579085******\"}",
"ErrorActionFlag": false
},
{
"Type": "REPUBLISH",
"RuleId": 152323,
"Id": 142401,
"Status": "NORMAL",
"Configuration": "{\"topic\":\"/sys/a1zSA28H***/device/thing/service/property/set\",\"topicType\":0,\"uid\":\"1231579085******\"}",
"ErrorActionFlag": false
}
]
},
"RequestId": "22254BDB-3DC1-4643-8D1B-EE0437EF09A9",
"Success": true
}