You can call this operation to modify the number of nodes in a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oceanbase:ModifyInstanceNodeNum |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the OceanBase cluster. |
ob317v4uif**** |
| NodeNum |
string |
Yes |
The number of nodes in the cluster. If the cluster is deployed in n-n-n mode, the number of nodes in the cluster equals n × 3. |
6 |
| DryRun |
boolean |
No |
Specifies whether to perform only a dry run for the request. Default value: false. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The return result of the request. |
||
| RequestId |
string |
The ID of the request. |
EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C |
| Data |
object |
The return result of the request. |
|
| OrderId |
string |
The ID of the order. |
21329031xxxxxxxx |
| DryRunResult |
boolean |
The result of the dry-run request.
|
false |
Examples
Success response
JSON format
{
"RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C",
"Data": {
"OrderId": "21329031xxxxxxxx",
"DryRunResult": false
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Instance.Order.CreateFailed | Instance.Order.CreateFailed | |
| 400 | InstanceDataSize.Invalid | InstanceDataSize.Invalid | |
| 400 | InstanceClassSpecification.Invalid | InstanceClassSpecification.Invalid | |
| 400 | InstanceLogSize.Invalid | InstanceLogSize.Invalid | |
| 400 | Instance.ExpandLogDisk.Unsupport | Instance.ExpandLogDisk.Unsupport | |
| 400 | InstanceOrder.NotAvailable | InstanceOrder.NotAvailable | |
| 400 | InstanceNodeNum.Invalid | InstanceNodeNum.Invalid | |
| 400 | InstanceStatus.Invalid | InstanceStatus.Invalid | |
| 400 | InstanceName.ModifyFailed | InstanceName.ModifyFailed | |
| 400 | InstanceClass.InvalidValue | InstanceClass.InvalidValue | |
| 400 | InstanceType.Unsupport | InstanceType.Unsupport | |
| 400 | InstanceId.Invalid | InstanceId.Invalid | |
| 400 | InstanceId.Missing | InstanceId.Missing | |
| 400 | Instance.Name.Missing | Instance.Name.Missing | |
| 400 | ListCluster.Fail | ListCluster.Fail | |
| 400 | GetCluster.Fail | GetCluster.Fail | |
| 400 | ListClusterGroup.Fail | ListClusterGroup.Fail | |
| 400 | GetClusterGroup.Fail | GetClusterGroup.Fail | |
| 400 | ListInstance.Fail | ListInstance.Fail | |
| 400 | GetInstance.Fail | GetInstance.Fail | |
| 400 | ListTenant.Fail | ListTenant.Fail | |
| 400 | GetTenant.Fail | GetTenant.Fail | |
| 400 | Instance.ListAliyunInstance.Fail | Instance.ListAliyunInstance.Fail | |
| 400 | Instance.GetAliyunInstance.Fail | Instance.GetAliyunInstance.Fail | |
| 400 | ListZone.Fail | ListZone.Fail | |
| 400 | GetObServer.Fail | GetObServer.Fail | |
| 400 | CreateInstanceParameters.Error | CreateInstanceParameters.Error | |
| 400 | CreateInstance.Fail | CreateInstance.Fail | |
| 400 | StandbyInstance.StillOnline | StandbyInstance.StillOnline | |
| 400 | InstanceServiceName.Missing | InstanceServiceName.Missing | |
| 400 | PrimaryInstanceStatus.Invalid | PrimaryInstanceStatus.Invalid | |
| 400 | StandbyInstanceStatus.Invalid | StandbyInstanceStatus.Invalid | |
| 400 | StandbyInstance.NotSupport | StandbyInstance.NotSupport | |
| 400 | StandbyInstance.Disconnect.NotAllowed | StandbyInstance.Disconnect.NotAllowed | |
| 400 | InstanceDiskSize.Invalid | InstanceDiskSize.Invalid | |
| 400 | CreateInstance.Spec.NotSupport | CreateInstance.Spec.NotSupport | |
| 400 | MissingParameterDiskSize | MissingParameterDiskSize | |
| 400 | CreateInstance.ReplicaMode.InvalidValue | CreateInstance.ReplicaMode.InvalidValue | |
| 400 | CreateInstance.DeployType.InvalidValue | CreateInstance.DeployType.InvalidValue | |
| 400 | AliyunInstance.NotExists | AliyunInstance.NotExists | |
| 500 | Instance.Order.CreateFailed | Instance.Order.CreateFailed |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.