功能介紹
查詢接口版本信息列表。
URI
GET /
請求參數(shù)
無
響應(yīng)參數(shù)
狀態(tài)碼: 300
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
id |
String |
接口版本的ID |
|
links |
接口版本信息的URI描述信息 |
|
|
media-types |
接口版本的請求消息類型信息 |
|
|
min_version |
String |
接口版本的最小版本號 |
|
status |
String |
接口版本的狀態(tài) |
|
updated |
String |
接口版本更新時間 |
|
version |
String |
接口版本的版本號信息 |
狀態(tài)碼: 400
|
參數(shù) |
參數(shù)類型 |
描述 |
|---|---|---|
|
code |
String |
出現(xiàn)錯誤時,返回的錯誤碼。錯誤碼和其對應(yīng)的含義請參考錯誤碼說明。 |
|
message |
String |
出現(xiàn)錯誤時,返回的錯誤消息。 |
請求示例
GET https://{endpoint}/
https://{endpoint}/
響應(yīng)示例
狀態(tài)碼: 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"
} ]
}
狀態(tài)碼: 400
Bad Request
{
"error" : {
"code" : "string",
"message" : "string"
}
}
狀態(tài)碼
|
狀態(tài)碼 |
描述 |
|---|---|
|
300 |
版本號詳情列表。 |
|
400 |
Bad Request |
錯誤碼
請參見錯誤碼。
