Updates an image vulnerability whitelist.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:UpdateImageVulWhitelistTarget |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
No |
The ID of the vulnerability whitelist. |
2000083 |
| Target |
string |
No |
The operation target. This parameter is in JSON format and contains the following fields:
|
{\"type\":\"repo\",\"target\":[\"sas_test/script_0209\",\"sas_test/script\"]} |
| Reason |
string |
No |
The reason for adding 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 elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResult |
||
| Data |
boolean |
The processing result. Valid values:
|
true |
| Success |
boolean |
Indicates whether the API call was successful. Valid values:
|
true |
| Code |
string |
The result code. A value of 200 indicates success. Any other value indicates failure. You can use this field to determine the cause of a failure. |
200 |
| Message |
string |
The returned message of the request result. |
successful |
| RequestId |
string |
The unique request ID. |
9F4E6157-9600-5588-86B9-38F09067**** |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
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 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.