Querying All API Versions¶
Function¶
This API is used to query the API versions.
URI¶
URI format
GET /
Parameter description
None
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. |
Parameter | Mandatory | Type | Description |
---|---|---|---|
href | Yes | String | API URL |
rel | Yes | String | The default value is self. |
Examples¶
The following describes how to query the version information.
Example request
None
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¶
Table 4 lists the normal status code returned by the response.
Status Code | Status | Description |
---|---|---|
200 | OK | Request processed successfully. |
Exception status code. For details, see Status Codes.