• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (API)
  4. Preparing Resources
  5. Image Information

Image Information

Different images are required for HANA ECSs used in different scenarios. When you manage a HANA ECS based on API calling, the image ID is required.

You can query the required image ID on the ECS console or using APIs before provisioning an SAP HANA service node.

NOTE:

To query the image ID using APIs, you must obtain the image name.

For detailed API information, see Native OpenStack API Reference.

API Format

Method

URI

Description

GET

/v2/images

Obtains the image list.

Request Parameters

Parameter

Type

Mandatory or Not

Description

Name

String

No

Image name, which contains fewer than 255 characters

You can specify the image name to query the image information.

Response Parameters

Parameter

Type

Mandatory or Not

Description

Images

List (Image)

Yes

Image format

For details, see Image Management Service API Reference.

Request Example

NOTE:

HANA_SUSE_11.4 is used as an example. You need to change it to the image name provided in the system when calling the API.

GET /v2/images?name=HANA_SUSE_11.4

Response Example

{
"images": [
   {
"status": "queued",
"name": "HANA_SUSE_11.4",
"tags": [
"hana",
"image"
],
"container_format": "bare",
"created_at": "2014-12-16T01:22:05Z",
"disk_format": "qcow2",
"updated_at": "2014-12-16T01:22:05Z",
"visibility": "private",
"self": "/v2/images/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90",
"min_disk": 1,
"protected": false,
"id": "4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90",
"file": "/v2/images/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90/file",
"owner": "aed2c611711548a4a9c16fb8fe166af4",
"min_ram": 1024,
"schema": "/v2/schemas/image"
   },
   {
"status": "active",
"name": "cirros",
"tags": [
"hana"
],
"container_format": "bare",
"created_at": "2014-12-11T03:53:43Z",
"size": 13147648,
"disk_format": "qcow2",
"updated_at": "2014-12-15T20:02:12Z",
"visibility": "private",
"self": "/v2/images/5155a22a-834e-4ffe-a95d-ed9665a8ed76",
"min_disk": 0,
"protected": false,
"id": "5155a22a-834e-4ffe-a95d-ed9665a8ed76",
"file": "/v2/images/5155a22a-834e-4ffe-a95d-ed9665a8ed76/file",
"checksum": "d972013792949d0d3ba628fbe8685bce",
"owner": "aed2c611711548a4a9c16fb8fe166af4",
"direct_url": "file:///var/lib/glance/images/5155a22a-834e-4ffe-a95d-ed9665a8ed76",
"min_ram": 0,
"schema": "/v2/schemas/image"
   }
],
"schema": "/v2/schemas/images",
"first": "/v2/images"
}

As shown in the preceding example, you can query the image ID using the image name.