Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
16 KiB
Querying the Reference Table List
Function
This API is used to query the reference table list. A reference table can be referenced by CC attack protection rules and precise protection rules. For details about how to use reference tables, see "Adding a Reference Table" under "Rule Configurations" in Web Application Firewall User Guide.
URI
GET /v1/{project_id}/waf/valuelist
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
page |
No |
Integer |
Page |
pagesize |
No |
Integer |
Number of records on each page. The maximum value is 2147483647. |
name |
No |
String |
Reference table name, Fuzzy search is supported. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token |
Content-Type |
No |
String |
Content type. Default: application/json;charset=utf8 |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Number of reference tables Minimum: 0 Maximum: 500 |
items |
Array of ValueList objects |
Reference table list Array Length: 0 - 10 |
Parameter |
Type |
Description |
---|---|---|
id |
String |
ID of a reference table |
name |
String |
Reference table name |
type |
String |
The value can be:
|
timestamp |
String |
Reference table timestamp |
values |
Array of strings |
The contents of condition matching of the rules, such as CC Attack Protection Rule or Precise Protection Rule. |
producer |
Integer |
This parameter is reserved and can be ignored currently. Enumeration values:
|
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error message |
Example Requests
GET https://{Endpoint}/v1/{project_id}/waf/valuelist?
Example Responses
Status code: 200
Request succeeded.
{ "total" : 1, "items" : [ { "id" : "3978ca9403844a62bbd24bb5b8d16d4e", "name" : "demo", "type" : "url", "values" : [ "/demo" ], "timestamp" : 1656495488880, "description" : "", "producer" : 1 } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
400 |
Request failed. |
401 |
The token does not have required permissions. |
500 |
Internal server error. |
Error Codes
See Error Codes.