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)
> You can call the [DescribeVulWhitelist](~~DescribeVulWhitelist~~) operation to query the IDs of whitelists.
public ModifyVulWhitelistTargetRequest.Builder reason(String reason)
public ModifyVulWhitelistTargetRequest.Builder sourceIp(String sourceIp)
public ModifyVulWhitelistTargetRequest.Builder targetInfo(String targetInfo)
* **type**: the type of the applicable scope. Valid values: * **GroupId**: the ID of a server group * **Uuid**: the UUID of a server * **uuids**: the UUIDs of servers * **groupIds**: the IDs of server groups > 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.
public ModifyVulWhitelistTargetRequest build()
Copyright © 2023. All rights reserved.