Call this operation to query all the rule actions of a specified rule.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set the value to ListRuleActions.
RuleId String Yes The ID of the rule that you want to query.
Common request parameters - Yes See Common parameters.

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.
RuleActionList List The rule action information returned when the call is successful. See the following table RuleActionInfo.
Table 1. RuleActionInfo
Parameter Type Description
Id Long The ID of the rule action.
RuleId Long The ID of the rule that the rule action belongs to.
Type String

The rule action type which indicates the data forwarding target of this rule action. Values:

REPUBLISH: Forwards data to another topic.

OTS: Forwards data to a Table Store instance.

MNS: Forwards data to a theme of Message Service (MNS).

FC: Forwards data to a function of Function Compute.

RDS: Forwards data to an instance of ApsaraDB for RDS.

Configuration String The configurations of this rule action.

Examples

Request example

https://iot.cn-shanghai.aliyuncs.com/?Action=ListRuleActions
&RuleId=10000
&Public Request Parameters

Response example

{
    "RequestId": "21D327AF-A7DE-4E59-B5D1-ACAC8C024555",
    "RuleActionList": [{
        "Configuration": "{\"topic\":\"/a1GM***/bike/get\",\"uid\":\"3216***\"}",
        "Id": 10001,
        "RuleId": 1000,
        "Type": REPUBLISH
    },
    {
        "Configuration": "{\"endPoint\":\"http://ons.aliyun.com:8080/rocketmq/nsaddr4client\",\"regionName\":\"cn-shanghai\",\"topic\":\"test_ons\",\"uid\":\"3216***\"}",
        "Id": 10002,
        "RuleId": 1000,
        "Type": ONS
    }],
    "Success": true
}