Retrieves information about images.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeImageInstances |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Criteria |
string |
No |
The search condition that is used to filter the server. The value of this parameter is in the JSON format and contains the following fields:
Note
You can call the DescribeImageCriteria operation to query the supported search conditions. |
[{"name":"instanceId","value":"390100182","logicalExp":"AND"}] |
| LogicalExp |
string |
No |
The logical relationship that you want to use to evaluate multiple search conditions. Valid values:
|
OR |
| PageSize |
integer |
No |
The number of entries to return on each 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 |
| CurrentPage |
integer |
No |
The number of the page to return. Pages start from page 1. Default value: 1. |
1 |
| Scanned |
boolean |
No |
Specifies whether the image is scanned. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
BE120DAB-F4E7-4C53-ADC3-A97578ABF384 |
| PageInfo |
object |
The pagination information. |
|
| CurrentPage |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
20 |
| TotalCount |
integer |
The total number of returned entries. |
69 |
| Count |
integer |
The number of images returned on the current page. |
4 |
| ImageInstanceList |
array<object> |
The information about the images. |
|
|
object |
The information about the image. |
||
| Status |
string |
The status of the image. Valid values:
|
NORMAL |
| Digest |
string |
The digest value of the image. |
a5ccdd9b166b67e02954aa9b618fe19b7968bd56a15463d2ad7f2643ba5b**** |
| RegistryType |
string |
The type of the image. Valid values:
|
acr |
| Tag |
string |
The tag of the image. |
mysql_5.7 |
| ImageUpdate |
string |
The timestamp generated when the image was updated. Unit: milliseconds. |
1600069948849 |
| RepoType |
string |
The type of the repository. Valid values:
|
private |
| ImageSize |
string |
The size of the image. Unit: MB. |
1604487690 |
| HcStatus |
string |
Indicates whether baseline risks exist. Valid values:
|
NO |
| VulCount |
integer |
The number of vulnerabilities in the image. |
0 |
| ImageId |
string |
The ID of the image. |
c20987f18b130f9d144c9828df630417e2a9523148930dc3963e9d0dab30**** |
| Endpoints |
string |
The address of the image. |
[] |
| RiskStatus |
string |
Indicates whether risks exist. Valid values:
|
NO |
| ImageCreate |
string |
The timestamp generated when the image was created. Unit: milliseconds. |
1600069948849 |
| VulStatus |
string |
Indicates whether vulnerabilities exist in the image. Valid values:
|
NO |
| AlarmStatus |
string |
Indicates whether alerts are generated for the image. Valid values:
|
NO |
| ScaProgress |
integer |
The scan progress of the image. Valid values: 0 to 100. |
100 |
| InstanceId |
string |
The instance ID of the image. |
39010**** |
| RegionId |
string |
The region ID of the image. |
cn-hangzhou |
| ScaStatus |
string |
The scan status of the image. Valid values:
|
SUCCESS |
| Uuid |
string |
The UUID of the server. |
12f80307-60aa-4efa-863a-56d72fb**** |
| RepoId |
string |
The ID of the image repository. |
f2b86d20bf0855af6aa268ce90fd**** |
| HcCount |
integer |
The number of baseline risks. |
0 |
| ScaResult |
string |
The error code of the image scan result. Valid values:
|
TASK_NOT_SUPPORT_REGION |
| RepoName |
string |
The name of the image repository. |
sas-script-test |
| AlarmCount |
integer |
The number of alerts that are generated for the image. |
0 |
| RepoNamespace |
string |
The namespace to which the image repository belongs. |
N/A |
| Deployed |
integer |
Indicates whether the image was deployed. Valid values:
|
1 |
| LastScanTime |
integer |
The timestamp when the last scan was performed. Unit: milliseconds. |
1721363159000 |
| SourceBizTag |
string |
The usage label of the image. |
PAI |
Examples
Success response
JSON format
{
"RequestId": "BE120DAB-F4E7-4C53-ADC3-A97578ABF384",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 69,
"Count": 4
},
"ImageInstanceList": [
{
"Status": "NORMAL",
"Digest": "a5ccdd9b166b67e02954aa9b618fe19b7968bd56a15463d2ad7f2643ba5b****",
"RegistryType": "acr",
"Tag": "mysql_5.7",
"ImageUpdate": "1600069948849",
"RepoType": "private",
"ImageSize": "1604487690",
"HcStatus": "NO",
"VulCount": 0,
"ImageId": "c20987f18b130f9d144c9828df630417e2a9523148930dc3963e9d0dab30****",
"Endpoints": "[]",
"RiskStatus": "NO",
"ImageCreate": "1600069948849",
"VulStatus": "NO",
"AlarmStatus": "NO",
"ScaProgress": 100,
"InstanceId": "39010****",
"RegionId": "cn-hangzhou",
"ScaStatus": "SUCCESS",
"Uuid": "12f80307-60aa-4efa-863a-56d72fb****",
"RepoId": "f2b86d20bf0855af6aa268ce90fd****",
"HcCount": 0,
"ScaResult": "TASK_NOT_SUPPORT_REGION",
"RepoName": "sas-script-test",
"AlarmCount": 0,
"RepoNamespace": "N/A",
"Deployed": 1,
"LastScanTime": 1721363159000,
"SourceBizTag": "PAI"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.