Querying Database Version Information
Function
This API is used to obtain database version information about a specified type of a DB instance.
URI
Request Parameters
| Name | Type | IN | Mandatory | Description |
|---|---|---|---|---|
| x-auth-token | string | header | Yes | User token obtained from IAM. For details, see Authentication. |
| project_id | string | path | Yes | Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID. |
| datastore_name | string | path | Yes | Specifies the database type. The value is DDS-Community. |
Response Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| versions | Array of strings | Yes | DB version. Versions 5.0, 4.4, 4.2, 4.0, and 3.4 are supported. The value can be 5.0, 4.4, 4.2, 4.0, or 3.4. |
Example Requests
None
Example Responses
{
"versions": [
"3.4",
"4.0",
"4.2",
"4.4",
"5.0"
]
} Status Code
For more information, see Status Code.
Error Code
For more information, see Error Code.