• Elastic Volume Service

evs
  1. Help Center
  2. Elastic Volume Service
  3. API Reference
  4. API Version Query
  5. Querying Information of an API Version

Querying Information of an API Version

Function

This API is used to query information of an API version.

URI

  • URI format

    GET /{api_version}

  • Parameter description

    Parameter

    Type

    Description

    api_version

    String

    Specifies the target API version.

    For details about how to obtain the version, see Querying Information of API Versions.

Response

  • Parameter description

    Parameter

    Type

    Description

    versions

    array

    Specifies the information of the API version.

    min_version

    string

    Specifies the minimum API version.

    media-types

    list<map<string,string>>

    Specifies the request message type of the API version.

    links

    list<map<string,string>>

    Specifies the URI of the API version.

    id

    string

    Specifies the ID of the API version.

    updated

    string

    Specifies the last time when the API version was updated.

    version

    string

    Specifies the subversion of the API version.

    status

    string

    Specifies the API version status.

  • Parameters in the media-types field

    Parameter

    Type

    Description

    type

    string

    Specifies the response type.

    base

    string

    Specifies the text type.

  • Parameters in the links field

    Parameter

    Type

    Description

    rel

    string

    Specifies the domain name description.

    href

    string

    Specifies the domain name.

    type

    string

    Specifies the response type.

  • Example response
    {
        "versions": [
            {
                "min_version": "", 
                "media-types": [
                    {
                        "type": "application/vnd.openstack.volume+json;version=1", 
                        "base": "application/json"
                    }, 
                    {
                        "type": "application/vnd.openstack.volume+xml;version=1", 
                        "base": "application/xml"
                    }
                ], 
                "links": [
                    {
                        "rel": "describedby", 
                        "href": "http://docs.openstack.org/", 
                        "type": "text/html"
                    }, 
                    {
                        "rel": "self", 
                        "href": "https://evs.localdomain.com/v2"
                    }
                ], 
                "id": "v2.0", 
                "updated": "2014-06-28T12:20:21Z", 
                "version": "", 
                "status": "SUPPORTED"
            }
        ]
    }

Returned Values

  • Normal

    200

Error Codes

For details, see Error Codes.