• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Glance
  5. Images
  6. List API Versions

List API Versions

Function Description

This interface is used to query the API version information.

Interface Format

Method

URI

Description

GET

/

Queries the API version list.

Restrictions

N/A

Expanded Interface

N/A

Request Parameter

N/A

Response Parameter

Versions parameter list

Parameter

Type

Mandatory

Description

status

String

Yes

Specifies the status of an interface.

id

String

No

Specifies the interface ID.

links

List(dict)

Yes

Specifies the description information.

Request Example

GET /

Response Example

{
    "versions": [
        {
            "status": "CURRENT",
            "id": "v2.2",
            "links": [
                {
                    "href": "https://image.az1.dc1.domainname.com/v2/",
                    "rel": "self"
                }
            ]
        },
        {
            "status": "SUPPORTED",
            "id": "v2.1",
            "links": [
                {
                    "href": "https://image.az1.dc1.domainname.com/v2/",
                    "rel": "self"
                }
            ]
        },
        {
            "status": "SUPPORTED",
            "id": "v2.0",
            "links": [
                {
                    "href": "https://image.az1.dc1.domainname.com/v2/",
                    "rel": "self"
                }
          ]
        },
        {
            "status": "CURRENT",
            "id": "v1.1",
            "links": [
                {
                    "href": "https://image.az1.dc1.domainname.com/v1/",
                    "rel": "self"
                }
            ]
        },
        {
            "status": "SUPPORTED",
            "id": "v1.0",
            "links": [
                {
                    "href": "https://image.az1.dc1.domainname.com/v1/",
                    "rel": "self"
                }
            ]
        }
    ]
}

Error Code

N/A