SetAutoProtectNewAssets
Enables automatic protection for newly added assets.
Operation description
Each Cloud Firewall instance supports up to 100 associations for TLS inspection policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:SetAutoProtectNewAssets |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language type. Valid values:
|
zh |
| AutoProtect |
boolean |
Yes |
Specifies whether to enable automatic traffic redirection. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The return value. |
||
| 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.