获取拦截规则列表

请求方法/请求路径

GET /ms/openapi/api/apigw/v3/projects/{projectId}/quality/rules/list

资源描述

获取拦截规则列表

输入参数说明

Query参数

参数名称参数类型必须参数说明默认值

page

integer

页目

1

pageSize

integer

每页数目

20

Path参数

参数名称参数类型必须参数说明默认值

projectId

string

项目ID

响应

请求样例

curl -X GET '[请替换为API地址栏请求地址]?page={page}&pageSize={pageSize}' \
-H 'X-DEVOPS-UID:xxx'

HEADER样例

accept: application/json
Content-Type: application/json
X-DEVOPS-UID:xxx

返回样例-200

{
  "data" : {
    "records" : [ {
      "pipelineCount" : 0,
      "pipelineExecuteCount" : 0,
      "indicatorList" : [ {
        "cnName" : "String",
        "name" : "String",
        "threshold" : "String",
        "hashId" : "String",
        "operation" : "String"
      } ],
      "enable" : true,
      "permissions" : {
        "canEnable" : true,
        "canEdit" : true,
        "canDelete" : true
      },
      "name" : "String",
      "range" : "ENUM",
      "rangeSummary" : [ {
        "lackElements" : "string",
        "name" : "String",
        "id" : "String",
        "type" : "String"
      } ],
      "interceptTimes" : 0,
      "ruleHashId" : "String",
      "controlPoint" : {
        "cnName" : "String",
        "name" : "String",
        "hashId" : "String"
      },
      "gatewayId" : "String"
    } ],
    "count" : 0,
    "totalPages" : 0,
    "pageSize" : 0,
    "page" : 0
  },
  "message" : "String",
  "status" : 0
}

数据返回包装模型分页数据包装模型质量红线-规则简要信息v2

参数名称参数类型必须参数说明

data

数据

message

string

错误信息

status

integer

状态码

分页数据包装模型质量红线-规则简要信息v2

参数名称参数类型必须参数说明

records

数据

count

integer

总记录行数

totalPages

integer

总共多少页

pageSize

integer

每页多少条

page

integer

第几页

质量红线-规则简要信息v2

参数名称参数类型必须参数说明

pipelineCount

integer

流水线个数

pipelineExecuteCount

integer

生效流水线执次数

indicatorList

指标列表

enable

boolean

是否启用

permissions

规则权限

name

string

规则名称

range

ENUM(ANY, PART_BY_TAG, PART_BY_NAME, )

生效范围

rangeSummary

包含模板和流水线的生效范围(新)

interceptTimes

integer

拦截次数

ruleHashId

string

规则HashId

controlPoint

控制点

gatewayId

string

红线ID

RuleSummaryIndicator

参数名称参数类型必须参数说明

cnName

string

cnName

name

string

name

threshold

string

threshold

hashId

string

hashId

operation

string

operation

质量红线-规则权限

参数名称参数类型必须参数说明

canEnable

boolean

是否可停用/启用

canEdit

boolean

是否可编辑

canDelete

boolean

是否可删除

RuleRangeSummary

参数名称参数类型必须参数说明

lackElements

List

lackElements

name

string

name

id

string

id

type

string

type

RuleSummaryControlPoint

参数名称参数类型必须参数说明

cnName

string

cnName

name

string

name

hashId

string

hashId

最后更新于