Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
45 KiB
Obtaining Package Information
Function Description
This API is used to obtain package information of a user.
URI
Request
Request parameters
None
Response
Parameter |
Type |
Description |
|---|---|---|
type |
Integer |
Specifies version information. |
name |
String |
Specifies the package name. |
options |
Specifies the protection switches. |
|
rule |
Specifies the maximum number of rules in a policy. |
|
host |
Specifies the maximum number of domain names in a policy. |
|
other |
Specifies other restrictions in the package. |
Parameter |
Type |
Description |
|---|---|---|
webattack |
Boolean |
Specifies whether Basic Web Protection is enabled.
|
common |
Boolean |
Specifies whether General Check in Basic Web Protection is enabled.
|
crawler |
Boolean |
Specifies whether the master crawler detection switch in Basic Web Protection is enabled.
NOTE:
If crawler is false, all the subswitches, crawler_engine, crawler_scanner, crawler_script, and crawler_other are invalid. |
crawler_engine |
Boolean |
Specifies whether the Search Engine switch in Basic Web Protection is enabled.
|
crawler_scanner |
Boolean |
Specifies whether the Scanner switch in Basic Web Protection is enabled.
|
crawler_script |
Boolean |
Specifies whether the Script Tool switch in Basic Web Protection is enabled.
|
crawler_other |
Boolean |
Specifies whether detection of other crawlers in Basic Web Protection is enabled.
|
webshell |
Boolean |
Specifies whether webshell detection is enabled.
|
cc |
Boolean |
Specifies whether CC Attack Protection is enabled.
|
custom |
Boolean |
Specifies whether Precise Protection is enabled.
|
whiteblackip |
Boolean |
Specifies whether Blacklist and Whitelist is enabled.
|
privacy |
Boolean |
Specifies whether Data Masking is enabled.
|
Ignore |
Boolean |
Specifies whether False Alarm Masking is enabled.
|
antitamper |
Boolean |
Specifies whether Web Tamper Protection is enabled.
|
full_detection |
Boolean |
Specifies whether the full detection mode in Precise Protection is enabled.
|
log_download |
Boolean |
Specifies whether log download is available.
|
Parameter |
Type |
Description |
|---|---|---|
antitamper |
Integer |
Specifies the total number of web tamper protection rules. The maximum value is 100. |
cc |
Integer |
Specifies the total number of CC attack protection rules. The maximum value is 100. |
custom |
Integer |
Specifies the total number of precise protection rules. The maximum value is 100. |
ignore |
Integer |
Specifies the total number of false alarm masking rules. The maximum value is 1000. |
privacy |
Integer |
Specifies the total number of data masking rules. The maximum value is 1000. |
whiteblackip |
Integer |
Specifies the total number of blacklist and whitelist rules. The maximum value is 100. |
Parameter |
Type |
Description |
|---|---|---|
wildcard |
Boolean |
Specifies whether a wildcard domain is supported.
|
ports |
Specifies the range of ports supported. |
|
protocol |
Specifies the client protocol. |
|
server |
Integer |
Specifies the number of backend servers supported. The maximum value is 30. |
host |
Integer |
Specifies the number of subdomain names supported. The maximum value is 100. |
domain |
Integer |
Specifies the number of domain names supported. The maximum value is 100. |
cert_num |
Integer |
Specifies the number of certificates supported. The maximum value is 100. |
policy_apply_to |
Boolean |
Specifies whether a policy can be applied to multiple domain names.
|
policy_num |
Integer |
Specifies the number of policies supported. The maximum value is 5000. |
Parameter |
Type |
Description |
|---|---|---|
default_cc |
Integer |
Specifies the maximum number of requests from a web visitor in a default CC attack protection policy. |
Parameter |
Type |
Description |
|---|---|---|
http |
Array |
Specifies the list of HTTP ports supported. |
https |
Array |
Specifies the list of HTTPS ports supported. |
max_num |
Integer |
Specifies the number of ports supported. |
none_standard |
Boolean |
Specifies whether non-standard ports are supported.
|
Parameter |
Type |
Description |
|---|---|---|
http |
Boolean |
Specifies whether the HTTP protocol is supported.
|
https |
Boolean |
Specifies whether the HTTPS protocol is supported.
|
http_https |
Boolean |
Specifies whether the HTTP and HTTPS protocols are supported.
|
Example
{
"type": 1,
"name": "Basic",
"options": {
"webattack": true,
"common": true,
"crawler": true,
"webshell": false,
"cc": false,
"custom": false,
"whiteblackip": true,
"privacy": true,
"ignore": true,
"antitamper": false,
"log_download": true,
},
"rule": {
"cc": 0,
"custom": 0,
"whiteblackip": 10,
"privacy": 10,
"ignore": 1000,
"antitamper": 0,
},
"host": {
"wildcard": false,
"protocol": {
"http": true,
"https": false,
"http_https": false
},
"ports": {
"none_standard": false,
"http": [],
"https": [],
"max_num": 0
},
"domain": 1,
"host": 10,
"server": 10,
"route": false
},
"other": {
"default_cc": 25000
}
}
Status Code
For details about error status codes, see Status Codes.
