PutEnableAllFwSwitch - 开启所有防火墙开关

开启所有防火墙开关。

接口说明

本接口用于防护您阿里云账号的所有公网 IP。

QPS 限制

本接口的单用户 QPS 限制为 10 次/秒。超过限制,API 调用会被限流,这可能会影响您的业务,请合理调用。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

SourceIp deprecated

string

访问者源 IP 地址。

192.0.XX.XX

Lang

string

请求和接收消息的语言类型。取值:

  • zh(默认):中文

  • en:英文

zh

InstanceId

string

云防火墙的 ID。

i-2ze8v2x5kd9qyvp2****

调用 API 时,除了本文中该 API 的请求参数,还需加入阿里云 API 公共请求参数。公共请求参数的详细介绍,请参见公共参数。 调用 API 的请求格式,请参见本文示例中的请求示例。

返回参数

名称

类型

描述

示例值

object

RequestId

string

本次请求的 ID。

B2841452-CB8D-4F7D-B247-38E1CF7334F8

示例

正常返回示例

JSON格式

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

错误码

HTTP status code

错误码

错误信息

描述

400 ErrorParamsNotEnough Parameters are insufficient. 参数不足
400 ErrorInstanceStatusNotNormal This operation is not supported when the instance is in the current state. 实例状态不允许当前操作
400 ErrorInstanceOpenIpNumExceed The maximum number of protected assets has been reached. 防护资产的个数达到上限
400 ErrorRecordLog An error occurred while updating the operation log. 写日志失败
400 ErrorDbFailed Query db failed. DB访问错误。
400 ErrorInstanceOpenIpRegionNumExceed open ip region num exceed. 您的区域防护配额不足。
400 ErrorGeneralInstanceSpecFull Cloud Firewall instance specifications are full. 云防火墙实例规格已满。
400 ErrorBandwidthPenalty Cloud Firewall bandwidth is being overused. 云防火墙带宽超量使用处置中。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情