Query Tap-to-Run Details

Last Updated on : 2023-07-06 08:27:29download

Query the tap-to-run details based on the tap-to-run ID.

API address

GET: /v2.0/iot-03/scenes/{scene_id}

Request parameter

Parameter nameTypeINRequiredDescription
scene_idStringuritrueThe ID of a tap-to-run scene.

Return parameter

Parameter nameTypeDescription
resultSceneDetailResThe returned result.

Description of result

Parameter nameTypeDescription
nameStringThe name of a specified tap-to-run scene.
dslSceneDSLResThe language of tap-to-run rules. For more information, see the dsl description below.

Description of dsl

Parameter nameTypeDescription
actionsListThe list of tap-to-run actions.

Description of actions

Parameter nameTypeDescription
execution_typeStringThe execution type.
execution_ruleActionExecutionRuleResThe execution rule.

Request example

GET: /v2.0/iot-03/scenes/fuNo0KVjeK9e****

Error code

For more information, see error code.

Details of dsl

Parameter nameTypeDescriptionRequired
actionsListThe list of automation actions. See details of actions.Yes

Details of actions

Parameter nameTypeDescriptionRequired
execution_typeStringThe execution type.
deviceIssue: sent by a device.
deviceGroupIssue: sent by a device group.
delay: delay action.
Yes
execution_ruleObjectThe execution rule. See details of execution_rule.Yes

Details of execution_rule

  1. When execution_type is delay:
Parameter nameTypeDescriptionRequired
delay_secondsLongThe delay time. The value range is 1 to 5 × 60 × 60. Unit: second.Yes
  1. When execution_type is deviceIssue or deviceGroupIssue:
Parameter nameTypeDescriptionRequired
execution_idStringThe ID of a specified device or device group.Yes
function_codeStringThe instruction code of a device or device group.Yes
function_valueObjectThe instruction value of a device or device group.Yes