Updated on 2023-07-19 GMT+08:00

AddOrUpdateRule

Table 1 Parameters

Parameter

Mandatory

Type

Description

ruleType

No

String

Type.

  • WHITE
  • BLACK

attribute

No

String

If the value starts with tag_xxx, the attributes are filtered by Tag.

Otherwise, the attributes are filtered by ServiceId, AppId, ServiceName, Version, Description, Level, or Status.

pattern

No

String

Matching rule. The value is a regular expression containing 1 to 64 characters.

description

No

String

Description of a rule.

The value can contain up to 256 characters.