文档首页> 云硬盘 EVS> API参考> Cinder API> API版本查询> 查询接口版本信息列表
更新时间:2024-01-02 GMT+08:00
分享

查询接口版本信息列表

功能介绍

查询接口版本信息列表。

调用方法

请参见如何调用API

URI

GET /

请求参数

响应参数

状态码: 300

表1 响应Body参数

参数

参数类型

描述

versions

Array of Versions objects

版本信息。

表2 Versions

参数

参数类型

描述

id

String

接口版本的ID

links

Array of Link objects

接口版本信息的URI描述信息

media-types

Array of MediaTypes objects

接口版本的请求消息类型信息

min_version

String

接口版本的最小版本号

status

String

接口版本的状态

updated

String

接口版本更新时间

version

String

接口版本的版本号信息

表4 MediaTypes

参数

参数类型

描述

base

String

文本类型

type

String

返回类型

状态码: 400

表5 响应Body参数

参数

参数类型

描述

error

Error object

出现错误时,返回的错误信息。

表6 Error

参数

参数类型

描述

code

String

出现错误时,返回的错误码。

错误码和其对应的含义请参考错误码说明

message

String

出现错误时,返回的错误消息。

请求示例

GET https://{endpoint}/

https://{endpoint}/

响应示例

状态码: 300

版本号详情列表。

{
  "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/v1"
    } ],
    "id" : "v1.0",
    "updated" : "2014-06-28T12:20:21Z",
    "version" : "",
    "status" : "SUPPORTED"
  }, {
    "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"
  }, {
    "min_version" : "3.0",
    "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/v3"
    } ],
    "id" : "v3.0",
    "updated" : "2016-02-08T12:20:21Z",
    "version" : "3.0",
    "status" : "CURRENT"
  } ]
}

状态码: 400

Bad Request

{
  "error" : {
    "code" : "string",
    "message" : "string"
  }
}

状态码

状态码

描述

300

版本号详情列表。

400

Bad Request

错误码

请参见错误码

分享:

    相关文档

    相关产品