• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Glance
  5. Image (Native OpenStack APIs)
  6. Querying API Versions (Native OpenStack API)

Querying API Versions (Native OpenStack API)

Function

This API is used to query API versions, such as version compatibility and domain name information of APIs.

URI

URI format

GET /

Request

  • Example request
    GET https://{Endpoint}/

Response

  • Parameter description

    Parameter

    Type

    Description

    versions

    List<VersionInfo>

    Specifies the version.

    For details, see Table 1.

    Table 1 VersionInfo parameter description

    Parameter

    Type

    Description

    status

    String

    Specifies the API status.

    id

    String

    Specifies the API ID.

    links

    List<Dict>

    Specifies the description.

    For details, see Table 2.

    Table 2 Dict response parameter description

    Parameter

    Type

    Description

    href

    String

    Specifies the domain name.

    rel

    String

    Specifies the domain name description.

  • Example response
    STATUS CODE 300
    {
        "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": "DEPRECATED",
                "id": "v1.1",
                "links": [
                    {
                        "href": "https://image.az1.dc1.domainname.com/v1/",
                        "rel": "self"
                    }
                ]
            },
            {
                "status": "DEPRECATED",
                "id": "v1.0",
                "links": [
                    {
                        "href": "https://image.az1.dc1.domainname.com/v1/",
                        "rel": "self"
                    }
                ]
            }
        ]
    }

Error Codes

N/A