All Products
Search
Document Center

Cloud Firewall:ModifyIpsRulesToDefault

Last Updated:Dec 30, 2025

Resets Intrusion Prevention System (IPS) rules to the default settings.

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.

140.205.118.XXX

Lang

string

No

The language of the content. Valid values:

  • zh (default): Chinese.

  • en: English.

zh

Lang

string

No

The language of the content. Valid values:

  • zh (default): Chinese.

  • en: English.

zh

RuleType

string

Yes

The type of the rule. Valid values:

  • basicRule

  • customize

customize

Rules

string

No

The list of rules.

[ "uuid_1", "uuid_2" ]

AttackApp

string

No

The application that is affected by the attack.

PHP

FirewallType

string

No

The type of the Cloud Firewall. Valid values:

  • VpcFirewall: VPC firewall.

  • InternetFirewall (default): Internet firewall.

InternetFirewall

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

B713361D-62E2-5FF0-9D29-BBFAAF40****

Examples

Success response

JSON format

{
  "RequestId": "B713361D-62E2-5FF0-9D29-BBFAAF40****"
}

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.