Queries the details about the image baseline risks that are detected.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeImageListWithBaselineName |
The operation that you want to perform. Set the value to DescribeImageListWithBaselineName. |
BaselineNameKey | String | Yes | ak_leak |
The name of the image baseline risk. |
Criteria | String | No | Identity authentication |
The condition that is used to query the image baseline risk. |
CriteriaType | String | No | BaselineNameAlias |
The type of the condition that is used to query the image baseline risk. Valid values:
|
RepoInstanceId | String | No | i-qewqrqcsadf**** |
The instance ID of the image repository. |
RepoName | String | No | libssh2 |
The name of the image repository. |
RepoNamespace | String | No | libssh2 |
The namespace to which the image repository belongs. |
ImageDigest | String | No | 2e6daffce524ffeae66cccaa90c8fc47de912346dcec295c27395b6d66db6423 |
The SHA-256 value of the image digest. |
PageSize | Integer | No | 10 |
The number of entries to return on each page. Default value: 10. |
CurrentPage | Integer | No | 1 |
The number of the page to return. Default value: 1. |
Lang | String | No | zh |
The language of the content within the request and response. Default value: zh. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 5B8C2156-2DB9-5A42-99E7-F2ED5AE9EA1F |
The ID of the request, which is used to locate and troubleshoot issues. |
PageInfo | Object |
The pagination information. |
|
CurrentPage | Integer | 1 |
The page number of the returned page. Default value: 1. |
PageSize | Integer | 10 |
The number of entries returned per page. Default value: 10. |
TotalCount | Integer | 1 |
The total number of images on which baseline risks are detected. |
Count | Integer | 1 |
The number of images on which baseline risks are detected and are returned on the current page. |
ImageInfos | Array of ImageInfos |
Details about images. |
|
MiddleRiskImage | Integer | 0 |
The number of images that have medium baseline risks. |
RiskStatus | String | YES |
Indicates whether the image is at risk. Valid values:
|
ImageCreate | Long | 1636962328000 |
The timestamp when the image was created. Unit: milliseconds. |
Digest | String | 2e6daffce524ffeae66cccaa90c8fc47de912346dcec295c27395b6d66db6423 |
The SHA-256 value of the image digest. |
Tag | String | v1 |
The version of the image. |
ImageUpdate | Long | 1636974116000 |
The timestamp when the image was updated. Unit: milliseconds. |
InstanceId | String | cri-a595qp31knh9**** |
The ID of the image instance. |
LowRiskImage | Integer | 0 |
The number of images that have low baseline risks. |
RepoType | String | PRIVATE |
The type of the image repository. |
RegionId | String | cn-beijing |
The region ID of the image instance. |
Uuid | String | f58681174f944623345379e23b7b**** |
The UUID of the image. |
ImageSize | Integer | 157408623 |
The size of the image. |
RepoId | String | crr-1lt6q7167yh6**** |
The ID of the image repository. |
TotalItemCount | Integer | 3 |
The total number of baseline risks that are detected on the image. |
HighRiskImage | Integer | 1 |
The number of images that have high baseline risks. |
NoRiskImage | Integer | 0 |
The number of images that do not have baseline risks. |
ImageId | String | cddb5fd33b34a1fabb358d0a19497cdfe362fe624821cb250947af0ea5cc**** |
The ID of the image. |
RepoName | String | scanner |
The name of the image repository. |
RepoNamespace | String | sas |
The namespace of the image. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeImageListWithBaselineName
&BaselineNameKey=ak_leak
&Criteria=Identity authentication
&CriteriaType=BaselineNameAlias
&RepoInstanceId=i-qewqrqcsadf****
&RepoName=libssh2
&RepoNamespace=libssh2
&ImageDigest=2e6daffce524ffeae66cccaa90c8fc47de912346dcec295c27395b6d66db6423
&PageSize=10
&CurrentPage=1
&Lang=zh
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeImageListWithBaselineNameResponse>
<RequestId>5B8C2156-2DB9-5A42-99E7-F2ED5AE9EA1F</RequestId>
<PageInfo>
<CurrentPage>1</CurrentPage>
<PageSize>10</PageSize>
<TotalCount>1</TotalCount>
<Count>1</Count>
</PageInfo>
<ImageInfos>
<MiddleRiskImage>0</MiddleRiskImage>
<RiskStatus>YES</RiskStatus>
<ImageCreate>1636962328000</ImageCreate>
<Digest>2e6daffce524ffeae66cccaa90c8fc47de912346dcec295c27395b6d66db6423</Digest>
<Tag>v1</Tag>
<ImageUpdate>1636974116000</ImageUpdate>
<InstanceId>cri-a595qp31knh9****</InstanceId>
<LowRiskImage>0</LowRiskImage>
<RepoType>PRIVATE</RepoType>
<RegionId>cn-beijing</RegionId>
<Uuid>f58681174f944623345379e23b7b****</Uuid>
<ImageSize>157408623</ImageSize>
<RepoId>crr-1lt6q7167yh6****</RepoId>
<TotalItemCount>3</TotalItemCount>
<HighRiskImage>1</HighRiskImage>
<NoRiskImage>0</NoRiskImage>
<ImageId>cddb5fd33b34a1fabb358d0a19497cdfe362fe624821cb250947af0ea5cc****</ImageId>
<RepoName>scanner</RepoName>
<RepoNamespace>sas</RepoNamespace>
</ImageInfos>
</DescribeImageListWithBaselineNameResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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",
"RepoNamespace" : "sas"
} ]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
500 | ServerError | ServerError | The error message returned because a server error occurred. |
For a list of error codes, visit the API Error Center.