Disables the firewall switch.
Operation description
Disables the firewall switch. After the firewall switch is disabled, traffic does not pass through Cloud Firewall.
QPS limit
The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Call this operation as needed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:PutDisableFwSwitch |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
SourceIp
deprecated
|
string |
No |
The source IP address of the request. |
192.0.XX.XX |
| Lang |
string |
No |
The language type of the received message. Valid values:
|
zh |
| IpaddrList |
array |
No |
The IP address list. Note
The IpaddrList, RegionList, and ResourceTypeList parameters cannot all be empty. You must specify a value for at least one of these parameters. |
["192.0.XX.XX","192.0.XX.XX"] |
|
string |
No |
The IP address. |
192.0.XX.XX |
|
| RegionList |
array |
No |
The region list. Note
The IpaddrList, RegionList, and ResourceTypeList parameters cannot all be empty. You must specify a value for at least one of these parameters. |
["cn-hangzhou","cn-shanghai"] |
|
string |
No |
The region ID. |
cn-hangzhou |
|
| ResourceTypeList |
array |
No |
The asset type list. Valid values:
Note
The IpaddrList, RegionList, and ResourceTypeList parameters cannot all be empty. You must specify a value in Settings for at least one of these parameters. |
["EcsPublicIp","NatEip"] |
|
string |
No |
The asset type list. Valid values:
Note
The IpaddrList, RegionList, and ResourceTypeList parameters cannot all be empty. You must specify a value in Settings for at least one of these parameters. |
EcsPublicIP |
|
| MemberUid |
string |
No |
The unique identifier of the member account. |
1234 |
| IpVersion |
string |
No |
The IP version. |
4 |
| ClientToken |
string |
No |
The client token that ensures the idempotency of the request. Generated by the client, the token must be unique across different requests. The value is a case-sensitive string in the format of [0-9a-zA-Z-_]{1,64}. We recommend that you use a UUID. The server guarantees idempotency within the validity period (600 seconds): repeated requests with the same ClientToken and the same business parameters return the same result as the first request. If the same ClientToken is used with different business parameters, an HTTP 400 error with the IdempotentParameterMismatch error code is returned. |
defefedxexxxx |
| DryRun |
boolean |
No |
Specifies whether to perform only a dry run. If you set this parameter to true, the system performs pre-checks such as parameter validity, identity permissions, resource existence, quota limits, and dependency relationships without creating, updating, or deleting actual resources, triggering asynchronous traffic diversion tasks, or generating downstream side effects such as billing, notifications, or callbacks. If the dry run succeeds, DryRun=true is returned in the response, which can be distinguished from an actual call response. If the dry run fails, a machine-readable error code is returned (such as ErrorParamsInvalid for parameter errors, ErrorAuthentication for insufficient permissions, or ErrorInstanceOpenIpNumExceed for insufficient quota). Set this parameter to false (default) to initiate the request and perform the disable operation. |
true |
When you call this operation, you must include the Alibaba Cloud common request parameters in addition to the request parameters described in this topic. For more information about common parameters, see Common parameters. For the request format of this operation, see the request example in the Examples section.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B2841452-CB8D-4F7D-B247-38E1CF7334F8 |
| DryRun |
boolean |
Indicates whether only a dry run was performed. If this parameter is true, the system performed pre-checks such as parameter validity, identity permissions, resource existence, quota limits, and dependency relationships without creating, updating, or deleting actual resources, triggering asynchronous traffic diversion tasks, or generating downstream side effects such as billing, notifications, or callbacks. If the dry run succeeded, DryRun=true is returned in the response, which can be distinguished from an actual call response. If the dry run failed, a machine-readable error code is returned (such as ErrorParamsInvalid for parameter errors, ErrorAuthentication for insufficient permissions, or ErrorInstanceOpenIpNumExceed for insufficient quota). A value of false (default) indicates that the request was initiated and the enable operation was performed. |
true |
Examples
Success response
JSON format
{
"RequestId": "B2841452-CB8D-4F7D-B247-38E1CF7334F8",
"DryRun": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParamsNotEnough | Parameters are insufficient. | Parameters are insufficient. |
| 400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
| 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 | ErrorRecordLog | An error occurred while updating the operation log. | An error occurred while updating the operation log. |
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. | This request uses the same client token as the previous request, but not the same. Do not reuse client tokens in different requests unless the request is the same. |
| 400 | InvalidClientToken | ClientToken format invalid. Only ASCII letters, digits, hyphens and underscores are allowed, max 64 characters. | |
| 401 | ErrorAuthentication | An authentication error occurred. | An authentication error occurred. |
| 409 | IdempotentToken.Processing | A previous request with the same ClientToken is still being processed. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.