DescribeIPSRules

Updated at:

Queries IPS rules.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • en :

    English.

  • zh :

    Chinese.

zh

RuleType

string

Yes

The rule type.

Valid values:

  • patchRule :

    patchRule

  • basicRule :

    basicRule

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 :

    Strict.

  • 2 :

    Medium.

  • 3 :

    Loose.

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:

  • drop :

    Block.

  • alert :

    Monitor.

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:

  • alert :

    Monitor.

  • dropMiddle :

    Block - Medium.

  • dropStrict :

    Block - Strict.

  • dropLoose :

    Block - Loose/Medium/Strict.

dropStrict

DefaultAction

string

No

The enabled status.

Valid values:

  • 0 :

    Disabled.

  • 1 :

    Enabled.

1

Sort

string

No

The sorting method.

UpdateTime

Order

string

No

The sorting order.

Valid values:

  • asc :

    Ascending.

  • desc :

    Descending.

desc

FirewallType

string

No

The Cloud Firewall type.

Valid values:

  • VpcFirewall :

    VPC firewall.

  • InternetFirewall :

    The Internet firewall.

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 :

    Strict.

  • 2 :

    Medium.

  • 3 :

    Loose.

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:

  • drpo :

    Block.

  • alert :

    Monitor.

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 :

    Block - Loose/Medium/Strict.

  • 2 :

    Block - Loose/Medium.

  • 3 :

    Block - Strict.

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.