@@ -74,6 +74,7 @@ def run_instances(self, image_id,
7474 login_passwd = None ,
7575 need_newsid = False ,
7676 volumes = None ,
77+ cpu_model = None ,
7778 need_userdata = 0 ,
7879 userdata_type = None ,
7980 userdata_value = None ,
@@ -104,6 +105,7 @@ def run_instances(self, image_id,
104105 for Linux instance.
105106 @param volumes: the IDs of volumes you want to attach to newly created instance,
106107 parameter only affected when count = 1.
108+ @param cpu_model: the type of cpu architecture.
107109 @param need_userdata: Whether to enable userdata feature. 1 for enable, 0 for disable.
108110 @param userdata_type: valid type is either 'plain' or 'tar'
109111 @param userdata_value: base64 encoded string for type 'plain'; attachment id for type 'tar'
@@ -122,7 +124,7 @@ def run_instances(self, image_id,
122124 'volumes' , 'need_userdata' , 'userdata_type' ,
123125 'userdata_value' , 'userdata_path' , 'instance_class' ,
124126 'hostname' , 'target_user' , 'nic_mqueue' , 'cpu_max' , 'mem_max' ,
125- 'os_disk_size' ,
127+ 'os_disk_size' , 'cpu_model'
126128 ]
127129 body = filter_out_none (locals (), valid_keys )
128130 if not self .conn .req_checker .check_params (body ,
0 commit comments