Enables automatic protection for new assets.
Operation description
Each Cloud Firewall instance supports up to 100 associations with TLS inspection policies.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the visitor. |
60.182.79.XXX |
| Lang |
string |
No |
The language. Valid values are zh (Chinese) and en (English). The default value is zh. |
zh |
| AutoProtect |
boolean |
Yes |
Specifies whether to enable automatic traffic redirection. Valid values: truefalse |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Module |
string |
The firewall module. |
api_server |
| RequestId |
string |
The ID of the request. |
F0F82705-CFC7-5F83-86C8-A063892F**** |
Examples
Success response
JSON format
{
"Module": "api_server",
"RequestId": "F0F82705-CFC7-5F83-86C8-A063892F****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParamsNotEnough | Parameters are insufficient. | Parameters are insufficient. |
| 400 | ErrorDbFailed | Query db failed. | DB access error. |
| 400 | ErrorNoInstanceInDb | no instance for process in db. | The specified instance does not exist. |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.