Tenant Cloud
Security
Cloud Workload Protection Platform
Baseline Management APIs
UpdateBaselineStrategy
1. Interface Description
Interface request domain name: cwp.api3.convergecloud.com.
This API is used to update a baseline policy based on a policy ID.
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: UpdateBaselineStrategy |
| 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. |
| CategoryIds | Yes | No | Array of String | Baseline IDs selected for the specified policy. Example: ["1002"] |
| IsGlobal | Yes | No | Uint64 | Specifies whether all servers will be scanned. 1: yes. 0: no. If you set this parameter to 1, all servers with CWP Pro are scanned. Example: 1 |
| MachineType | Yes | No | String | Cloud host type. CVM: CVM instance BM: BMS instance ECM: ECM instance LH: Lighthouse instance OTHER: hybrid cloud instance. Example: CVM |
| Quuids | Yes | No | Array of String | Server IDs. Example: ["5a540076-d38a-4078-aa98-e7c86371d322"] |
| RegionCode | Yes | No | String | Region Example: ap-region1 |
| ScanAt | Yes | No | String | Regular scan time at which a scan task is delivered. Example: 00:00:00 |
| ScanCycle | Yes | No | Uint64 | Scan cycle. Example: 1 |
| StrategyId | Yes | No | Uint64 | Policy ID. Example: 1 |
| StrategyName | Yes | No | String | Policy name Example: redis_node_check |
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.ParsingError | Parameter parsing error. |
| InvalidParameter.MissingParameter | Missing parameter. |
| MissingParameter | Missing parameter. |
| InvalidParameter.IllegalRequest | Invalid request. |
| FailedOperation.NoProfessionHost | No servers with CWP Pro exist. |
| InvalidParameter | Invalid parameter. |
| InvalidParameterValue | The parameter value is invalid. |