GetRulesCountList
Corresponds to the frontend feature location: Quality Inspection Rule Configuration > List. Apsara Stack URL: ip:port/api/rule/GetRulesCountList.json.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sca:GetRulesCountList |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Rid |
integer |
No |
Search by rule ID. |
123 |
| RuleIdOrRuleName |
string |
No |
Search by rule ID or rule name. |
123 |
| BusinessName |
string |
No |
Business name to which the rule belongs. |
电话业务 |
| Type |
integer |
No |
Type value of the rule category to which the rule belongs. |
1 |
| TypeName |
string |
No |
Name of the rule category to which the rule belongs. |
全部类别 |
| BusinessRange |
integer |
No |
Broad business category. |
1 |
| CreateEmpid |
string |
No |
Rule creator ID. Same as CreateUserId. Use either one. |
63 |
| CreateUserId |
integer |
No |
Rule creator ID. Same as CreateEmpid. Use either one. |
63 |
| UpdateUserId |
integer |
No |
Rule updater ID. Same as LastUpdateEmpid. Use either one. |
63 |
| LastUpdateEmpid |
string |
No |
Rule updater ID. Same as UpdateUserId. Use either one. |
63 |
| Status |
integer |
No |
Rule status: Valid values:
|
1 |
| CategoryName |
string |
No |
Category name. |
分类名称A |
| SourceType |
integer |
No |
Source type. Valid values:
|
0 |
| RuleType |
integer |
No |
Rule category. Valid values:
|
1 |
| UpdateStartTime |
string |
No |
Filter by update time (start of range). |
2022-10-07 00:00:00 |
| UpdateEndTime |
string |
No |
Filter by update time (end of range). |
2022-10-08 23:59:59 |
| SchemeId |
integer |
No |
Quality inspection scheme ID. |
123 |
| RequireInfos |
array |
No |
Required fields. |
|
|
string |
No |
Required fields. Valid values:
|
ConditionInfo |
|
| RuleScoreSingleType |
integer |
No |
Scoring type. Valid values:
|
1 |
| PageNumber |
integer |
No |
Page number of the rule list. |
1 |
| CurrentPage |
integer |
No |
Current page number. |
1 |
| PageSize |
integer |
No |
Number of entries per page. |
10 |
| CountTotal |
boolean |
No |
Whether to count the total number. |
true |
| StartTime |
string |
No |
Filter by creation time (end of range). |
2022-10-07 00:00:00 |
| EndTime |
string |
No |
Filter by creation time (start of range). |
2022-10-08 23:59:59 |
| BaseMeAgentId |
integer |
No |
Workspace ID. |
123456 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RulePageResult<rulecountinfo> |
||
| TotalCount |
integer |
Total number of entries. |
7 |
| BusinessType |
integer |
Business type. This field has no practical meaning and can be ignored. |
0 |
| Data |
object |
||
| Data |
array |
Response results. |
|
|
string |
Response results. See additional notes. |
废弃字段 |
|
| Count |
integer |
Total number of entries. |
20 |
| CurrentPage |
integer |
Current page number. |
1 |
| PageSize |
integer |
Number of rows per page. |
10 |
| PageNumber |
integer |
Current page. |
1 |
| RequestId |
string |
Request ID. |
9987D326-83D9-4A42-B9A5-0B27F9B40539 |
| Success |
boolean |
Indicates whether the request succeeded. Use this field to determine request success: true means success; false or null means failure. |
true |
| Code |
string |
Result code. 200 indicates success. Any other value indicates failure. Use this field to identify the cause of failure. |
200 |
| Message |
string |
Error details if the request failed. Returns "successful" on success. |
successful |
| Messages |
object |
||
| Message |
array |
Error details if the request failed. Used when multiple messages are returned. |
|
|
string |
Error details if the request failed. Used when multiple messages are returned. |
无 |
|
| HttpStatusCode |
integer |
HTTP status code. |
200 |
Examples
Success response
JSON format
{
"TotalCount": 7,
"BusinessType": 0,
"Data": {
"Data": [
"废弃字段"
]
},
"Count": 20,
"CurrentPage": 1,
"PageSize": 10,
"PageNumber": 1,
"RequestId": "9987D326-83D9-4A42-B9A5-0B27F9B40539",
"Success": true,
"Code": "200",
"Message": "successful",
"Messages": {
"Message": [
"无"
]
},
"HttpStatusCode": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.