forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
14 KiB
14 KiB
Querying a Specified API Version Information (Compatible with OpenStack)
Function
This API is used to query the specified API version.
- Before calling an API, you need to understand the API in Authentication.
- Before calling this API, obtain the required region and endpoint.
Request
None
Response
- Normal response
Table 1 Parameter description Name
Type
Description
versions
Object
Indicates the list of detailed API version information.
For details, see Table 2.
version
Object
Indicates the list of detailed API version information.
For details, see Table 2.
Table 2 versions field data structure description Name
Type
Description
id
String
Indicates the API version.
links
Array
Indicates the API link information.
For details, see Table 3.
status
String
Indicates the version status.
updated
String
Indicates the version update time.
The format is yyyy-mm-dd Thh:mm:ssZ.
T is the separator between the calendar and the hourly notation of time. Z indicates the UTC.
- Example normal response
{ "version": { "id": "v1.0", "links": [{ "href": "", "rel": "self" }], "status": "CURRENT", "updated": "2017-03-23T17:34:02Z" }, "versions": { "id": "v1.0", "links": [{ "href": "", "rel": "self" }], "status": "CURRENT", "updated": "2017-03-23T17:34:02Z" } }
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.
Parent topic: Obtaining an API Version