public static final class ModifyStrategyTargetRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyStrategyTargetRequest |
build() |
ModifyStrategyTargetRequest.Builder |
config(String config)
The ID of the baseline check policy.
|
ModifyStrategyTargetRequest.Builder |
sourceIp(String sourceIp)
The source IP address of the request.
|
ModifyStrategyTargetRequest.Builder |
target(String target)
The information about the asset group to which the policy is applied.
|
ModifyStrategyTargetRequest.Builder |
type(String type)
The type of the configuration.
|
public ModifyStrategyTargetRequest.Builder config(String config)
The ID of the baseline check policy. The ID is returned after the policy is created. The value of this parameter is in the JSON format and contains the following field:
This parameter is required.
example:{"strategyId":8070645}
public ModifyStrategyTargetRequest.Builder sourceIp(String sourceIp)
The source IP address of the request.
example:192.168.XX.XX
public ModifyStrategyTargetRequest.Builder target(String target)
The information about the asset group to which the policy is applied. The value of this parameter is in the JSON format and contains the following fields:
This parameter is required.
example:[{"Target":"9273980","BindUuidCount":5320,"TargetType":"groupId","Flag":"del"},{"Target":"9677606","TargetType":"groupId","Flag":"del"},{"Target":"10121607","BindUuidCount":7,"TargetType":"groupId","Flag":"add"},{"Target":"10670708","BindUuidCount":2,"TargetType":"groupId","Flag":"del"},{"Target":"11246338","BindUuidCount":6,"TargetType":"groupId","Flag":"del"},{"Target":"11291161","BindUuidCount":13,"TargetType":"groupId","Flag":"del"}]
public ModifyStrategyTargetRequest.Builder type(String type)
The type of the configuration. Set the value to hc_strategy.
This parameter is required.
example:hc_strategy
public ModifyStrategyTargetRequest build()
Copyright © 2026. All rights reserved.