ListQualityCheckScheme

Updated at:

Retrieves a list of quality check schemes.

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:ListQualityCheckScheme

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

JsonStr

string

Yes

The complete JSON string. For details, see the following information.

{ "name": "Quality Check Scheme A" }

BaseMeAgentId

integer

No

The workspace ID.

123456

PropertyTypeRequiredDescriptionDefault valueExample
schemeIdLongNoThe ID of the quality check scheme.123
nameStringNoThe name of the quality check scheme.Quality Check Scheme A
typeIntegerNoThe type of the quality check scheme. Valid values: 0: built-in; 1: custom.1
dataTypeIntegerNoThe data type of the quality check scheme. Valid values: 0: text; 1: audio.1
statusIntegerNoThe status. Valid values: 0: deleted; 1: published; 2: unpublished; 3: updated and unpublished.1
requireInfosListNoSpecifies the fields of the quality check scheme to return. RuleDetailInfo: corresponds to the ruleList field. CheckTypeListInfo: corresponds to the schemeCheckTypeList field.["CheckTypeListInfo","RuleDetailInfo"]{"jsonStr": "{"pageNumber": 1, "pageSize": 1, "requireInfos": ["CheckTypeListInfo"]}"}
pageNumberIntegerNoThe current page number.11
pageSizeIntegerNoThe number of entries per page.1010

Response elements

Element

Type

Description

Example

object

The response data.

RequestId

string

The request ID.

82C91484-B2D5-4D2A-A21F-A6D73F4***

Success

boolean

Indicates whether the request is successful. true indicates that the request is successful. false or null indicates that the request fails.

true

ResultCountId

string

An internal field. Ignore this field.

Deprecated field

Code

string

The result code. A value of 200 indicates success. Other values indicate failure. You can use this field to determine the cause of the failure.

200

Message

string

The error message returned when an error occurs. The value is successful when the request is successful.

successful

PageNumber

integer

The current page number.

1

PageSize

integer

The number of entries per page.

10

Count

integer

The total number of entries.

22

Data

array<object>

The data of the quality check scheme list.

array<object>

The details of the quality check scheme.

SchemeId

integer

The ID of the quality check scheme.

112**

Name

string

The name of the quality check scheme.

test

Description

string

The description.

Pre-sales use

DataType

integer

The data type of the quality check scheme. Valid values: 0: text; 1: audio.

1

Type

integer

The type of the quality check scheme. Valid values: 0: built-in; 1: custom.

1

TemplateType

integer

The type of the quality check scheme template. Valid values: 1: built-in; 2: custom.

1

Status

integer

The status of the quality check scheme. Valid values: 0: deleted; 1: published; 2: unpublished; 3: updated and unpublished.

1

CreateUserName

string

The name of the creator.

Zhang San

CreateTime

string

The creation time.

2022-05-10T09:34Z

UpdateUserName

string

The name of the updater.

Li Si

UpdateTime

string

The update time.

2022-05-10T10:34Z

SchemeCheckTypeList

array<object>

The list of quality check dimensions.

object

The quality check dimension.

CheckType

integer

The type of the quality check dimension.

1

Enable

integer

The enable status. Valid values: 0: disabled; 1: enabled.

1

CheckName

string

The name of the quality check dimension.

Service compliance check

TargetType

integer

An internal field. Ignore this field.

10

Score

integer

The score of the quality check dimension.

20

RuleList

array<object>

The list of check items.

array<object>

The information about rule hits.

Rules

array<object>

The rule information. Only one rule is included here and reserved for future extensions.

object

The basic information about the rule.

Rid

integer

The ID of the check item.

12

Name

string

The name of the check item.

Test rule

RuleScoreType

integer

Specifies whether the score is calculated. Valid values: 1: not calculated; 3: calculated.

1

ScoreNum

integer

The score.

2

ScoreType

integer

The score adjustment type. Valid values: 1: add points; 3: deduct points.

1

CheckType

integer

The quality check dimension to which the rule belongs.

1

TargetType

integer

The common scenarios of the check item. Valid values: 10: common check item. 11: SOP flow check item.

10

ScoreNumType

integer

The scoring type. Valid values: 0: add or deduct points after the rule is triggered; 1: award a one-time score after the rule is triggered.

0

Version

integer

The version of the quality check scheme.

1

Examples

Success response

JSON format

{
  "RequestId": "82C91484-B2D5-4D2A-A21F-A6D73F4***\t",
  "Success": true,
  "ResultCountId": "废弃字段",
  "Code": "200",
  "Message": "successful",
  "PageNumber": 1,
  "PageSize": 10,
  "Count": 22,
  "Data": [
    {
      "SchemeId": 0,
      "Name": "test",
      "Description": "售前使用",
      "DataType": 1,
      "Type": 1,
      "TemplateType": 1,
      "Status": 1,
      "CreateUserName": "张三",
      "CreateTime": "2022-05-10T09:34Z",
      "UpdateUserName": "李四",
      "UpdateTime": "2022-05-10T10:34Z",
      "SchemeCheckTypeList": [
        {
          "CheckType": 1,
          "Enable": 1,
          "CheckName": "服务规范性检测",
          "TargetType": 10,
          "Score": 20
        }
      ],
      "RuleList": [
        {
          "Rules": [
            {
              "Rid": 12,
              "Name": "测试规则",
              "RuleScoreType": 1,
              "ScoreNum": 2,
              "ScoreType": 1,
              "CheckType": 1,
              "TargetType": 10,
              "ScoreNumType": 0
            }
          ]
        }
      ],
      "Version": 1
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.