forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
6.1 KiB
6.1 KiB
Querying Database Version Information
Function
This API is used to obtain database version information about a specified type of a DB instance.
URI
- URI format
GET https://{Endpoint}/v3/{project_id}/datastores/{datastore_name}/versions
- Parameter description
Table 1 Parameter description Name
Mandatory
Description
project_id
Yes
Specifies the project ID of a tenant in a region.
datastore_name
Yes
Specifies the database type. The value is DDS-Community.
Requests
Responses
- Parameter description
Table 2 Parameter description Name
Type
Description
versions
Array of strings
Indicates the database version. Currently, versions 4.0, 4.2, 4.4 and 5.0 are supported.
- Response example
{ "versions": [ "4.0", "4.2", "4.4", "5.0" ] }
Error Code
For more information, see Error Code.
Parent topic: APIs V3.0 (Recommended)