You can call this operation to modify the cluster specifications and storage space.
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 |
---|---|---|---|---|
oceanbase:ModifyInstanceSpec | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the OceanBase cluster. | ob3h8ytroxxxxx |
InstanceClass | string | No | The specifications of the cluster. You can specify one of the following four plans:
| 14C70GB |
DiskSize | long | No | The size of the storage space, in GB. The required storage space varies based on the cluster specifications:
| 200 |
DryRun | boolean | No | Specifies whether to perform only a dry run for the request. Default value: false. Valid values:
| false |
DiskType | string | No | Disk type. | cloud_essd_pl1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C",
"Data": {
"OrderId": "213290*********",
"DryRunResult": false
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | Instance.Order.CreateFailed | Instance.Order.CreateFailed |
400 | InstanceDataSize.Invalid | InstanceDataSize.Invalid |
400 | InstanceClassSpecification.Invalid | InstanceClassSpecification.Invalid |
400 | InstanceOrder.NotAvailable | InstanceOrder.NotAvailable |
400 | InstanceNodeNum.Invalid | InstanceNodeNum.Invalid |
400 | InstanceLogSize.Invalid | InstanceLogSize.Invalid |
400 | Instance.ExpandLogDisk.Unsupport | Instance.ExpandLogDisk.Unsupport |
400 | InstanceStatus.Invalid | InstanceStatus.Invalid |
400 | InstanceName.ModifyFailed | InstanceName.ModifyFailed |
400 | InstanceClass.InvalidValue | InstanceClass.InvalidValue |
400 | InstanceType.Unsupport | InstanceType.Unsupport |
400 | ZoneList.Unsupport | ZoneList.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 |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-06-06 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-12-26 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-12-07 | The Error code has changed | View Change Details |
2023-10-30 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-07-04 | The Error code has changed | View Change Details |
2023-05-09 | The Error code has changed | View Change Details |
2023-03-20 | The Error code has changed | View Change Details |