Querying a Specified API Version
Description
Query a specified API version.
Constraints
None
API Calling
For details, see Calling APIs.
URI
GET /{api_version}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
api_version |
Yes |
String |
API version. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). The value can be application/json or charset=utf-8 application/json. Default value: 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. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
version |
VersionDetail object |
List of specified versions. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Version ID. |
links |
Link object |
API URL. |
version |
String |
Maximum microversion. If microversions are not supported, the value is empty. |
status |
String |
Version status. The value can be:
|
updated |
String |
Version release time in UTC. For example, the release time of v1 is 2014-06-28T12:20:21Z. |
min_version |
String |
Minimum microversion. If microversions are not supported, the value is empty. |
Example Request
GET https://{endpoint}/{api_version}
Example Response
Status code: 200
Query succeeded.
{ "version" : { "id" : "v2", "links" : { "href" : "https://swr-api.xxxx.myhuaweicloud.com/v2/", "rel" : "self" }, "min_version" : "2.0", "status" : "CURRENT", "updated" : "2017-12-09T00:00:00Z", "version" : "2.26" } }
Status Codes
Status Code |
Description |
---|---|
200 |
Query succeeded. |
500 |
Internal error. |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.