Queries the version of a specific PolarDB-X 1.0 instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDrdsInstanceVersion |
The operation that you want to perform. Set the value to DescribeDrdsInstanceVersion. |
DrdsInstanceId | String | Yes | drdshbga1138**** |
The ID of the PolarDB-X 1.0 instance whose version you want to query. |
RegionId | String | No | cn-hangzhou |
The ID of the region. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Success | Boolean | true |
Indicates whether the request is successful. |
RequestId | String | 2F7F8080-9132-4279-85D0-B7E5C4305162 |
The ID of the request. |
Data | Object |
The details about the instance version. |
|
NewestVersion | String | 5.4.12-16315258 |
The latest version of the instance. |
InstanceVersion | String | 5.3.12-15682777 |
The current version of the instance. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeDrdsInstanceVersion
&DrdsInstanceId=drdshbga1138****
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDrdsInstanceVersionResponse>
<Success>true</Success>
<RequestId>2F7F8080-9132-4279-85D0-B7E5C4305162</RequestId>
<Data>
<NewestVersion>5.4.12-16315258</NewestVersion>
<InstanceVersion>5.3.12-15682777</InstanceVersion>
</Data>
</DescribeDrdsInstanceVersionResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Success" : true,
"RequestId" : "2F7F8080-9132-4279-85D0-B7E5C4305162",
"Data" : {
"NewestVersion" : "5.4.12-16315258",
"InstanceVersion" : "5.3.12-15682777"
}
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | ActionUnauthorized | The specified action is not available for you | The error message returned because you are not authorized to perform this operation. Grant the required permissions to the RAM user first. |
500 | InternalError | The request processing has failed due to some unknown error. | The error message returned because an internal error has occurred and the request failed. |
For a list of error codes, visit the API Error Center.