Tenant Cloud
Security
Cloud Workload Protection Platform
Settings Center APIs
ModifyAssetsProtectionStatus
1. Interface Description
Interface request domain name: cwp.api3.convergecloud.com.
This API is used to modify the host protection status.
Default interface request rate limit: 20 times per second.
Interface update time: 0001-01-01 00:00:00.
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: ModifyAssetsProtectionStatus |
| 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. |
| AssetInfos | No | No | Array of AssetInfo | Host list, which is not required when OpenAll is set to True. Example:View |
| MemberId | No | No | Array of String | Group Account Member ID Example: [{"mem-6wfo0fzks3","mem-85fo0fzks4"}] |
| OpenAll | Yes | No | Bool | Whether to enable protection for all hosts. Example: true |
| Status | Yes | No | Uint64 | Status. 0: disabled, 1: enabled. Example: 1 |
3. Output Parameters
| Parameter name | Type | Description |
|---|---|---|
| Assets | Array of AgentInstallResult | Operation result list. Example:View |
| 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. |
| MissingParameter | Missing parameter. |
| ResourceNotFound | The resource does not exist. |
| InvalidParameter | Invalid parameter. |
| OperationDenied | Operation denied. |
| InvalidParameterValue | The parameter value is invalid. |