public static final class FixCheckWarningsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
FixCheckWarningsRequest |
build() |
FixCheckWarningsRequest.Builder |
checkParams(String checkParams)
The parameters for the baseline risk item that you want to fix.
|
FixCheckWarningsRequest.Builder |
lang(String lang)
The language of the content within the request and response.
|
FixCheckWarningsRequest.Builder |
retentionDays(Integer retentionDays)
The retention period of the snapshot that is created when you fix the baseline risk.
|
FixCheckWarningsRequest.Builder |
riskId(Long riskId)
The ID of the risk item.
|
FixCheckWarningsRequest.Builder |
snapshotName(String snapshotName)
The name of the snapshot that is created when you fix the baseline risk.
|
FixCheckWarningsRequest.Builder |
sourceIp(String sourceIp)
The source IP address of the request.
|
FixCheckWarningsRequest.Builder |
uuids(String uuids)
The UUID of the asset for which you want to fix the baseline risk item.
|
public FixCheckWarningsRequest.Builder checkParams(String checkParams)
The parameters for the baseline risk item that you want to fix.
checkId: the ID of the check item that corresponds to the baseline risk item.
rules: an array that consists of the rules applied to fixes.
This parameter is required.
example:[{"checkId":8,"rules":[{"ruleId":"rule.ssh_Idle.interval","value":1,"paramList":[{"paramName":"range_val","value":"600"},{"paramName":"range_val","value":"600"}]},{"ruleId":"rule.ssh_Idle.count","value":1,"paramList":[{"paramName":"range_val","value":"3"}]}]}]
public FixCheckWarningsRequest.Builder lang(String lang)
The language of the content within the request and response. Valid values:
zh
public FixCheckWarningsRequest.Builder retentionDays(Integer retentionDays)
The retention period of the snapshot that is created when you fix the baseline risk. Valid values: 1 to 365. Unit: days.
example:1
public FixCheckWarningsRequest.Builder riskId(Long riskId)
The ID of the risk item.
example:To query the information about the risk items and check items of a server, you must specify the IDs of the risk items. You can call the DescribeCheckWarningSummary operation to query the IDs of risk items.
10354
public FixCheckWarningsRequest.Builder snapshotName(String snapshotName)
The name of the snapshot that is created when you fix the baseline risk.
example:sas_fix_2024-12-04
public FixCheckWarningsRequest.Builder sourceIp(String sourceIp)
The source IP address of the request.
example:165.225.XX.XX
public FixCheckWarningsRequest.Builder uuids(String uuids)
The UUID of the asset for which you want to fix the baseline risk item. You can call the DescribeWarningMachines operation to query the UUIDs of assets.
example:75a417dda5f25edb5bed8f208a9a****,c7e10fd794262a1510d5648f9e5d****
public FixCheckWarningsRequest build()
Copyright © 2026. All rights reserved.