All Products
Search
Document Center

Cloud Firewall:PutEnableAllFwSwitch

Last Updated:Nov 12, 2025

Enables all firewall switches.

Operation description

This API operation protects all public IP addresses of your Alibaba Cloud account.

QPS limits

This API operation is limited to 10 queries per second (QPS) per user. If you exceed this limit, API calls are throttled, which may affect your business. We recommend that you call this API operation at a reasonable rate.

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 deprecated

string

No

The source IP address of the visitor.

192.0.XX.XX

Lang

string

No

The language of the request and response. Valid values:

  • zh (default): Chinese

  • en: English

zh

InstanceId

string

No

The ID of the Cloud Firewall instance.

i-2ze8v2x5kd9qyvp2****

When you call this API operation, you must include the common request parameters of Alibaba Cloud APIs. For more information about common request parameters, see Common parameters. For the request format, see the request example in the Examples section.

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

B2841452-CB8D-4F7D-B247-38E1CF7334F8

Examples

Success response

JSON format

{
  "RequestId": "B2841452-CB8D-4F7D-B247-38E1CF7334F8"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorParamsNotEnough Parameters are insufficient. Parameters are insufficient.
400 ErrorInstanceStatusNotNormal This operation is not supported when the instance is in the current state. This operation is not supported when the instance is in the current state.
400 ErrorInstanceOpenIpNumExceed The maximum number of protected assets has been reached. The maximum number of protected assets has been reached.
400 ErrorRecordLog An error occurred while updating the operation log. An error occurred while updating the operation log.
400 ErrorDbFailed Query db failed. DB access error.
400 ErrorInstanceOpenIpRegionNumExceed open ip region num exceed. Your zone protection quota is insufficient.
400 ErrorGeneralInstanceSpecFull Cloud Firewall instance specifications are full. Cloud Firewall instance specifications are full.
400 ErrorBandwidthPenalty Cloud Firewall bandwidth is being overused. Cloud Firewall bandwidth is being overused.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.