Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
16 KiB
Querying All API Versions
Function
This API is used to query the API versions.
Requests
None
Responses
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
versions |
Yes |
Array of objects |
Version object list. For details, see Table 2. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
Yes |
String |
Version number, for example, v1.0 |
links |
Yes |
Array of objects |
JSON object. For details, see Table 3. |
version |
Yes |
String |
If the APIs of this version support microversions, the supported maximum microversion is returned. If the microversion is not supported, empty character string is returned. |
status |
Yes |
String |
Version status. Valid values are as follows:
|
updated |
Yes |
String |
Version release time, which must be UTC time. For example, the release time of v1 is 2014-06-28T12:20:21Z. |
min_version |
No |
String |
If the APIs of this version support microversions, the supported minimum microversion is returned. If the microversion is not supported, empty character string is returned. |
Examples
The following describes how to query the version information.
- Example request
- Example response
{ "versions": [ { "id":"v1.0", "links": [ { "href":"https://kms.eu-de.otc.t-systems.com/v1.0/", "rel":"self" } ], "min_version":"", "status":"CURRENT", "version":"", "updated":"2018-09-05T08:18:05Z" } ] }
or
{ "error": { "error_code": "KMS.XXXX", "error_msg": "XXX" } }
Status Codes
Exception status code. For details, see Status Codes.