Retrieves the security information of container images.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListImageRisk |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CurrentPage |
integer |
No |
The page number of the current page in a paging query. |
1 |
| PageSize |
integer |
No |
The maximum number of entries per page in a paging query. Default value: 20. |
20 |
| ClusterId |
string |
No |
The ID of the container cluster to query. Note
You can call the DescribeGroupedContainerInstances operation to obtain this parameter. |
c80f79959fd724a888e1187779b13**** |
| Namespace |
string |
No |
The image namespace. |
kube-sy**** |
| AppName |
string |
No |
The application name. |
e**** |
| ImageName |
string |
No |
The image name. |
container-***:**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
050ACC7A-D4FD-55C6-B861-BA9569C1**** |
| ImageRiskList |
array<object> |
The list of image risk information. |
|
|
array<object> |
The image risk information. |
||
| RepoNamespace |
string |
The image namespace. |
vultar*** |
| RepoName |
string |
The name of the image repository. |
scan_test |
| Tag |
string |
The image tag. |
0.1.0 |
| RegionId |
string |
The region where the image repository resides. |
cn-hangzhou |
| Digest |
string |
The digest value of the image. |
3f8efc2184cf1d24936b49c27286a284714b77be34c80c9ee38ca6bf322445**** |
| RepoId |
string |
The ID of the image repository. |
crr-bk2l746eyxca1**** |
| RepoType |
string |
The repository type. Valid values:
|
PRIVATE |
| RegistryType |
string |
The type of the image registry. Valid values:
|
harbor |
| Endpoints |
string |
The list of endpoints for the image service. |
https://172.20.XXX.XXX/test |
| ImageId |
string |
The image ID. |
f922bfeb6960436fe3f0e7b62fc6b9a0b47980986669c367c22433269404**** |
| TagImmutable |
integer |
The tag immutability setting. If immutability is enabled, image versions other than latest cannot be used to overwrite existing versions in this repository. Valid values:
|
0 |
| Statistics |
string |
The statistics of security events. |
{ "baselineNum": 0, "newSuspicious": 0, "vul": 0 } |
| ImageAccessType |
string |
The registration status of the image repository. Valid values:
|
IN_SAS |
| Image |
string |
The image. |
.aliyuncs.com/sas_test/baseline:exploit |
| Uuid |
string |
The unique identifier of the image. |
624778f3-5bf2-423c-ac0c-47a62c05**** |
| EndPointList |
array<object> |
The list of endpoint information. |
|
|
object |
The endpoint information. |
||
| Domains |
array |
An array that consists the details of the domain name in the endpoint. |
|
|
string |
The domain name in the endpoint. |
****-registry-registry-intranet.cn-shenzhen.cr.aliyuncs.com |
|
| Type |
string |
The type of the domain name in the endpoint. Valid values:
|
internet |
| InternetURLs |
string |
The public network access URL of the image repository. |
****registry-registry.cn-shenzhen-finance-1.cr.aliyuncs.com/xxxx/docker-**** |
| VpcURLs |
string |
The VPC access URL of the image repository. |
****-registry-registry-vpc.cn-shenzhen-finance-1.cr.aliyuncs.com/xxxx/docker-**** |
| PageInfo |
object |
The pagination information. |
|
| TotalCount |
integer |
The total number of entries returned. |
23 |
| Count |
integer |
The number of entries returned on the current page in a paging query. |
3 |
| PageSize |
integer |
The maximum number of entries per page in a paging query. |
20 |
| CurrentPage |
integer |
The page number of the current page in a paging query. |
1 |
Examples
Success response
JSON format
{
"RequestId": "050ACC7A-D4FD-55C6-B861-BA9569C1****",
"ImageRiskList": [
{
"RepoNamespace": "vultar***",
"RepoName": "scan_test",
"Tag": "0.1.0",
"RegionId": "cn-hangzhou",
"Digest": "3f8efc2184cf1d24936b49c27286a284714b77be34c80c9ee38ca6bf322445****",
"RepoId": "crr-bk2l746eyxca1****",
"RepoType": "PRIVATE",
"RegistryType": "harbor",
"Endpoints": "https://172.20.XXX.XXX/test",
"ImageId": "f922bfeb6960436fe3f0e7b62fc6b9a0b47980986669c367c22433269404****",
"TagImmutable": 0,
"Statistics": "{\n\t\"baselineNum\": 0,\n\t\"newSuspicious\": 0,\n\t\"vul\": 0\n}",
"ImageAccessType": "IN_SAS",
"Image": ".aliyuncs.com/sas_test/baseline:exploit",
"Uuid": "624778f3-5bf2-423c-ac0c-47a62c05****",
"EndPointList": [
{
"Domains": [
"****-registry-registry-intranet.cn-shenzhen.cr.aliyuncs.com"
],
"Type": "internet"
}
],
"InternetURLs": "****registry-registry.cn-shenzhen-finance-1.cr.aliyuncs.com/xxxx/docker-****",
"VpcURLs": "****-registry-registry-vpc.cn-shenzhen-finance-1.cr.aliyuncs.com/xxxx/docker-****"
}
],
"PageInfo": {
"TotalCount": 23,
"Count": 3,
"PageSize": 20,
"CurrentPage": 1
}
}
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.