ListRulesV4
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:ListRulesV4 |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Rid |
integer |
No |
The rule ID to search for. |
895EAD5312634F5AA708E3B3FA79662E |
| RuleIdOrRuleName |
string |
No |
The rule ID or rule name to search for. |
xx |
| BusinessName |
string |
No |
The name of the business to which the rule belongs. |
All businesses |
| Type |
integer |
No |
The type value of the rule type to which the rule belongs. |
1 |
| TypeName |
string |
No |
The name of the rule type to which the rule belongs. |
All types |
| BusinessRange |
integer |
No |
The major business category. |
None |
| CreateEmpid |
string |
No |
The ID of the rule creator. This parameter is equivalent to CreateUserId. Specify only one of them. |
1 |
| CreateUserId |
integer |
No |
The ID of the rule creator. This parameter is equivalent to CreateEmpid. Specify only one of them. |
1 |
| UpdateUserId |
integer |
No |
The ID of the rule updater. This parameter is equivalent to LastUpdateEmpid. Specify only one of them. |
1 |
| LastUpdateEmpid |
string |
No |
The ID of the rule updater. This parameter is equivalent to UpdateUserId. Specify only one of them. |
1 |
| Status |
integer |
No |
The rule status. |
2 |
| CategoryName |
string |
No |
The category name. |
Category name A |
| SourceType |
integer |
No |
The source type. |
0 |
| RuleType |
integer |
No |
The rule category. |
1 |
| UpdateStartTime |
string |
No |
The start time for filtering by update time. |
2021-11-29 16:11:09 |
| UpdateEndTime |
string |
No |
The end time for filtering by update time. |
2021-11-29 18:11:09 |
| SchemeId |
integer |
No |
The ID of the quality inspection plan. |
1000000090 |
| RequireInfos |
array |
No |
The required fields. |
|
|
string |
No |
The required fields. |
xx |
|
| RuleScoreSingleType |
integer |
No |
The scoring type. |
1 |
| PageNumber |
integer |
No |
The current page number. |
1 |
| CurrentPage |
integer |
No |
The current page number. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. |
10 |
| CountTotal |
boolean |
No |
Specifies whether to count the total number of entries. |
false |
| StartTime |
string |
No |
The start time for filtering by creation time. |
2021-11-29 18:11:09 |
| EndTime |
string |
No |
The end time for filtering by creation time. |
2021-11-29 19:11:09 |
| BaseMeAgentId |
integer |
No |
The ID of the business workspace. |
123456 |
| TargetType |
string |
No |
The rule type. |
21 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RulePageResult |
||
| TotalCount |
integer |
The total number of data entries. |
219 |
| BusinessType |
integer |
The business type. This parameter has no practical meaning and can be ignored. |
None |
| Data |
array |
The returned results. |
|
| RuleCountInfo |
The rule information. |
||
| Count |
integer |
The total number of entries. |
219 |
| CurrentPage |
integer |
The current page number. |
10 |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The current page number. |
1 |
| RequestId |
string |
The request ID. |
96138D8D-8D26-4E41-BFF4-77AED1088BBD |
| Success |
boolean |
Indicates whether the request is successful. You can determine whether the request is successful based on this parameter. A value of true indicates success. A value of false or null indicates failure. |
true |
| Code |
string |
The result code. A value of 200 indicates success. Any other value indicates failure. You can determine the cause of the failure based on this parameter. |
200 |
| Message |
string |
The error details when an error occurs, or successful when the request is successful. |
successful |
| Messages |
array |
The error details when an error occurs. This parameter is used when multiple messages are returned. |
|
|
string |
The error details when an error occurs. This parameter is used when multiple messages are returned. |
None |
|
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"TotalCount": 219,
"BusinessType": 0,
"Data": [
{
"Rid": 123,
"Name": "0801转封装测试",
"Type": 1,
"Status": 1,
"CheckNumber": 1,
"HitNumber": 1,
"HitRate": 1,
"ReviewAccuracyRate": 1,
"ReviewRate": 1,
"PreReviewNumber": 1,
"ReviewNumber": 1,
"UnReviewNumber": 1,
"ProblemNumber": 1,
"StartTime": "1662685868850",
"EndTime": "1650092585176",
"CreateTime": "1615133575000",
"CreateEmpid": "1",
"CreateEmpName": "张三",
"LastUpdateEmpid": "1",
"LastUpdateEmpName": "张三",
"LastUpdateTime": "1648200901000",
"BusinessRange": [
1
],
"BusinessCategoryBasicInfoList": [
{
"Bid": 1,
"ServiceType": 1,
"Name": "全部",
"OriginalId": 1
}
],
"BusinessCategoryNameList": [
"全部业务"
],
"IsDelete": 1,
"TypeName": "全部类别",
"JobName": "job-1-20221012-105943",
"Comments": "测试",
"RealViolationNumber": 1,
"HitRealViolationRate": 1,
"ReviewStatusName": "通过",
"Deny": 1,
"ScoreSubId": 1,
"AutoReview": 1,
"RuleScoreType": 1,
"UserGroup": "xxxx",
"OperationMode": 1,
"IsSelect": true,
"RuleType": 1,
"Effective": 1,
"FullCycle": 1,
"EffectiveStartTime": "1662685868850",
"EffectiveEndTime": "1662685868850",
"QualityCheckType": 1,
"GraphFlow": "较复杂,忽略",
"RuleScoreSingleType": 1,
"TargetType": 10
}
],
"Count": 219,
"CurrentPage": 10,
"PageSize": 10,
"PageNumber": 1,
"RequestId": "96138D8D-8D26-4E41-BFF4-77AED1088BBD",
"Success": true,
"Code": "200",
"Message": "successful",
"Messages": [
"无"
],
"HttpStatusCode": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.