分布式数据库中间件 DDM-创建DDM逻辑库:请求示例

时间:2024-07-02 11:38:58

请求示例

创建逻辑库时不新建DDM账号,关联已有账号。

POST https://{endpoint}/v1/{project_id}/instances/{instance_id}/databases

{
  "databases" : [ {
    "name" : "mytestdb",
    "shard_mode" : "cluster",
    "shard_number" : 8,
    "shard_unit" : 8,
    "used_rds" : [ {
      "id" : "f296c394f13f48449d715bf99af07e59in01",
      "adminUser" : "root",
      "adminPassword" : "xxxxxx"
    } ]
  } ]
}
support.huaweicloud.com/api-ddm/ddm_16_0001.html