Queries affected images by build risk with paging.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeImageListByBuildRisk |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RiskLevel |
string |
No |
The risk level. Valid values:
|
medium |
| Lang |
string |
No |
The language of the content within the request and response. Valid values:
|
zh |
| CurrentPage |
integer |
No |
The page number of the current page in paging query. Default value: 1. |
1 |
| PageSize |
integer |
No |
The maximum number of entries per page in paging query. Default value: 20. If you leave this parameter empty, 20 entries are returned. Note
Do not leave PageSize empty. |
20 |
| RiskKey |
string |
No |
The key of the build risk rule. You can call the DescribeImageBuildRiskList operation to obtain the RiskKey. |
no_user |
| Status |
integer |
No |
The status of the alert event to query. Valid values:
|
1 |
| Criteria |
string |
No |
The value of the condition parameter. |
sas |
| CriteriaType |
string |
No |
The name of the condition parameter. Valid values:
|
RepoNamespace |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResult<PageResult |
||
| Data |
object |
The returned data. |
|
| List |
array<object> |
The list of images. |
|
|
object |
|||
| Uuid |
string |
The UUID of the image. |
6ec898e6274f942e0e4a053eff1c**** |
| RegionId |
string |
The ID of the region. |
cn-hangzhou |
| InstanceId |
string |
The instance ID of the image repository. |
39010**** |
| RepoNamespace |
string |
The namespace to which the image repository belongs. |
namespace |
| RepoName |
string |
The name of the image repository. |
test-tepo |
| Digest |
string |
The digest value of the image. |
a5ccdd9b166b67e02954aa9b618fe19b7968bd56a15463d2ad7f2643ba5b**** |
| Tag |
string |
The tag of the image. |
v1 |
| FirstScanTime |
integer |
The timestamp generated when the first scan was performed. Unit: milliseconds. |
1723710827000 |
| LastScanTime |
integer |
The timestamp generated when the last scan was performed. Unit: milliseconds. |
1723710827999 |
| RiskLevel |
string |
The risk level. Valid values:
|
medium |
| Status |
integer |
The status of the alert event. Valid values:
|
1 |
| PageInfo |
object |
The pagination information. |
|
| CurrentPage |
integer |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page. Note
We recommend that you do not leave this parameter empty. |
20 |
| TotalCount |
integer |
The total number of entries returned. |
109 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| Code |
string |
The HTTP status code. |
200 |
| Message |
string |
The detailed information about the error code. |
successful |
| RequestId |
string |
The request ID. |
52870893-48A7-5A9E-9E05-6253E5B6**** |
Examples
Success response
JSON format
{
"Data": {
"List": [
{
"Uuid": "6ec898e6274f942e0e4a053eff1c****",
"RegionId": "cn-hangzhou",
"InstanceId": "39010****",
"RepoNamespace": "namespace",
"RepoName": "test-tepo",
"Digest": "a5ccdd9b166b67e02954aa9b618fe19b7968bd56a15463d2ad7f2643ba5b****",
"Tag": "v1",
"FirstScanTime": 1723710827000,
"LastScanTime": 1723710827999,
"RiskLevel": "medium",
"Status": 1
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 109
}
},
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "52870893-48A7-5A9E-9E05-6253E5B6****"
}
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.