问题

创建虚拟机添加私网问题。
用api怎么去填写这个参数能够一次添加两个私网?

解决方案

将主机加入到私有网络。

警告 一台主机最多只能加入一个受管网络 ( 包括基础网络vxnet-0 )

Request Parameters

Parameter name Type Description Required vxnet String 私有网络 ID Yes instances.n String 加入到网络的主机 ID Yes zone String 区域 ID,注意要小写 Yes

公共参数

Response Elements

Name Type Description action String job_id String ret_code Integer

Example

Example Request:

https://api.qingcloud.com/iaas/?action=JoinVxnet &vxnet=vxnet-q8f2bu7 &instances.1=i-opv1n2brh &instances.2=i-m163jcqw1 &zone=pek1 &COMMON_PARAMS Example Response: { "action":"JoinVxnetResponse", "job_id":"j-pp51vko0", "ret_code":0 }