Querying Version Information of an API
Function
This API is used to query version information of a specified API.
Authorization Information
Each account has permissions to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
-
-
-
-
-
-
URI
GET /{version}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
version |
Yes |
String |
API version |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
version |
ApiVersionResponse object |
API version information |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
API version number |
|
links |
Array of Links objects |
API link information
NOTE:
If the version is v3, the value is []. |
|
status |
String |
Version status. CURRENT indicates the version is recommended. |
|
version |
String |
Subversion information of the API version |
|
min_version |
String |
Minimum API version number |
|
updated |
String |
Version update time The format is yyyy-mm-dd Thh:mm:ssZ. T is the separator between the calendar and the hourly notation of time. Z indicates the UTC. |
Example Requests
GET https://gaussdb-nosql.ap-southeast-1.myhuaweicloud.com/v3
Example Responses
Status code: 200
Successful response
{
"version" : {
"id" : "v3",
"links" : [ ],
"status" : "CURRENT",
"version" : "",
"min_version" : "",
"updated" : "2019-10-30T17:34:02Z"
}
}
Status Codes
For details, see Status Codes.
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