CreateDBCluster_云数据库 SelectDB 版_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

警告 按量付费的实例下只可以创建按量付费的集群。包月付费的实例下两种付费类型的集群都可以创建。

流控信息

请求速率为50/1(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
selectdb:CreateDBCluster
Update
全部资源
*

请求参数

字段名称字段详情
DBInstanceIdstring

实例 ID。

示例值:selectdb-cn-7213cjv****参考取值来源:
    CreateDBInstance
    DescribeDBInstances
    ModifyDBCluster
    RestartDBCluster
Enginestring

数据库类型。

示例值:selectdb
EngineVersionstring

数据库版本。

示例值:2.4
ChargeTypestring

集群的付费类型。取值:展开详情

示例值:Prepaid
UsedTimestring

指定预付费集群的购买时长。取值说明:展开详情

示例值:1
Periodstring

指定预付费集群为包年或包月类型。取值说明:展开详情

示例值:Month
DBClusterClassstring

集群规格,取值说明:展开详情

示例值:selectdb.2xlarge参考取值来源:
    DescribeDBInstanceAttribute
RegionIdstring

地域 ID。

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
ZoneIdstring

可用区 ID。

示例值:cn-hangzhou-i
VpcIdstring

VPC ID。

示例值:vpc-bp175iuvg8nxqraf2****
VSwitchIdstring

交换机 ID。

示例值:vsw-bp1gzt31twhlo0sa5****
CacheSizestring

预留缓存大小。

示例值:200
DBClusterDescriptionstring

集群备注。

示例值:testdb

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:F8900A96-67F7-5274-A41B-7722E1ECF8C9
Dataobject

返回数据。

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidDBName.Duplicate
Specified DB name already exists in the This instance.诊断
400
InvalidPayType.Malformed
The specified parameter "chargeType" is not valid.诊断
400
DocumentConvertFailed.ExceedFileSizeLimit
The conversion has been failed, exceed file size limit.诊断
400
Forbidden
User not authorized to operate on the specified resource, or this API does not support RAM.诊断
400
InvalidDBName
The specified database name is not allowed.诊断
400
CreateOrderFailed
Failed to create order.诊断
403
DBClusterNotSupported
The requested operation can not be performed while the cluster is not sale.诊断
403
IncorrectDBInstanceState
Current DB instance state does not support this operation.诊断
403
InstanceEngineType.NotSupport
The instance engine and type does not support operations.诊断
403
InvalidDBInstanceState.NotSupport
The specified instance state does't support this operation.诊断
403
MoneyLessThan100
The Account Monet less Than 100.诊断
403
OperationDenied.DBNameAndAccountPrivilegeCount
The operation is not permitted due to count of database or account privilege.诊断
403
InsufficientResourceCapacity
The resource is out of usage.诊断
404
InvalidDBInstanceId.NotFound
The DBInstanceId provided does not exist in our records.诊断
404
InvalidClusterInstance.NotFound
Specified cluster instance does not exist.诊断
404
DBInstanceLocked
The current instance lock mode does not support this operation.诊断
404
IncorrectVswitchId
The specified parameter VSwitchId is not valid.诊断
404
InvalidApi.NotFound
Specified api is not found, please check your url and method.诊断
404
InvalidDBInstance.NotFound
The specified instance is not found.诊断
404
InvalidDBInstanceClass.NotFound
The specified instance classic does not exist.诊断
404
InvalidRegionId.NotFound
The provided RegionId does not exist in our records.诊断
404
QueryPrice.Failed
The inquiry failed. Contact Alibaba Cloud customer service representatives.诊断

变更历史

变更时间变更内容概要操作
2024-08-12
变更错误码400
2024-07-10
新增错误码400
变更错误码404
2024-06-28
删除请求参数ResourceGroupId
变更返回参数
2023-12-27
删除请求参数StorageSize
变更请求参数DBInstanceId
变更请求参数EngineVersion
变更请求参数ChargeType
变更请求参数DBClusterClass
变更请求参数RegionId
变更请求参数ZoneId
变更请求参数VpcId
变更请求参数VSwitchId
变更请求参数CacheSize
变更请求参数DBClusterDescription

相关示例

2024年08月20日