Query a specific API version of SWR.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). The value can be application/json or charset=utf-8 application/json. The default value is application/json. |
X-Auth-Token |
Yes |
String |
User token. The token can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
GET https://{Endpoint}/v2
Parameter |
Type |
Description |
---|---|---|
version |
A list of objects related to the version. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Version ID (version number), for example, v2. |
links |
API URL. |
|
version |
String |
If the APIs of this version support microversions, set this parameter to the supported maximum microversion. If the microversion is not supported, leave this parameter blank. |
status |
String |
Version status. The options are as follows:
|
updated |
String |
Version release time, which must be the UTC time. For example, the release time of v2 is 2018-06-28T12:20:21Z. |
min_version |
String |
If APIs of this version support microversions, set this parameter to the supported minimum microversion. If the microversion is not supported, leave this parameter blank. |
{ "version": { "id": "v2", "links": { "href": "https://xxx", "rel": "self" } "min_version": "2.0", "status": "CURRENT", "updated": "2017-12-09T00:00:00Z", "version": "2.26" } }
Status Code |
Description |
---|---|
200 |
Request successful. |
500 |
Failed to complete the request because of an internal service error. |
For details, see Error Codes.