'1.0', 'info' => [ 'style' => 'RPC', 'product' => 'Iot', 'version' => '2017-04-20', ], 'directories' => [ [ 'id' => 0, 'title' => '其它', 'type' => 'directory', 'children' => [ 'ApplyDeviceWithNames', 'BatchGetDeviceState', 'CreateProduct', 'CreateProductTopic', 'CreateRule', 'CreateRuleAction', 'CreateTopicRouteTable', 'DeleteDeviceProp', 'DeleteProductTopic', 'DeleteRule', 'DeleteRuleAction', 'DeleteTopicRouteTable', 'GetDeviceShadow', 'GetRule', 'GetRuleAction', 'ListRule', 'ListRuleActions', 'Pub', 'PubBroadcast', 'QueryApplyStatus', 'QueryDevice', 'QueryDeviceByName', 'QueryDeviceProp', 'QueryPageByApplyId', 'QueryProductTopic', 'QueryTopicReverseRouteTable', 'QueryTopicRouteTable', 'RRpc', 'RamAuth', 'RegistDevice', 'SaveDeviceProp', 'StartRule', 'StopRule', 'UpdateDeviceShadow', 'UpdateProduct', 'UpdateProductTopic', 'UpdateRule', 'UpdateRuleAction', ], ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ 'ApplyDeviceWithNames' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'string', ], 'required' => true, 'maxItems' => 1001, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'ApplyId' => [ 'type' => 'integer', 'format' => 'int64', ], 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'BatchGetDeviceState' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'string', ], 'required' => true, 'maxItems' => 51, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'DeviceStatusList' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'DeviceStatus' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Status' => [ 'type' => 'string', ], 'LastOnlineTime' => [ 'type' => 'string', ], 'DeviceName' => [ 'type' => 'string', ], 'AsAddress' => [ 'type' => 'string', ], 'DeviceId' => [ 'type' => 'string', ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateProduct' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Name', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'NodeType', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'Desc', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'CatId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => false, ], ], [ 'name' => 'ExtProps', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'SecurityPolicy', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'default' => 'P_D', 'enum' => [ 'P_D', 'P', 'D', ], ], ], [ 'name' => 'Id2', 'in' => 'query', 'schema' => [ 'type' => 'boolean', 'required' => false, 'default' => 'false', ], ], [ 'name' => 'PayType', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'enum' => [ '0', '1', ], ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'ProductInfo' => [ 'type' => 'object', 'properties' => [ 'ProductName' => [ 'type' => 'string', ], 'ProductSecret' => [ 'type' => 'string', ], 'GmtModified' => [ 'type' => 'string', ], 'CreateUserId' => [ 'type' => 'integer', 'format' => 'int64', ], 'CatId' => [ 'type' => 'integer', 'format' => 'int64', ], 'ProductDesc' => [ 'type' => 'string', ], 'ProductKey' => [ 'type' => 'string', ], 'NodeType' => [ 'type' => 'integer', 'format' => 'int32', ], 'Id2' => [ 'type' => 'boolean', ], 'GmtCreate' => [ 'type' => 'string', ], 'FromSource' => [ 'type' => 'string', ], 'ExtProps' => [ 'type' => 'string', ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateProductTopic' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'TopicShortName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'Operation', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Desc', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'TopicId' => [ 'type' => 'integer', 'format' => 'int64', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateRule' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'Select', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'ShortTopic', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Where', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Name', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'RuleDesc', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'DataType', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'RuleId' => [ 'type' => 'integer', 'format' => 'int64', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateRuleAction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RuleId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], [ 'name' => 'Type', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'Configuration', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ActionId' => [ 'type' => 'integer', 'format' => 'int64', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateTopicRouteTable' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'SrcTopic', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'RegionId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'DstTopic', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'string', ], 'required' => true, 'maxItems' => 100, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'IsAllSucceed' => [ 'type' => 'boolean', ], 'Success' => [ 'type' => 'boolean', ], 'FailureTopics' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'Topic' => [ 'type' => 'array', 'items' => [ 'type' => 'object', ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DeleteDeviceProp' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'PropKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DeleteProductTopic' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'TopicId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DeleteRule' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RuleId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DeleteRuleAction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ActionId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DeleteTopicRouteTable' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'SrcTopic', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'RegionId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'DstTopic', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'type' => 'array', 'items' => [ 'type' => 'string', ], 'required' => true, 'maxItems' => 100, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'IsAllSucceed' => [ 'type' => 'boolean', ], 'Success' => [ 'type' => 'boolean', ], 'FailureTopics' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'Topic' => [ 'type' => 'array', 'items' => [ 'type' => 'object', ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'GetDeviceShadow' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'ShadowMessage', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'ShadowMessage' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'GetRule' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RuleId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'RuleInfo' => [ 'type' => 'object', 'properties' => [ 'Modified' => [ 'type' => 'string', ], 'Status' => [ 'type' => 'string', ], 'DataType' => [ 'type' => 'string', ], 'Select' => [ 'type' => 'string', ], 'CreateUserId' => [ 'type' => 'integer', 'format' => 'int64', ], 'Where' => [ 'type' => 'string', ], 'ProductKey' => [ 'type' => 'string', ], 'Topic' => [ 'type' => 'string', ], 'ShortTopic' => [ 'type' => 'string', ], 'RuleDesc' => [ 'type' => 'string', ], 'Name' => [ 'type' => 'string', ], 'Created' => [ 'type' => 'string', ], 'Id' => [ 'type' => 'integer', 'format' => 'int64', ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'GetRuleAction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ActionId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'RuleActionInfo' => [ 'type' => 'object', 'properties' => [ 'Type' => [ 'type' => 'string', ], 'Configuration' => [ 'type' => 'string', ], 'Id' => [ 'type' => 'integer', 'format' => 'int64', ], 'RuleId' => [ 'type' => 'integer', 'format' => 'int64', ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'ListRule' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'CurrentPage', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => true, ], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'Code' => [ 'type' => 'string', ], 'PageSize' => [ 'type' => 'integer', 'format' => 'int32', ], 'Total' => [ 'type' => 'integer', 'format' => 'int32', ], 'Page' => [ 'type' => 'integer', 'format' => 'int32', ], 'Data' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'RuleInfo' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Modified' => [ 'type' => 'string', ], 'Status' => [ 'type' => 'string', ], 'DataType' => [ 'type' => 'string', ], 'Select' => [ 'type' => 'string', ], 'CreateUserId' => [ 'type' => 'integer', 'format' => 'int64', ], 'Where' => [ 'type' => 'string', ], 'ProductKey' => [ 'type' => 'string', ], 'Topic' => [ 'type' => 'string', ], 'ShortTopic' => [ 'type' => 'string', ], 'RuleDesc' => [ 'type' => 'string', ], 'Name' => [ 'type' => 'string', ], 'Created' => [ 'type' => 'string', ], 'Id' => [ 'type' => 'integer', 'format' => 'int64', ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'ListRuleActions' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RuleId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'RuleActionList' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'RuleActionInfo' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Type' => [ 'type' => 'string', ], 'Configuration' => [ 'type' => 'string', ], 'Id' => [ 'type' => 'integer', 'format' => 'int64', ], 'RuleId' => [ 'type' => 'integer', 'format' => 'int64', ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'Pub' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'Qos', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'enum' => [ '0', '1', ], ], ], [ 'name' => 'TopicFullName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'MessageContent', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'MessageId' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'PubBroadcast' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'TopicFullName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'MessageContent', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'MessageId' => [ 'type' => 'integer', 'format' => 'int64', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'QueryApplyStatus' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ApplyId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, 'maximum' => '9999999999', 'minimum' => '0', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Finish' => [ 'type' => 'boolean', ], 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'QueryDevice' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'PageSize', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '10', ], ], [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'CurrentPage', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '1', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'Code' => [ 'type' => 'string', ], 'PageSize' => [ 'type' => 'integer', 'format' => 'int32', ], 'PageCount' => [ 'type' => 'integer', 'format' => 'int32', ], 'Total' => [ 'type' => 'integer', 'format' => 'int32', ], 'Page' => [ 'type' => 'integer', 'format' => 'int32', ], 'Data' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'DeviceInfo' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'ProductKey' => [ 'type' => 'string', ], 'DeviceName' => [ 'type' => 'string', ], 'DeviceId' => [ 'type' => 'string', ], 'DeviceType' => [ 'type' => 'string', ], 'DeviceSecret' => [ 'type' => 'string', ], 'GmtCreate' => [ 'type' => 'string', ], 'DeviceStatus' => [ 'type' => 'string', ], 'GmtModified' => [ 'type' => 'string', ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'QueryDeviceByName' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'IotInstanceId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'DeviceInfo' => [ 'type' => 'object', 'properties' => [ 'ProductKey' => [ 'type' => 'string', ], 'DeviceName' => [ 'type' => 'string', ], 'DeviceType' => [ 'type' => 'string', ], 'DeviceId' => [ 'type' => 'string', ], 'DeviceSecret' => [ 'type' => 'string', ], 'GmtCreate' => [ 'type' => 'string', ], 'ClientIp' => [ 'type' => 'string', ], 'DeviceStatus' => [ 'type' => 'string', ], 'GmtModified' => [ 'type' => 'string', ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'QueryDeviceProp' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Props' => [ 'type' => 'string', ], 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'QueryPageByApplyId' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'PageSize', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'ApplyId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], [ 'name' => 'CurrentPage', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'Code' => [ 'type' => 'string', ], 'PageSize' => [ 'type' => 'integer', 'format' => 'int32', ], 'Total' => [ 'type' => 'integer', 'format' => 'int32', ], 'PageCount' => [ 'type' => 'integer', 'format' => 'int32', ], 'Page' => [ 'type' => 'integer', 'format' => 'int32', ], 'ApplyDeviceList' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'ApplyDeviceInfo' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'DeviceName' => [ 'type' => 'string', ], 'DeviceId' => [ 'type' => 'string', ], 'DeviceSecret' => [ 'type' => 'string', ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'QueryProductTopic' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'Data' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'ProductTopicInfo' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Operation' => [ 'type' => 'string', ], 'ProductKey' => [ 'type' => 'string', ], 'TopicShortName' => [ 'type' => 'string', ], 'Id' => [ 'type' => 'string', ], 'Desc' => [ 'type' => 'string', ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'QueryTopicReverseRouteTable' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Topic', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'SrcTopics' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'Topic' => [ 'type' => 'array', 'items' => [ 'type' => 'object', ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'QueryTopicRouteTable' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Topic', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'DstTopics' => [ 'type' => 'object', 'itemNode' => true, 'properties' => [ 'Topic' => [ 'type' => 'array', 'items' => [ 'type' => 'object', ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'RRpc' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'Timeout', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => true, ], ], [ 'name' => 'RequestBase64Byte', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'Topic', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'MessageId' => [ 'type' => 'integer', 'format' => 'int64', ], 'RequestId' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'Code' => [ 'type' => 'string', ], 'PayloadBase64Byte' => [ 'type' => 'string', ], 'RrpcCode' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'RamAuth' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'systemTags' => [], 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'IotToken' => [ 'type' => 'string', ], 'ValidDuration' => [ 'type' => 'integer', 'format' => 'int64', ], 'IotId' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'RegistDevice' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'DeviceName' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], 'DeviceId' => [ 'type' => 'string', ], 'DeviceSecret' => [ 'type' => 'string', ], 'Code' => [ 'type' => 'string', ], 'DeviceStatus' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'SaveDeviceProp' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'Props', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'StartRule' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RuleId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'StopRule' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RuleId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'UpdateDeviceShadow' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'DeviceName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'ShadowMessage', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'UpdateProduct' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'ProductName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'ExtProps', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'NodeType', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'ProductDesc', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'CatId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'UpdateProductTopic' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'Desc', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Operation', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'TopicShortName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'TopicId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'UpdateRule' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'RuleId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], [ 'name' => 'Select', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'ShortTopic', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Where', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'ProductKey', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Name', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'RuleDesc', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'UpdateRuleAction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'systemTags' => [], 'parameters' => [ [ 'name' => 'ActionId', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => true, ], ], [ 'name' => 'Type', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], [ 'name' => 'Configuration', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'ErrorMessage' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], ], 'endpoints' => [ [ 'regionId' => 'cn-beijing', 'endpoint' => 'iot.cn-beijing.aliyuncs.com', ], [ 'regionId' => 'cn-shanghai', 'endpoint' => 'iot.cn-shanghai.aliyuncs.com', ], [ 'regionId' => 'cn-shenzhen', 'endpoint' => 'iot.cn-shenzhen.aliyuncs.com', ], [ 'regionId' => 'ap-northeast-1', 'endpoint' => 'iot.ap-northeast-1.aliyuncs.com', ], [ 'regionId' => 'ap-southeast-1', 'endpoint' => 'iot.ap-southeast-1.aliyuncs.com', ], [ 'regionId' => 'us-east-1', 'endpoint' => 'iot.us-east-1.aliyuncs.com', ], [ 'regionId' => 'us-west-1', 'endpoint' => 'iot.us-west-1.aliyuncs.com', ], [ 'regionId' => 'eu-central-1', 'endpoint' => 'iot.eu-central-1.aliyuncs.com', ], ], ];