Queries the details about images in the results of image baseline checks.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:DescribeImageListWithBaselineName | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BaselineNameKey | string | Yes | The name of the image baseline. | ak_leak |
Criteria | string | No | The search condition for the image baseline. | Unauthorized access |
CriteriaType | string | No | The type of the search condition. Valid values:
| BaselineNameAlias |
RepoInstanceId | string | No | The instance ID of the image repository. | i-qewqrqcsadf**** |
RepoName | string | No | The name of the image repository. | libssh2 |
RepoNamespace | string | No | The namespace to which the image repository belongs. | libssh2 |
ImageDigest | string | No | The SHA-256 value of the image digest. | 2e6daffce524ffeae66cccaa90c8fc47de912346dcec295c27395b6d66db6423 |
PageSize | integer | No | The number of entries to return on each page. Default value: 10. | 10 |
CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
ClusterId | string | No | The ID of the container cluster. Note
You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
| cc20a1024011c44b6a8710d6f8b**** |
ScanRange | array | No | The types of the assets that you want to scan. | |
string | No | The type of the asset that you want to scan. Valid values:
| container | |
ContainerId | string | No | The ID of the container. | c08d5fc1a329a4b88950a253d082f**** |
ClusterName | string | No | The name of the cluster. | docker-law |
Pod | string | No | The pod. | 22222-7xsqq |
Namespace | string | No | The namespace. | test-002 |
Image | string | No | The name of the image to which the container belongs. | registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "5B8C2156-2DB9-5A42-99E7-F2ED5AE9EA1F",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 10,
"TotalCount": 1,
"Count": 1
},
"ImageInfos": [
{
"MiddleRiskImage": 0,
"RiskStatus": "YES",
"ImageCreate": 1636962328000,
"Digest": "2e6daffce524ffeae66cccaa90c8fc47de912346dcec295c27395b6d66db6423",
"Tag": "v1",
"ImageUpdate": 1636974116000,
"InstanceId": "cri-a595qp31knh9****",
"LowRiskImage": 0,
"RepoType": "PRIVATE",
"RegionId": "cn-beijing",
"Uuid": "f58681174f944623345379e23b7b****",
"ImageSize": 157408623,
"RepoId": "crr-1lt6q7167yh6****",
"TotalItemCount": 3,
"HighRiskImage": 1,
"NoRiskImage": 0,
"ImageId": "cddb5fd33b34a1fabb358d0a19497cdfe362fe624821cb250947af0ea5cc****",
"RepoName": "scanner",
"ClusterId": "c08d5fc1a329a4b88950a253d082f1****",
"ClusterName": "docker-law",
"RepoNamespace": "libssh2",
"Pod": "22222-7xsqq",
"Namespace": "test-002",
"ContainerId": "04d20e98c8e2c93b7b864372084320a15a58c8671e53c972ce3a71d9c163****",
"Image": "registry.cn-wulanchabu.aliyuncs.com/sas_test/huxin-test-001:nuxeo6-conta****",
"InstanceName": "pre.mongo-196",
"InternetIp": "47.96.XX.XX",
"IntranetIp": "172.16.XX.XX",
"TargetName": "spod",
"TargetId": "m-bp17m0pc0xprzbwo****",
"TargetType": "ECS_IMAGE",
"LastScanTime": 1649814050000,
"FirstScanTime": 1649814050000
}
]
}
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.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-05-30 | The response structure of the API has changed | View Change Details |
2022-09-19 | The response structure of the API has changed | View Change Details |
2022-01-18 | Add Operation | View Change Details |