Querying Version Information About a DB Engine
Function
This API is used to query the version information of a specified DB engine. Before calling this API:
- Learn how to authorize and authenticate it.
 - Obtain the required region and endpoint.
 
URI
- URI format
    
GET https://{endpoint}/mysql/v3/{project_id}/datastores/{database_name}
 - Example
    
GET https://{endpoint}/mysql/v3/619d3e78f61b4be68bc5aa0b59edcf7b/datastores/gaussdb-mysql
 - Parameter description 
    
Table 1 Parameter description Name
Mandatory
Description
project_id
Yes
Project ID of a tenant in a region.
To obtain this value, see Obtaining a Project ID.
database_name
Yes
DB engine. The following DB engine is supported (case-insensitive): gaussdb-mysql
 
Request
None
Response
- Normal response 
    
Table 2 Parameter description Name
Type
Description
datastores
Array of objects
DB versions.
For details, see Table 3.
 - Example normal response
    
{ "datastores": [{ "id": "87620726-6802-46c0-9028-a8785e1f1921", "name": "8.0" }] } 
Status Code
For details, see Status Codes.
Error Code
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.