Updated on 2023-06-25 GMT+08:00

AddOrUpdateRule

Table 1 Parameters

Parameter

Type

Mandatory

Description

ruleType

String

No

List type. Value: WHITE (whitelist) or BLACK (blacklist).

attribute

String

No

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

String

No

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

description

String

No

Description of a rule.

The value contains a maximum of 256 characters.