Updates the version of an instance.
Operation description
Permissions
A RAM user must be granted the required permissions before the RAM user calls the UpgradeInstanceVersion operation. For information about how to grant permissions, see RAM policies.
API | Action | Resource |
---|---|---|
UpgradeInstanceVersion | UpdateInstance | acs:alikafka:::{instanceId} |
QPS limits
You can send a maximum of two queries per second (QPS).
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
alikafka:UpdateInstance | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the instance. | alikafka_post-cn-v0h1fgs2**** |
TargetVersion | string | Yes | The major version to be upgraded to. Valid values:
If you set this parameter to the current major version, the system upgrades the instance to the latest minor version. | 0.10.2 |
RegionId | string | Yes | The ID of the region where the instance resides. | cn-hangzhou |
Description of the TargetVersion parameter
Major version before the upgrade | Minor version before the upgrade | Major version to be upgraded to | Major version after the upgrade | Minor version after the upgrade |
---|---|---|---|---|
0.10.2 | Not the latest minor version | 0.10.2 | 0.10.2 | The latest minor version |
0.10.2 | Not the latest minor version | 2.2.0 | 2.2.0 | The latest minor version |
0.10.2 | The latest minor version | 2.2.0 | 2.2.0 | The latest minor version |
2.2.0 | Not the latest minor version | 2.2.0 | 2.2.0 | The latest minor version |
For more information about how to upgrade the minor version of an instance, see Upgrade the instance version.
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 200,
"Message": "operation success.",
"RequestId": "ABA4A7FD-E10F-45C7-9774-A5236015***",
"Success": true
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | MissingParameter | The %s parameter is required. | - |
400 | InvalidParameter | The %s parameter is invalid. | - |
400 | Instance.StatusNotRunning | The instance is not running and cannot operate this function. Please try again later. | The instance is not running and cannot operate this function. Please try again later. |
400 | Instance.UpgradeService.version | Upgrade version failed, please try again later. | Upgrade version failed, please try again later. |
400 | AsyncTask.TypeAlreadyExist | The task already exists. | The task already exists. |
400 | AsyncTask.ExecuteTimeNotSupport | The task cannot be modified because it is close to its execution time. Please adjust and try again. | The task cannot be modified because it is close to its execution time. Please adjust and try again. |
404 | Instance.NotFound | The instance does not exist. Please verify the entry and try again. | The instance does not exist. Please verify the entry and try again. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2024-03-20 | The Error code has changed | see changesets | ||||||
|