获取拦截规则列表
Request method/request path
GET /ms/openapi/api/apigw/v3/projects/{projectId}/quality/rules/list
Resource description
Gets a list of intercept rules
Input parameter description
Query parameter
Parameter name | Parameter type | must | Parameter description | Default value |
---|---|---|---|---|
page | integer | no | Page entry | 1 |
pageSize | integer | no | Number per page | 20 |
Path parameter
Parameter name | Parameter type | must | Parameter description | Default value |
---|---|---|---|---|
projectId | string | is | Item ID |
response
HTTP code | description | Parameter type |
---|---|---|
200 | successful operation |
Request sample
HEADER example
Return example -200
Data Return Packaging Model Page Data Packaging Model Quality Red Line - Rule Brief Information v2
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
data | no | data | |
message | string | no | Error message |
status | integer | is | Status code |
Paging Data Wrapper Model Quality Red Line - Rule Brief v2
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
records | is | data | |
count | integer | is | Total number of record lines |
totalPages | integer | is | How many pages in total? |
pageSize | integer | is | How many pieces per page |
page | integer | is | What page |
Quality Red Line - Rule Brief v2
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
pipelineCount | integer | is | Number of pipeline |
pipelineExecuteCount | integer | is | Number of pipeline executions in effect |
indicatorList | List<RuleSummaryIndicator> | is | Index list |
enable | boolean | is | Enable or not |
permissions | is | Rule authority | |
name | string | is | Rule name |
range | ENUM(ANY, PART_BY_TAG, PART_BY_NAME, ) | is | Effective scope |
rangeSummary | List<RuleRangeSummary> | is | Includes templates and pipelining effective scope (new) |
interceptTimes | integer | is | Number of interceptions |
ruleHashId | string | is | Rule HashId |
controlPoint | is | Control point | |
gatewayId | string | is | Red line ID |
RuleSummaryIndicator
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
cnName | string | no | cnName |
name | string | no | name |
threshold | string | no | threshold |
hashId | string | no | hashId |
operation | string | no | operation |
Quality Red Line - Rule authority
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
canEnable | boolean | is | Whether it can be disabled/enabled |
canEdit | boolean | is | Editable or not |
canDelete | boolean | is | Whether it can be deleted |
RuleRangeSummary
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
lackElements | List | no | lackElements |
name | string | no | name |
id | string | no | id |
type | string | no | type |
RuleSummaryControlPoint
Parameter name | Parameter type | must | Parameter description |
---|---|---|---|
cnName | string | no | cnName |
name | string | no | name |
hashId | string | no | hashId |
Last updated