You can call this operation to create an OceanBase cluster.
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:CreateInstance | create | *Instance acs:oceanbase:{#regionId}:{#accountId}:instance/* |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ChargeType | string | Yes | The billing method of the instance. Valid values:
| PrePay |
Series | string | Yes | The series of the OceanBase cluster. Valid values:
| Normal |
Zones | string | Yes | The ID of the zone to which the instance belongs. | cn-hangzhou-h,cn-hangzhou-i,cn-hangzhou-j |
InstanceClass | string | Yes | The specifications of the cluster.
Enumeration Value:
| 14C70GB |
DiskSize | long | Yes | The size of the storage space,in GB.
| 200 |
Period | long | No | The valid duration of the purchased resources. The unit is specified by the PeriodUnit parameter.
| 1 |
PeriodUnit | string | No | The unit of the valid duration of the purchased resources. | Month |
AutoRenew | boolean | No | Specifies whether to enable automatic renewal.
| true |
AutoRenewPeriod | long | No | The automatic renewal period of the instance. This parameter is required when the AutoRenew parameter is set to true. Valid values:
| 2 |
ResourceGroupId | string | No | The ID of the resource group to which the instance belongs. | rg-bp67acfmxazb4p**** |
InstanceName | string | No | The name of the OceanBase cluster. | amap_aos_tx_ob |
ObVersion | string | No | OceanBase Server version number. | 2.2.77 |
DiskType | string | No | The type of the storage disk where the cluster is deployed. This parameter takes effect only for Standard Cluster Edition (Cloud Disk). Valid values:
| cloud_essd_pl1 |
DryRun | boolean | No | Specifies whether to perform only a dry run for the request. Default value: false. Valid values:
| false |
ReplicaMode | string | No | The number of full-featured replicas.
| 3F |
IsolationOptimization | string | No | Specifies whether to enable the control group feature. Valid values:
| true |
PrimaryInstance | string | No | Primary instance ID. | ob3h8ytroxxxxx |
PrimaryRegion | string | No | Primary instance region. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Data": {
"InstanceId": "i-bp67acfmxazb4p****",
"OrderId": "1234567890",
"ResourceGroupId": "rg-***************",
"DryRunResult": true
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | Instance.Order.CreateFailed | Instance.Order.CreateFailed |
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 | ListObServer.Fail | ListObServer.Fail |
400 | GetObServer.Fail | GetObServer.Fail |
400 | CreateInstanceParameters.Error | CreateInstanceParameters.Error |
400 | CreateInstance.Fail | CreateInstance.Fail |
400 | InstanceClassSpecification.Invalid | InstanceClassSpecification.Invalid |
400 | InstanceOrder.NotAvailable | InstanceOrder.NotAvailable |
400 | InstanceNodeNum.Invalid | InstanceNodeNum.Invalid |
400 | InstanceLogSize.Invalid | InstanceLogSize.Invalid |
400 | Instance.ExpandLogDisk.NotSupport | Instance.ExpandLogDisk.NotSupport |
400 | InstanceStatus.Invalid | InstanceStatus.Invalid |
400 | InstanceDataSize.Invalid | InstanceDataSize.Invalid |
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 | ConfigError | ConfigError |
500 | UnknownError | UnknownError |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-15 | The Error code has changed | View Change Details |
2024-07-16 | The Error code has changed | View Change Details |
2024-06-06 | The Error code has changed | View Change Details |
2024-04-15 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-02-02 | The Error code 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-11-20 | 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-08-22 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-07-13 | The Error code has changed | View Change Details |
2023-07-04 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-05-09 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-04-11 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-04-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-03-08 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2022-09-28 | The request parameters of the API has changed | View Change Details |
2022-02-10 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |