This API is used to query the database version information of a specified DB engine.
GET https://{Endpoint}/v3/{project_id}/datastores/{database_name}
Name |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. |
database_name |
Yes |
Specifies the DB engine. Its value can be any of the following and is case-insensitive:
|
Name |
Type |
Description |
|---|---|---|
dataStores |
Array of objects |
Indicates the list of database versions. For details, see Table 3. |
{
"dataStores": [{
"id": "87620726-6802-46c0-9028-a8785e1f1921",
"name": "8.0"
},{
"id": "87620726-6802-46c0-9028-a8785e1f1922",
"name": "5.7"
}]
}
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.