forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
8.3 KiB
8.3 KiB
Querying Version Information About a DB Engine
Function
This API is used to query the DB version information of a specified DB engine.
- Learn how to authorize and authenticate this API before using it.
- Before calling this API, 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 version list.
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.
Parent topic: API