Querying All API Versions
Description
Query all API versions.
Constraints
None
API Calling
For details, see Calling APIs.
URI
GET /
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). The value can be application/json;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 the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
versions |
Array of VersionDetail objects |
List of all versions. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Version ID. |
links |
Link object |
API URL. |
version |
String |
If microversions are supported, set this parameter to the maximum microversion supported. Otherwise, leave this parameter empty. |
status |
String |
Version status: CURRENT: The version is the primary version. SUPPORTED: The version is an earlier version, but it is still supported. DEPRECATED: The version is a deprecated version, which may be deleted later. |
updated |
String |
The version release time in UTC. For example, the release time of v1 is 2014-06-28T12:20:21Z. |
min_version |
String |
If microversions are supported, set this parameter to the minimum microversion supported. Otherwise, leave this parameter empty. |
Example Request
GET https://{endpoint}
Example Response
Status code: 200
Query succeeded.
{ "versions" : [ { "id" : "v2", "links" : { "href" : "https://swr-api.xxxx.myhuaweicloud.com/v2/", "rel" : "self" }, "min_version" : "2.0", "status" : "CURRENT", "updated" : "2020-07-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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot