waf api-learning-rule
Use this command to specify the domains to be protected by the ML based API protection model, and the API paths to be learned by the model.
To use this command, your administrator account’s access control profile must have either w
or rw
permission to the wafgrp
area. For details, see Permissions.
Syntax
config waf api-learning-rule
edit <api-protection-rule_ID>
set domain-name <index>
config api-path-list
edit api-path-list <id>
set api-path-type {plain | regular}
set api-path <string>
next
end
next
end
Variable |
Description | Default |
---|---|---|
|
Specify the API protection policy ID. |
|
domain-name <string>
|
Enter the name of the domain to be protected. |
No default
|
api-path-list <index>
|
Enter the API path list ID. The system by default learns API requests to all the URL paths of the domain. If you want to restrict the learning to certain API paths, specify the API paths that you want to system to learn. |
No default
|
api-path-type {plain | regular}
|
Specify whether the API pattern must contain a literal URL ( |
plain
|
api-path <string>
|
|
No default
|