GetRulesCountList

Updated at:

Corresponds to the frontend feature location: Quality Inspection Rule Configuration > List. Apsara Stack URL: ip:port/api/rule/GetRulesCountList.json.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • 0 :

    Pending

  • 1 :

    Active

  • 2 :

    Expired

  • 3 :

    All

1

CategoryName

string

No

Category name.

分类名称A

SourceType

integer

No

Source type.

Valid values:

  • 0 :

    Default

  • 1 :

    ACC

0

RuleType

integer

No

Rule category.

Valid values:

  • 0 :

    Predefined

  • 1 :

    Custom-created

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 :

    Condition information

  • ScoreInfo :

    Score information: for V3

  • OperatorInfo :

    Operator information

  • SchemeNames :

    Whether to include referenced quality inspection scheme names

  • TransUserName :

    Whether to convert creator/updater IDs to names

  • BusinessNameInfo :

    Applicable business information

  • GraphFlowInfo :

    Flow information

  • RuleCategory :

    Category information

ConditionInfo

RuleScoreSingleType

integer

No

Scoring type.

Valid values:

  • 1 :

    Deduction item

  • 2 :

    Bonus item

  • 4 :

    One-time score

  • 8 :

    No scoring set

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.