FLEXUSRDS-创建数据库实例:请求示例

时间:2025-01-14 15:40:22

请求示例

请求样例中参数“region”和“availability_zone”的值为示例值。

  • 创建FlexusRDS单机实例。
    POST https://{endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances{"name": "flexusrds-instance","datastore": {"type": "MySQL","version": "5.7"},"flavor_ref": "rds.mysql.y1.large.2","volume": {"type": "CLOUDSSD","size": 100},"region": "aaa","availability_zone": "bbb","port": 3306,"backup_strategy": {"start_time": "08:15-09:15","keep_days": 12},"charge_info": {"charge_mode": "prePaid"},"password": "****","time_zone": "UTC+04:00","tags": [{"key": "key1","value": "value1"},{"key": "key2","value": "value2"}],"is_flexus": true}
  • 创建FlexusRDS主备实例。
    {"name": "flexusrds-instance-ha","datastore": {"type": "MySQL","version": "5.7"},"ha": {"mode": "ha","replication_mode": "semisync"},"flavor_ref": "rds.mysql.y1.xlarge.2.ha","volume": {"type": "CLOUDSSD","size": 100},"region": "aaa","availability_zone": "bbb","port": 3306,"backup_strategy": {"start_time": "08:15-09:15","keep_days": 12},"charge_info": {"charge_mode": "prePaid"},"password": "****",       "tags": [{"key": "key1","value": "value1"},{"key": "key2","value": "value2"}],"is_flexus": true}
support.huaweicloud.com/api-flexusrds/rds_01_0002.html