All Products
Search
Document Center

Batch Compute:GetImage

Last Updated:Apr 12, 2018

Description

Obtains the specified image information.

Request

  1. GET /images/{id}

Request description

Attribute Type Required Description
Id String Yes Image ID.

Response

Response status code

  1. HTTP/1.1 200 OK

Response body

  1. {
  2. "CreationTime": "2016-10-31T06:55:33.921897Z",
  3. "Name": "Usr-Image",
  4. "Id": "img-23jkhds",
  5. "Description": "Image Description",
  6. "EcsImageId": "m-32dsf3f",
  7. "OwnerId": "123456",
  8. "Platform": "Linux",
  9. "Type": "Self"
  10. }

Response description

The attributes are described in ImageInfo.

Error codes

Error code Error message Status code Meaning
InvalidResource.NotFound Specified resource is not found. 404 The user requested resource does not exist.