All Products
Search
Document Center

Cloud Firewall:ModifyIpsRules

Last Updated:Nov 25, 2025

Modifies Intrusion Prevention System (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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

SourceIp

string

No

The source IP address of the visitor.

218.1.147.XXX

Lang

string

No

The language of the request and response.

Valid values:

  • en :

    English

  • zh :

    Chinese

zh

Lang

string

No

The language of the request and response.

Valid values:

  • en :

    English

  • zh :

    Chinese

zh

RuleType

string

Yes

The type of the rule.

Valid values:

  • patchRule :

    patchRule

  • basicRule :

    basicRule

basicRule

RuleAction

string

Yes

The action of the rule.

Valid values:

  • drop :

    drop

  • alert :

    alert

  • close :

    close

alert

Rules

string

Yes

The list of rules.

[\"4664138c-4f81-4650-9c8d-2230ea0d****\"]

FirewallType

string

No

The type of the Cloud Firewall.

Valid values:

  • VpcFirewall :

    VPC border

  • InternetFirewall :

    Internet Border

VpcFirewall

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

30FB7F84-1FC5-5A3D-BBBE-5779FC74****

Examples

Success response

JSON format

{
  "RequestId": "30FB7F84-1FC5-5A3D-BBBE-5779FC74****"
}

Error codes

HTTP status code

Error code

Error message

Description

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 ErrorParameters Parameters error. Parameter error.
400 ErrorDBInsert An error occurred while performing an insert operation in the database. An error occurred while performing an insert operation in the database.
400 ErrorRecordLog update operation log error.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.