public static final class ModifyVulWhitelistTargetRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyVulWhitelistTargetRequest |
build() |
ModifyVulWhitelistTargetRequest.Builder |
id(Long id)
The ID of the whitelist.
|
ModifyVulWhitelistTargetRequest.Builder |
reason(String reason)
The reason why you add the server to the whitelist.
|
ModifyVulWhitelistTargetRequest.Builder |
sourceIp(String sourceIp)
The source IP address of the request.
|
ModifyVulWhitelistTargetRequest.Builder |
targetInfo(String targetInfo)
The applicable scope of the whitelist.
|
public ModifyVulWhitelistTargetRequest.Builder id(Long id)
The ID of the whitelist.
You can call the DescribeVulWhitelist operation to query the IDs of whitelists.
This parameter is required.
example:2533681
public ModifyVulWhitelistTargetRequest.Builder reason(String reason)
The reason why you add the server to the whitelist.
example:1221
public ModifyVulWhitelistTargetRequest.Builder sourceIp(String sourceIp)
The source IP address of the request.
example:42.120.75.150
public ModifyVulWhitelistTargetRequest.Builder targetInfo(String targetInfo)
The applicable scope of the whitelist. The value of this parameter is in the JSON format and contains the following fields:
type: the type of the applicable scope. Valid values:
uuids: the UUIDs of servers
groupIds: the IDs of server groups
example:If you leave this parameter empty, all servers are added to the whitelist. If you set the type field to GroupId, you must also specify the groupIds field. If you set the type field to Uuid, you must also specify the uuids field.
{ "type": "GroupId", "uuids": [], "groupIds": [ 10782678 ] }
public ModifyVulWhitelistTargetRequest build()
Copyright © 2026. All rights reserved.