All Products
Search
Document Center

Security Center:DescribeImageInstances

Last Updated:Mar 21, 2023

Queries information about images.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
CriteriastringNo

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:

  • name: the search condition

  • name: the value of the search condition

  • logicalExp: the logical relation for multiple search conditions Valid values:

    • OR: The search conditions use a logical OR.
    • AND: The search conditions use a logical AND.
NoteYou can call the DescribeImageCriteria operation to query the supported search conditions.
[{"name":"instanceId","value":"390100182","logicalExp":"AND"}]
LogicalExpstringNo

The logical relationship that you want to use to evaluate multiple search conditions. Valid values:

  • OR: The search conditions are evaluated by using a logical OR.
  • AND: The search conditions are evaluated by using a logical AND.
OR
PageSizeintegerNo

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
CurrentPageintegerNo

The number of the page to return. Pages start from page 1. Default value: 1.

1
ScannedbooleanNo

Specifies whether the image is scanned. Valid values:

  • true
  • false
true

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

BE120DAB-F4E7-4C53-ADC3-A97578ABF384
PageInfoobject

The pagination information.

CurrentPageinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

20
TotalCountinteger

The total number of returned entries.

69
Countinteger

The number of images returned on the current page.

4
ImageInstanceListarray

An array that consists of the information about the image.

object

The information about the image.

Statusstring

The status of the image. Valid values:

  • NORMAL: The image is normal.
NORMAL
Digeststring

The digest value of the image.

a5ccdd9b166b67e02954aa9b618fe19b7968bd56a15463d2ad7f2643ba5b****
RegistryTypestring

The type of the image. Valid values:

  • acr
  • harbor
  • quay
  • CI/CD
acr
Tagstring

The tag of the image.

mysql_5.7
ImageUpdatestring

The timestamp when the image was updated. Unit: milliseconds.

1600069948849
RepoTypestring

The type of the repository. Valid values:

  • private
  • public
private
ImageSizestring

The size of the image. Unit: MB.

1604487690
HcStatusstring

Indicates whether the image baseline risks exist. Valid values:

  • NO
  • YES
NO
VulCountinteger

The number of vulnerabilities in the image.

0
ImageIdstring

The ID of the image.

c20987f18b130f9d144c9828df630417e2a9523148930dc3963e9d0dab30****
Endpointsstring

The address of the image.

[]
RiskStatusstring

Indicates whether risks exist. Valid values:

  • NO: No risks exist.
  • YES: Risks exist.
NO
ImageCreatestring

The timestamp when the image was created. Unit: milliseconds.

1600069948849
VulStatusstring

Indicates whether vulnerabilities exist in the image. Valid values:

  • YES
  • NO
NO
AlarmStatusstring

Indicates whether alerts are generated for the image. Valid values:

  • YES
  • NO
NO
ScaProgressinteger

The scan progress of the image. Valid values: 0 to 100.

100
InstanceIdstring

The ID of the image instance.

39010****
RegionIdstring

The region ID of the image.

cn-hangzhou
ScaStatusstring

The scan status of the image. Valid values:

  • INIT: The image scan task is to be started.
  • START: The image scan task is started.
  • MESSAGE_SEND: The message about the image scan task is sent.
  • START_RUN: The image scan task is started.
  • DOWNLOAD: The image scan result is downloaded.
  • PRE_ANALYZER: The image scan task is being processed.
  • WEB_SHELL_ANALYZER: The WebShell analysis is complete.
  • CVE_ANALYZER: The CVE analysis is complete.
  • BIN_ANALYZER: The binary analysis of the image is complete.
  • OTHER_ANALYZER: The extended analysis of the image is complete.
  • SUCCESS: The image scan task is complete.
  • PRE_ANALYZER_SUCCESS: The image scan task is processed.
  • FAIL: The image scan task fails.
  • TIMEOUT: The image scan task times out.
SUCCESS
Uuidstring

The UUID of the server.

12f80307-60aa-4efa-863a-56d72fb****
RepoIdstring

The ID of the image repository.

f2b86d20bf0855af6aa268ce90fd****
HcCountinteger

The number of baseline risks.

0
ScaResultstring

The error code of the image scan result. Valid values:

  • TASK_NOT_EXISTS: The image scan task does not exist.
  • TASK_NOT_SUPPORT_REGION: The image scan task cannot be performed in the current region.
  • forbid_create_repeat_task: The image scan task already exists.
TASK_NOT_SUPPORT_REGION
RepoNamestring

The name of the image repository.

sas-script-test
AlarmCountinteger

The number of alerts that are generated on the image.

0
RepoNamespacestring

The namespace to which the image repository belongs.

N/A
Deployedinteger

Indicates whether the image was deployed. Valid values:

  • 0: The image was not deployed.
  • 1: The image was deployed.
1

Examples

Sample success responses

JSONformat

{
  "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
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.