public static final class CreateSoarStrategyTaskRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateSoarStrategyTaskRequest |
build() |
CreateSoarStrategyTaskRequest.Builder |
strategyId(Long strategyId)
The ID of the policy.
|
CreateSoarStrategyTaskRequest.Builder |
strategyName(String strategyName)
The name of the policy.
|
CreateSoarStrategyTaskRequest.Builder |
strategyTaskName(String strategyTaskName)
The name of.the policy task.
|
CreateSoarStrategyTaskRequest.Builder |
strategyTaskParams(String strategyTaskParams)
The parameters of the policy task.
|
CreateSoarStrategyTaskRequest.Builder |
strategyTaskPlanExeTime(Long strategyTaskPlanExeTime)
The timestamp when the task is scheduled to start.
|
public CreateSoarStrategyTaskRequest.Builder strategyId(Long strategyId)
The ID of the policy.
You can call the DescribeSoarSubscribedStrategy operation to obtain the ID.
This parameter is required.
example:13840
public CreateSoarStrategyTaskRequest.Builder strategyName(String strategyName)
The name of the policy. Set the value to Automated Batch Vulnerability Fixing Policy for Multiple Servers.
This parameter is required.
example:Automated Batch Vulnerability Fixing Policy for Multiple Servers
public CreateSoarStrategyTaskRequest.Builder strategyTaskName(String strategyTaskName)
The name of.the policy task.
This parameter is required.
example:task1
public CreateSoarStrategyTaskRequest.Builder strategyTaskParams(String strategyTaskParams)
The parameters of the policy task. The value is a JSON array.
Vulnerability-related parameters:
Snapshot-related parameters:
Notification-related parameters:
This parameter is required.
example:[ { "name": "vulList", "associationProperty": "sasAllVul", "value": [ { "regionId": "cn-hangzhou", "instanceId": "i-bp10i68lo5e", "instanceName": "instance", "vulId": 3974347681, "vulName": "centos:7:cesa-2024:1249", "vulAliasName": "CESA-2024:1249", "vulTag": "oval", "vulUuid": "3c5eb76a-****-85ef-67562cdc2344", "vulType": "cve", "vulModifyTs": 1721324258000 } ] }, { "name": "snapshotConfig", "associationProperty": "snapshotConfig", "value": { "ttl": 1 } }, { "name": "notifyConfig", "associationProperty": "notifyConfig", "value": { "ding": [ { "value": 2195, "label": "test" } ] } } ]
public CreateSoarStrategyTaskRequest.Builder strategyTaskPlanExeTime(Long strategyTaskPlanExeTime)
The timestamp when the task is scheduled to start. Unit: milliseconds.
example:1586739841000
public CreateSoarStrategyTaskRequest build()
Copyright © 2026. All rights reserved.