云数据库 TAURUSDB-创建数据库实例:响应示例

时间:2024-12-11 17:00:06

响应示例

状态码: 201

Success.

  • 创建按需实例。

    {
      "instance" : {
        "id" : "5eebbb4c0f9f4a99b42ed1b6334569aain07",
        "name" : "gaussdb-mysql-instance1",
        "status" : "BUILD",
        "region" : "br-iaas-odin1",
        "charge_info" : {
          "charge_mode" : "postPaid"
        },
        "datastore" : {
          "type" : "gaussdb-mysql",
          "version" : "8.0",
          "kernel_version" : "2.0.28.18"
        },
        "mode" : "Cluster",
        "port" : 3306,
        "enterprise_project_id" : 0,
        "flavor_ref" : "gaussdb.mysql.xlarge.arm.4",
        "vpc_id" : "3cedfc54-b105-4652-a4e0-847b11576b58",
        "subnet_id" : "c1cfa53c-65d3-431e-8552-326bf310c7ad",
        "security_group_id" : "fc577a1a-f202-424a-977f-24faec3fdd55",
        "configuration_id" : "43570e0de32e40c5a15f831aa5ce4176pr07",
        "backup_strategy" : {
          "start_time" : "08:00-09:00",
          "keep_days" : 7
        },
        "availability_zone_mode" : "single"
      },
      "job_id" : "dff1d289-4d03-4942-8b9f-463ea07c000d"
    }
  • 创建周期为一个月的包年/包月实例。

    {
      "instance" : {
        "id" : "945419c2208e4a5d828b8dddc00223e1in07",
        "name" : "gaussdb-mysql-instance4",
        "status" : "BUILD",
        "region" : "br-iaas-odin1",
        "charge_info" : {
          "charge_mode" : "prePaid",
          "period_type" : "month",
          "period_num" : 1,
          "is_auto_renew" : false,
          "is_auto_pay" : true
        },
        "volume" : {
          "size" : 10
        },
        "datastore" : {
          "type" : "gaussdb-mysql",
          "version" : "8.0",
          "kernel_version" : "2.0.28.18"
        },
        "mode" : "Cluster",
        "port" : 3306,
        "enterprise_project_id" : 0,
        "flavor_ref" : "gaussdb.mysql.xlarge.arm.4",
        "vpc_id" : "3cedfc54-b105-4652-a4e0-847b11576b58",
        "subnet_id" : "c1cfa53c-65d3-431e-8552-326bf310c7ad",
        "security_group_id" : "fc577a1a-f202-424a-977f-24faec3fdd55",
        "configuration_id" : "43570e0de32e40c5a15f831aa5ce4176pr07",
        "backup_strategy" : {
          "start_time" : "08:00-09:00",
          "keep_days" : 7
        },
        "availability_zone_mode" : "single"
      },
      "order_id" : " CS 2308241236EEXVF"
    }
support.huaweicloud.com/api-gaussdbformysql/CreateGaussMySqlInstance.html