This API upgrades the version of a Serverless StarRocks instance. Serverless StarRocks defines two version layers: a major version and a minor version. The major version is displayed in the Version field on the cluster product page. The minor version is displayed in the Minor Version field on the cluster product page. You can use this API to perform a minor version update or a major engine version upgrade. You can call the QueryUpgradableVersions API to query the available upgrade versions for the cluster.
Operation description
You can call this API only when the instance is in the Running state.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sr:UpgradeVersion |
update |
*Instance
|
None | None |
Request syntax
POST /webapi/starrocks/upgradeVersion HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
c-b25e21e24388**** |
| TargetVersion |
string |
Yes |
The target version number. |
3.3.2-1.77-1.6.4 |
| Minor |
boolean |
No |
Specifies whether to perform a minor version update. The default value is true.
|
true |
| FastMode |
boolean |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP request status code. |
200 |
| RequestId |
string |
The request ID. |
32A44F0D-BFF6-5664-999A-218BBDE7**** |
| Success |
boolean |
Indicates whether the request was successful. |
false |
| ErrCode |
string |
The error code. |
InvalidParams |
| ErrMessage |
string |
The error message. |
Invalid instance status: [cannot upgrade when instance is not running]. |
| Data |
boolean |
The returned data. |
|
| AccessDeniedDetail |
string |
The details of the access denied error. |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE7****",
"Success": false,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid instance status: [cannot upgrade when instance is not running].",
"Data": true,
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.