创建拦截规则

Request method/request path

POST /ms/openapi/api/apigw/v3/projects/{projectId}/quality/rules/create

Resource description

Create an interception rule

Input parameter description

Body parameter

Parameter nameParameter typemustParameter descriptionDefault value

body

is

Rule content

Path parameter

Parameter nameParameter typemustParameter descriptionDefault value

projectId

string

is

Item ID

response

HTTP codedescriptionParameter type

200

successful operation

Request sample

curl -X POST '[Please replace API address bar request address]' 

HEADER example

accept: application/json Content-Type: application/json 

Return example -200

{  "data" : "String",  "message" : "String",  "status" : 0 } 

Rule creation request

Parameter nameParameter typemustParameter description

templateRange

List

is

Set of pipelined template ids in effect

auditUserList

List

no

Audit notification personnel

range

List

is

Set of pipeline ids in effect

auditTimeoutMinutes

integer

no

Audit timeout

notifyTypeList

List

no

Notification type

notifyUserList

List

no

Notifier list

controlPointPosition

string

is

Control point position

name

string

is

Rule name

notifyGroupList

List

no

Notification group list

operation

ENUM(END, AUDIT, )

is

Type of operation

indicatorIds

is

Index type

controlPoint

string

is

Control point

gatewayId

string

no

The red line matches the id

desc

string

is

Rule description

CreateRequestIndicator

Parameter nameParameter typemustParameter description

threshold

string

no

threshold

hashId

string

no

hashId

operation

string

no

operation

The data is returned to the wrapper model String

Parameter nameParameter typemustParameter description

data

string

no

data

message

string

no

Error message

status

integer

is

Status code

Last updated