Changes the specifications of an ApsaraDB for Tair (Redis® OSS-Compatible) database instance.
Operation description
For information about the execution process, impacts, feature limits, and billing of specification changes, see Change instance configurations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:ModifyInstanceSpec |
update |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. You can call DescribeRegions to query available regions. Use this parameter to specify the region of the instance whose specifications you want to change. |
cn-hangzhou |
| InstanceId |
string |
Yes |
The instance ID. You can call DescribeInstances to query the instance ID. |
r-bp1zxszhcgatnx**** |
| InstanceClass |
string |
No |
The new instance type. You can call DescribeAvailableResource to query the instance types available for specification changes in the zone where the instance resides. Note
For more information about instance types, see Instance type navigation. |
redis.master.small.default |
| BusinessInfo |
string |
No |
The activity ID and business information. |
000000001 |
| CouponNo |
string |
No |
The coupon code. Default value: |
youhuiquan_promotion_option_id_for_blank |
| ForceUpgrade |
boolean |
No |
Specifies whether to forcibly change the specifications. Valid values:
|
true |
| EffectiveTime |
string |
No |
The time when the specification change takes effect. Valid values:
|
Immediately |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Valid values:
|
true |
| OrderType |
string |
No |
The type of specification change. This parameter is required when you change the specifications of a subscription instance. Valid values:
Note
Valid values:
|
DOWNGRADE |
| MajorVersion |
string |
No |
The major engine version for upgrading a classic instance. Valid values: 2.8, 4.0, and 5.0. Note
When you upgrade the version, the InstanceClass parameter is required. This indicates that this operation supports version upgrades only when the instance specifications are also changed. To upgrade only the instance version, call ModifyInstanceMajorVersion. |
5.0 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
ETnLKlblzczshOTUbOCz**** |
| SourceBiz |
string |
No |
The source of the request. This parameter is used only for internal maintenance and does not need to be specified. |
SDK |
| ShardCount |
integer |
No |
The number of shards. This parameter is applicable only to cloud-native cluster instances. You can use this parameter to specify a custom number of shards. Note
|
8 |
| ReplicaCount |
integer |
No |
The number of replica nodes in the primary zone. This parameter is applicable only to cloud-native cluster multi-replica instances. You can use this parameter to specify a custom number of replica nodes. Valid values: 1 to 4. Note
For multi-zone instances, you can use this parameter together with the SlaveReplicaCount parameter to specify the number of replica nodes in the primary and secondary zones. The sum of this parameter and the SlaveReplicaCount parameter cannot exceed 4. |
1 |
| SlaveReplicaCount |
integer |
No |
The number of replica nodes in the secondary zone. |
1 |
| ReadOnlyCount |
integer |
No |
The number of read-only nodes in the primary zone. This parameter is applicable only to cloud-native read/write splitting instances.
Note
For multi-zone instances, you can use this parameter together with the SlaveReadOnlyCount parameter to specify the number of read-only nodes in the primary and secondary zones.
|
5 |
| SlaveReadOnlyCount |
integer |
No |
The number of read-only nodes in the secondary zone. |
2 |
| ForceTrans |
boolean |
No |
Specifies whether to enable forced transmission. Valid values:
|
false |
| NodeType |
string |
No |
The node type. Valid values:
Note
For cloud-native instances, select MASTER_SLAVE or STAND_ALONE. For classic instances, select double or single. |
MASTER_SLAVE |
| StorageType |
string |
No |
The storage type. Valid values: essd_pl1, essd_pl2, and essd_pl3. Note
This parameter is required only when InstanceType is set to tair_essd and the instance is a Tair ESSD-based cloud disk instance. |
essd_pl1 |
| Storage |
integer |
No |
The storage capacity of a cloud disk instance. The valid values vary based on the instance type. For more information, see Cloud disk-based instance types. Note
This parameter is required only when InstanceType is set to tair_essd and you are creating a Tair ESSD-based cloud disk instance. For Tair SSD-based cloud disk instances, the storage capacity is a fixed value based on the instance type, and you do not need to specify this parameter. |
60 |
| SecondaryZoneId |
string |
No |
The secondary zone ID. This parameter is required when you change the specifications of a single-zone instance and migrate it to a multi-zone deployment. You can call DescribeZones to query available zones. Note
The value of this parameter must be different from the value of the ZoneId parameter. Do not set this parameter to the ID of a multi-zone. |
cn-hangzhou-h |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| OrderId |
string |
The order ID. |
20722623431**** |
| RequestId |
string |
The request ID. |
0DA1D7EF-C80D-432C-8758-7D225182626B |
Examples
Success response
JSON format
{
"OrderId": "20722623431****",
"RequestId": "0DA1D7EF-C80D-432C-8758-7D225182626B"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | PaymentMethodNotFound | No payment method has been registered on the account. | |
| 400 | HasRenewChangeOrder | This instance has a renewChange order. | |
| 400 | %s | Warn: {%s} are not supported after upgraded. you can set forceUpgrade=true to force upgrade. | |
| 400 | GdcInstanceNotSupport | The gdc custins trans not support. | |
| 400 | AbnormalResourceStatusForRenew | Abnormal resource status for renew. | |
| 400 | MissingRedisShardingUnsupportPerfItem | The metadb is missing redis sharding unsupoort command perf item. | |
| 400 | IllegalParamError | Action or resource must not be null. | |
| 400 | IncorrectTargetMajorVersion | Current target majorversion does not support this operation. | the current operation does not support the specified target major version. make sure that the specified target major version is greater than the current major version of the instance. |
| 400 | IncorrectMinorVersion | Current engine minor version does not support operations. | The operation is not supported by the minor version of the instance. Update the instance to the latest minor version and try again. |
| 400 | DirectTargetLevelNotSupport | The direct custins tranfer target instance level does not support. | |
| 400 | DirectTransPreCheckError | The direct custins trans pre check IsAddReduceNodes error. | |
| 400 | DtsOpendNotSupportTrans | The custins DtsSyncStatus opend does not support trans. | |
| 400 | DirectTransNodeDoubleLevelError | The direct custins tranfer node double target level error. | When adjusting only the number of shards for directly connected instances and global multi-active instances, you need to specify 2 or 0.5 times the original number of shards. |
| 400 | DirectTransUpgradeMajorVersionNotSupport | The direct custins tranfer does not support upgrade major version. | |
| 403 | TargetMemoryLessThanCurrentUsed | The target instance memory size below the current instance used memory. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.