Tenant Cloud
Security
Cloud Workload Protection Platform
Advanced Defense APIs
ModifyWebPageProtectSwitch
1. Interface Description
Interface request domain name: cwp.api3.convergecloud.com.
This API is used to modify the protection switches in the web page anti-tampering module.
Default interface request rate limit: 20 times per second.
Interface update time: 2022-05-20 15:13:13.
The interface is both signature verification and authentication.
2. Input Parameters
The following list of request parameters only lists interface request parameters and some public parameters, For a complete list of public parameters see public request parameters.
| Parameter name | Required | Allow NULL | Type | Description |
|---|---|---|---|---|
| Action | Yes | No | String | Public parameter, The value of this interface: ModifyWebPageProtectSwitch |
| Version | Yes | No | String | Public parameter, The value of this interface: 2018-02-28 |
| Region | No | No | String | Public parameter,Regional information This interface does not need to pass this parameter. |
| Ids | Yes | No | Array of String | Websites for which you want to operate the switch. You can specify a maximum of 100 websites in each request. Example: ["101"] |
| Status | No | No | Uint64 | 1: enable. 2: disable. This parameter is required when SwitchType is set to 1 or 2. Example: 1 |
| SwitchType | Yes | No | Uint64 | Switch type. 1: protection. 2: automatic recovery. 3: removal from protection. Example: 1 |
3. Output Parameters
| Parameter name | Type | Description |
|---|---|---|
| RequestId | String | Unique request id, Each request will return. The RequestId of the request needs to be provided when locating the problem. |
4. Error Code
The following lists only the error codes related to the interface business logic, For other error codes, see public ErrorCode.
| Error Code | Description |
|---|---|
| InternalError | Internal error. |
| InvalidParameter.InvalidFormat | Incorrect parameter format. |
| MissingParameter | Missing parameter. |
| ResourceNotFound | The resource does not exist. |
| FailedOperation.AgentOffline | The agent is offline. |
| FailedOperation.APIServerFail | Failed to call the API service. |
| FailedOperation.LicenseExceeded | The number of available licenses is insufficient, and one more license is required. Please purchase a new license. |
| InvalidParameter | Invalid parameter. |
| LimitExceeded | The quota limit has been reached. |
| OperationDenied | Operation denied. |
| FailedOperation | Operation failed. |