DescribeIPSRules
Queries IPS rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:DescribeIPSRules |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the requester. |
8.139.222.XXX |
| Lang |
string |
No |
The language of the request message. Valid values:
|
zh |
| RuleType |
string |
Yes |
The rule type. Valid values:
|
patchRule |
| PageNo |
integer |
Yes |
The current page number. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. |
10 |
| QueryModify |
string |
No |
Specifies whether the rule has been modified. |
true |
| RuleLevel |
integer |
No |
The rule level. Valid values:
|
1 |
| AttackType |
string |
No |
The attack application type. |
Web attack |
| AttackApp |
string |
No |
The attack application. |
SMB |
| RuleAction |
string |
No |
The rule action. Valid values:
|
alert |
| RuleId |
string |
No |
The rule ID. |
f835533b-01ef-49f4-b172-85bbfd0e**** |
| RuleName |
string |
No |
The rule name. |
Nmap scan detection |
| Cve |
string |
No |
The CVE ID. |
CVE-2026-25253 |
| RuleClass |
string |
No |
The supported engine mode. Valid values:
|
dropStrict |
| DefaultAction |
string |
No |
The enabled status. Valid values:
|
1 |
| Sort |
string |
No |
The sorting method. |
UpdateTime |
| Order |
string |
No |
The sorting order. Valid values:
|
desc |
| FirewallType |
string |
No |
The Cloud Firewall type. Valid values:
|
VpcFirewall |
| VpcFirewallId |
string |
No |
The instance ID of the virtual private cloud (VPC) firewalls. |
cen-rnbkqx4a8er21a**** |
| ProxyId |
string |
No |
The instance ID of the NAT firewall. This parameter is required only when FirewallType is set to NatFirewall and is mutually exclusive with VpcFirewallId. You can obtain the ID by calling the ListNatFirewallIpsConfigs operation. |
proxy-nat53f4bbc233234271a1d7 |
| AttackApps |
array |
No |
The list of attack applications. |
|
|
string |
No |
The list of attack applications. |
SSH |
|
| AttackAppCategory |
array |
No |
The list of categories of the attacked applications, in the format of ["AttackAppCategory1","AttackAppCategory2"]. |
|
|
string |
No |
The list of categories of the attacked applications, in the format of ["AttackAppCategory1","AttackAppCategory2"]. |
AI Component |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNo |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| RequestId |
string |
The ID of the request. |
6DF55258-1448-5386-B263-4771D081**** |
| TotalCount |
integer |
The total number of rules. |
20 |
| Rules |
array<object> |
The list of rules. |
|
|
object |
The list of rules. |
||
| CurrentMode |
string |
The current action. |
alert |
| UpdateTime |
integer |
The timestamp when the rule was updated. |
1775101028 |
| AttackType |
string |
The attack type. |
Abnormal connection |
| RuleLevel |
integer |
The rule level. Valid values:
|
1 |
| RuleId |
string |
The rule ID. |
f532f59d-2026-436b-8209-e04d8ebc2**** |
| RuleName |
string |
The rule name. |
Nmap scan detection |
| DefaultMode |
string |
The default action. Valid values:
|
alert |
| Description |
string |
The description of the rule. |
test |
| RuleClass |
integer |
The supported engine mode. This parameter takes effect only when DefaultMode is set to drop (Block). In other modes, this value is not applicable. Valid values:
|
1 |
| Cve |
string |
The CVE ID. |
cve-2024-38816 |
| AttackApp |
string |
The attack application. |
SMB |
| RuleUuid |
string |
The UUID of the rule. |
d401b0cb-dc64-4bbe-bba0-3e7c744**** |
| UserDefined |
string |
Specifies whether the rule is user-defined. |
1 |
| UserStatus |
integer |
The user status. |
1 |
| OpenCount |
integer |
The total number of enabled rules. |
1752 |
| HighRiskCount |
integer |
The number of high-risk rules. |
518 |
| DropCount |
integer |
The total number of block rules. |
976 |
| UserDefineCount |
integer |
The total number of rules with custom actions. |
32 |
Examples
Success response
JSON format
{
"PageNo": 1,
"PageSize": 10,
"RequestId": "6DF55258-1448-5386-B263-4771D081****",
"TotalCount": 20,
"Rules": [
{
"CurrentMode": "alert",
"UpdateTime": 1775101028,
"AttackType": "Abnormal connection",
"RuleLevel": 1,
"RuleId": "f532f59d-2026-436b-8209-e04d8ebc2****",
"RuleName": "Nmap scan detection",
"DefaultMode": "alert",
"Description": "test",
"RuleClass": 1,
"Cve": "cve-2024-38816",
"AttackApp": "SMB",
"RuleUuid": "d401b0cb-dc64-4bbe-bba0-3e7c744****",
"UserDefined": "1",
"UserStatus": 1
}
],
"OpenCount": 1752,
"HighRiskCount": 518,
"DropCount": 976,
"UserDefineCount": 32
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParameters | Parameters error. | Parameter error. |
| 400 | ErrorParametersUid | invalid aliUid. | Invalid Aliuid. |
| 400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
| 400 | ErrorMarshalJSON | internal error: marshal json. | An error occurred. Try again later. |
| 400 | ErrorNoFirewallInstance | The account has no cloud firewall instance. | |
| 400 | ErrorVpcFirewallNotFound | The specified VPC firewall does not exist. | |
| 400 | NatFirewallIpsConfig.NotSupported | The specified NAT firewall instance does not support intrusion prevention. | The specified NAT firewall instance does not support intrusion prevention. |
| 500 | NatFirewallIpsConfig.ConfigAbnormal | The intrusion prevention configuration of the specified NAT firewall instance is abnormal. | The intrusion prevention configuration of the specified NAT firewall instance is abnormal. |
| 403 | Forbidden | You are not authorized to operate on the specified resource. | You are not authorized to operate on the specified resource. |
| 404 | InvalidNatFirewallIpsConfig.NotFound | The specified NAT firewall instance does not exist. | The specified NAT firewall instance does not exist. |
| 404 | NatFirewallIpsConfig.NotInitialized | The intrusion prevention configuration of the specified NAT firewall instance is not initialized. | The intrusion prevention configuration of the specified NAT firewall instance is not initialized. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.