Modifies the intrusion prevention configurations of a virtual private cloud (VPC) firewall.

Description

You can call the ModifyVpcFirewallDefaultIPSConfig operation to modify the intrusion prevention configurations of a VPC firewall.

Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyVpcFirewallDefaultIPSConfig

The operation that you want to perform. Set the value to ModifyVpcFirewallDefaultIPSConfig.

SourceIp String No 192.0.XX.XX

The source IP address of the request.

Lang String No zh

The language of the content within the request and response. Valid values:

  • zh: Chinese (default)
  • en: English
VpcFirewallId String Yes vfw-m5e7dbc4y****

The instance ID of the VPC firewall. Valid values:

  • If the VPC firewall protects mutual access traffic between a VPC and a specified network instance that is attached to a Cloud Enterprise Network (CEN) instance, the value of this parameter is the ID of the CEN instance. The network instance can be a VPC, a virtual border router (VBR), or a Cloud Connect Network (CCN) instance. You can call the DescribeVpcFirewallCenList operation to query the IDs of CEN instances.
  • If the VPC firewall protects mutual access traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter is the ID of the VPC firewall. You can call the DescribeVpcFirewallList operation to query the instance IDs of VPC firewalls.
BasicRules String Yes 1

Specifies whether to enable basic protection. Valid values:

  • 1: yes
  • 0: no
EnableAllPatch String Yes 1

Specifies whether to enable virtual patching. Valid values:

  • 1: yes
  • 0: no
RunMode String Yes 0

The mode of the intrusion prevention system (IPS). Valid values:

  • 1: block mode
  • 0: monitor mode
MemberUid String No 258039427902****

The UID of the member that is managed by your Alibaba Cloud account.

Response parameters

Parameter Type Example Description
RequestId String 3B51B5BF-3C26-5009-ADAB-190E58DE4D6E

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyVpcFirewallDefaultIPSConfig
&SourceIp=192.0.XX.XX
&Lang=zh
&VpcFirewallId=vfw-m5e7dbc4y****
&BasicRules=1
&EnableAllPatch=1
&RunMode=0
&MemberUid=258039427902****
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyVpcFirewallDefaultIPSConfigResponse>
    <RequestId>3B51B5BF-3C26-5009-ADAB-190E58DE4D6E</RequestId>
</ModifyVpcFirewallDefaultIPSConfigResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "3B51B5BF-3C26-5009-ADAB-190E58DE4D6E"
}