功能介绍
查询接口版本信息列表。
URI
GET /
请求参数
无
响应参数
状态码: 300
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
接口版本的ID |
links |
接口版本信息的URI描述信息 |
|
media-types |
接口版本的请求消息类型信息 |
|
min_version |
String |
接口版本的最小版本号 |
status |
String |
接口版本的状态 |
updated |
String |
接口版本更新时间 |
version |
String |
接口版本的版本号信息 |
状态码: 400
请求示例
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 |
错误码
请参见错误码。