@@ -359,10 +359,11 @@ async def create_db_instance(
359
359
vpc_id : str ,
360
360
vswitch_id : str ,
361
361
zone_id : str ,
362
+ zone_id_slave1 : str = None ,
363
+ zone_id_slave2 : str = None ,
362
364
security_ip_list : str = "127.0.0.1" ,
363
365
instance_network_type : str = "VPC" ,
364
366
pay_type : str = "Postpaid" ,
365
- instance_charge_type : str = None ,
366
367
system_db_charset : str = None ,
367
368
dbinstance_net_type : str = "Internet" ,
368
369
category : str = "Basic" ,
@@ -385,6 +386,8 @@ async def create_db_instance(
385
386
security_ip_list: IP whitelist, separated by commas. Default: "127.0.0.1".
386
387
instance_network_type: Network type (Classic, VPC). Default: VPC.
387
388
zone_id: Zone ID. Query available zones by `describe_available_zones`.
389
+ zone_id_slave1: Slave Node1 Zone ID. Query available zones by `describe_available_zones`.
390
+ zone_id_slave2: Slave Node2 Zone ID. Query available zones by `describe_available_zones`.
388
391
pay_type: Payment type (Postpaid, Prepaid). Default: Postpaid.
389
392
instance_charge_type: Instance charge type.
390
393
system_db_charset: Character set.
@@ -419,22 +422,24 @@ async def create_db_instance(
419
422
# Add optional parameters
420
423
if zone_id :
421
424
request .zone_id = zone_id
425
+ if zone_id_slave1 :
426
+ request .zone_id_slave_1 = zone_id_slave1
427
+ if zone_id_slave2 :
428
+ request .zone_id_slave_2 = zone_id_slave2
422
429
if pay_type :
423
430
request .pay_type = pay_type
424
- if instance_charge_type :
425
- request .instance_charge_type = instance_charge_type
426
431
if system_db_charset :
427
- request .system_db_charset = system_db_charset
432
+ request .system_dbcharset = system_db_charset
428
433
if dbinstance_net_type :
429
434
request .dbinstance_net_type = dbinstance_net_type
430
435
if category :
431
436
request .category = category
432
437
if dbinstance_storage_type :
433
438
request .dbinstance_storage_type = dbinstance_storage_type
434
439
if vpc_id :
435
- request .vpc_id = vpc_id
440
+ request .vpcid = vpc_id
436
441
if vswitch_id :
437
- request .vswitch_id = vswitch_id
442
+ request .v_switch_id = vswitch_id
438
443
if private_ip_address :
439
444
request .private_ip_address = private_ip_address
440
445
if client_token :
0 commit comments