Interface description
Query rule device association
Request Example
https://v7.cmsv8.com/StandardApiAction_loadDevRuleByRuleId.action?jsession=66d754dd7f41473dbd2&ruleId=671¤tPage=1&pageRecords=10
Request parameters
| Parameter name |
Parameter type |
Is required |
Example |
Description |
| jsession |
string |
Yes |
66d754dd7f41473dbd2 |
Session number |
| ruleId |
number |
Yes |
671 |
Rule id |
| currentPage |
number |
No |
1 |
If the current query page number is empty, it will not page |
| pageRecords |
number |
No |
10 |
If the number of pages per page is empty, there will be no paging |
Return parameters
| Parameter Name | parameter Type | meaning of parameters |
|---|
| result | number | interface status code, 0 is normal, and other information is abnormal. For more information, see [Error Code Description](/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1&lang=en "Error Code Description"). |
| pagination | object | |
| currentPage | number | current Query Page Number |
| totalPages | number | total number of pages of query data |
| pageRecords | number | number of entries per page |
| totalRecords | number | total number of query data |
| startRecord | number | |
| endRecord | number | |
| nextPage | number | |
| previousPage | number | |
| hasNextPage | boolean | |
| hasPreviousPage | boolean | |
| primaryKey | string | |
| sortParams | string | |
| pagin | string | |
| rp | string | |
| query | string | |
| qtype | string | |
| directQuery | boolean | |
| page | boolean | |
| infos | array | |
| id | number | the ID of the rule device association relationship (it is recommended to execute- query the rule device association relationship- get the corresponding ID first). Use commas to separate multiple IDs. |
| devIdno | string | equipment No. |
| ruleId | number | rule id |
Return Example
{
"result": 0,
"pagination": {
"currentPage": 1,
"totalPages": 1,
"pageRecords": 10,
"totalRecords": 4,
"startRecord": 0,
"endRecord": 0,
"nextPage": 1,
"previousPage": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"primaryKey": "id",
"sortParams": null,
"pagin": null,
"rp": null,
"query": null,
"qtype": null,
"page": false,
"directQuery": false
},
"infos": [
{
"id": 21512,
"devIdno": "013300000001",
"ruleId": 671
}
]
}