public static final class AddImageVulWhiteListRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddImageVulWhiteListRequest |
build() |
AddImageVulWhiteListRequest.Builder |
lang(String lang)
The language of the content within the request and response.
|
AddImageVulWhiteListRequest.Builder |
reason(String reason)
The reason why you add the vulnerability to the whitelist.
|
AddImageVulWhiteListRequest.Builder |
source(String source)
The source of the whitelist.
|
AddImageVulWhiteListRequest.Builder |
target(String target)
The object on which you want to perform the operation.
|
AddImageVulWhiteListRequest.Builder |
type(String type)
The type of the vulnerability.
|
AddImageVulWhiteListRequest.Builder |
whitelist(String whitelist)
The whitelist.
|
public AddImageVulWhiteListRequest.Builder lang(String lang)
The language of the content within the request and response. Default value: zh. Valid values:
zh
public AddImageVulWhiteListRequest.Builder reason(String reason)
The reason why you add the vulnerability to the whitelist.
example:already config in another way
public AddImageVulWhiteListRequest.Builder source(String source)
The source of the whitelist. Valid values:
image
public AddImageVulWhiteListRequest.Builder target(String target)
The object on which you want to perform the operation. The value of this parameter is in the JSON format and contains the following fields:
{"type":"repo","target":["sas_test/script_0209","sas_test/script"]}
public AddImageVulWhiteListRequest.Builder type(String type)
The type of the vulnerability. Valid values:
cve
public AddImageVulWhiteListRequest.Builder whitelist(String whitelist)
The whitelist. The value of this parameter is in the JSON format and contains the following fields:
[{"Type":"sca","Name":"imgsca:java:spring-core:AVD-2022-1124599","AliasName":"Spring Framework JDK >= 9 (CVE-2022-22965)"}]
public AddImageVulWhiteListRequest build()
Copyright © 2026. All rights reserved.