All Products
Search
Document Center

ENS:DescribeSelfImages

Last Updated:Mar 12, 2024

Queries custom images.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

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

1
PageSizeintegerNo

The number of entries per page.

Default value: 10.

10
ImageIdstringNo

The ID of the image. Fuzzy search is supported.

centos_6_08_64_20G_a****
ImageNamestringNo

The name of the image. Fuzzy search is supported.

centos_6_08_64_20G_a****
SnapshotIdstringNo

The ID of the snapshot.

sp-5xg63dmojc1oaa3pk****

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

0
Imagesobject []

The image information.

Architecturestring

The image architecture. Valid values:

  • i386
  • x86_64
x86_64
CreationTimestring

The image creation time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2017-12-08T12:10:03Z
ImageIdstring

The ID of the image.

centos_6_08_64_20G_a****
ImageNamestring

The name of the image.

centos_6_08_64_20G_a****
ImageOwnerAliasstring

The source of the image. Valid values:

  • system: public images
  • self: your custom images
system
ImageSizestring

The size of the image. Unit: GiB.

20
InstanceIdstring

The instance ID.

i-5iqczfxps7csjrxeca****
OsVersionstring

The operating system version.

7.2
Platformstring

The platform.

  • centos
  • ubuntu
  • alios
  • debian
  • rhel
  • windows
centos
Statusstring

The state of the image.

  • Creating.
  • Packing.
  • Uploading.
  • Pack_failed.
  • Upload_failed.
  • Available: Only images in the Available state can be used and operated.
  • Unavailable.
  • Copying.
Creating
ComputeTypestring

Computing type. ens_vm/ens: x86 computing. bare_metal: x86 bare machine or x86 bare metal. arm_vm: ARM computing. arm_bare_metal: ARM bare machine or ARM bare metal. pcfarm: heterogeneous computing.

ens_vm
SnapshotIdstring

The ID of the snapshot.

sp-5yt3bdedxzdz6t6uuw****
RequestIdstring

The request ID.

A8B8EB73-B4FD-4262-8EF6-680DF39C9BA0

Examples

Sample success responses

JSONformat

{
  "Code": 0,
  "Images": {
    "Image": [
      {
        "Architecture": "x86_64",
        "CreationTime": "2017-12-08T12:10:03Z",
        "ImageId": "centos_6_08_64_20G_a****",
        "ImageName": "centos_6_08_64_20G_a****",
        "ImageOwnerAlias": "system",
        "ImageSize": "20",
        "InstanceId": "i-5iqczfxps7csjrxeca****",
        "OsVersion": "7.2",
        "Platform": "centos",
        "Status": "Creating",
        "ComputeType": "ens_vm",
        "SnapshotId": "sp-5yt3bdedxzdz6t6uuw****"
      }
    ]
  },
  "RequestId": "A8B8EB73-B4FD-4262-8EF6-680DF39C9BA0"
}

Error codes

HTTP status codeError codeError message
400MissingParameterThe input parameters that is mandatory for processing this request is not supplied.
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

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

Change history

Change timeSummary of changesOperation
2023-04-11The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-03-02The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: SnapshotId
Output ParametersThe response structure of the API has changed.
2022-09-22Add Operationsee changesets