Updates the vulnerability whitelist of an image.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | long | No | The whitelist ID. | 2000083 |
Target | string | No | The vulnerability that you want to add to the whitelist. 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\"]} |
Reason | string | No | The reason why you add the vulnerability to the whitelist. | ignore |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
Source | string | No | The source of the whitelist. Valid values:
| image |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": true,
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "9F4E6157-9600-5588-86B9-38F09067****",
"HttpStatusCode": 200
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.