Querying an API Version (Native OpenStack API)
Function
This API is used to query a specified API version, such as version compatibility and domain name information of an API.
Request
Request parameters
None
Example Request
Querying an API version
GET https://{Endpoint}/v2.0
Response
- Response parameters
Parameter
Type
Description
versions
Array of objects
Specifies the version.
For details, see Table 2.
Table 2 Data structure description of the versions field Parameter
Type
Description
status
String
Specifies the API status.
id
String
Specifies the API ID.
links
Array of objects
Specifies the description.
For details, see Table 3.
- Example response
STATUS CODE 300
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{ "versions": [ { "status": "SUPPORTED", "id": "v2.0", "links": [ { "href": "https://image.az1.dc1.domainname.com/v2/", "rel": "self" } ] } ] }
Returned Values
- Normal
- Abnormal
Returned Values
Description
400 Bad Request
Request error.
401 Unauthorized
Authentication failed.
403 Forbidden
You do not have the rights to perform the operation.
404 Not Found
The requested resource was not found.
500 Internal Server Error
Internal service error.
503 Service Unavailable
The service is unavailable.
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