KDDIクラウドプラットフォームサービス ナレッジサイト

  • HOME
  • 提供API一覧
  • deployValueVirtualMachine

deployValueVirtualMachine

処理概要

Value仮想サーバの作成

 

注意事項

・serviceofferingidはlistServiceOfferingsの応答結果より指定ください。
・zoneidはlistZonesの結果より指定ください。

 

リクエスト

・リクエストパラメータ

name Description Required
serviceofferingid the ID of the service offering   for the virtual machine TRUE
templateid the ID of the template for the   virtual machine TRUE
zoneid availability zone for the   virtual machine TRUE
hypervisor the hypervisor on which to   deploy the virtual machine TRUE
name the virtual machine name TRUE
iptonetworklist ip to network mapping. Can’t be   specified with networkIds parameter. Example:   iptonetworklist[0].ip=10.10.10.11&iptonetworklist[0].ipv6=fc00:1234:5678::abcd&iptonetworklist[0].networkid=uuid   – requests to use ip 10.10.10.11 in network id=uuid true ( only index [0] )
diskofferingid the ID of the disk offering for   the virtual machine. If the template is of ISO format, the diskOfferingId is   for the root disk volume. Otherwise this parameter is used to indicate the   offering for the data disk volume. If the templateId parameter passed is from   a Template object, the diskOfferingId refers to a DATA Disk Volume created.   If the templateId parameter passed is from an ISO object, the diskOfferingId   refers to a ROOT Disk Volume created. FALSE
size the arbitrary size for the   DATADISK volume. Mutually exclusive with diskOfferingId FALSE
 

 

・リクエストサンプル

$ ./testapi-kenshou02-east.sh command=deployValueVirtualMachine name=testapi serviceofferingid=ab00a8a4-482f-4479-81df-b69f6d19db74 zoneid=7d4b9647-356d-49a8-8e1a-28862b9c9082 hypervisor=VMware templateid=a42a3b6d-95db-417b-84a3-c1208dfcd509 iptonetworklist[0].networkid=dfab0cf8-c56f-437c-9816-14e47d127235 iptonetworklist[1].networkid=19a2e758-163f-40a8-b977-1932dcbe2bc3 iptonetworklist[1].ip=192.168.4.32

 

 

レスポンス

・レスポンスボディ

Response Name
Description
jobid the ID of the asychronous job

 

・レスポンスサンプル

【コマンド実行結果】
<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
<deployvaluevirtualmachineresponse cloud-stack-version=”4.3.0.2″>
<jobid>d392cdd2-138c-4cf5-9097-e40da39559fe</jobid>
</deployvaluevirtualmachineresponse>

 

【queryAsyncJobResultでの確認結果】
<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
<queryexasyncjobresultresponse cloud-stack-version=”4.3.0.2″>
<accountid>d344caf5-24dc-4194-ac5f-2d78d5e38039</accountid>
<cmd>org.apache.cloudstack.api.command.user.vm.DeployVMCmd</cmd>
<created>2016-09-25T20:58:59+0900</created>
<jobid>d392cdd2-138c-4cf5-9097-e40da39559fe</jobid>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>0</jobresultcode>
<jobresulttype>object</jobresulttype>
<jobstatus>1</jobstatus>
<userid>0212ea46-0529-4250-9e3e-bcb03c114002</userid>
<jobresult>
<virtualmachine>
<account>xxxx</account>
<cpunumber>1</cpunumber>
<cpuspeed>2589</cpuspeed>
<created>2016-09-25T20:58:58+09:00</created>
<displayname>v-testapi-MXXXXXXXX</displayname>
<domain>MXXXXXXXX</domain>
<domainid>57edb9da-0279-45f0-842a-d768c4ed0d47</domainid>
<guestosid>9e4fd456-c234-11e4-a399-2c600c06bb24</guestosid>
<haenable>true</haenable>
<hypervisor>VMware</hypervisor>
<id>cf0aa735-38be-4c50-a3d0-d713cd16a7e0</id>
<isdynamicallyscalable>true</isdynamicallyscalable>
<jobid>d392cdd2-138c-4cf5-9097-e40da39559fe</jobid>
<jobstatus>0</jobstatus>
<memory>4096</memory>
<name>v-testapi-M00000002</name>
<networkkbsread>0</networkkbsread>
<networkkbswrite>0</networkkbswrite>
<nic>
<broadcasturi>vlan://2860</broadcasturi>
<gateway>10.1.1.1</gateway>
<id>a8e552a6-0ddc-4104-9ea9-78e963d0407a</id>
<ipaddress>10.1.1.149</ipaddress>
<isdefault>true</isdefault>
<isolationuri>vlan://2860</isolationuri>
<macaddress>02:00:46:ef:01:64</macaddress>
<netmask>255.255.255.0</netmask>
<networkid>dfab0cf8-c56f-437c-9816-14e47d127235</networkid>
<networkname>PublicFrontSegment</networkname>
<traffictype>Guest</traffictype>
<type>Isolated</type>
</nic>
<nic>
<broadcasturi>vlan://2452</broadcasturi>
<gateway>192.168.4.1</gateway>
<id>dd262464-2edf-4cae-93e9-0214859ff2bb</id>
<ipaddress>192.168.4.32</ipaddress>
<isdefault>false</isdefault>
<isolationuri>vlan://2452</isolationuri>
<macaddress>06:ba:20:00:0c:6b</macaddress>
<netmask>255.255.255.0</netmask>
<networkid>19a2e758-163f-40a8-b977-1932dcbe2bc3</networkid>
<networkname>BackSegment</networkname>
<traffictype>Guest</traffictype>
<type>Shared</type>
</nic>
<nic>
<broadcasturi>vlan://3052</broadcasturi>
<gateway>198.18.52.33</gateway>
<id>917f5b42-7348-4b25-8b54-0df1f3ba324e</id>
<ipaddress>198.18.52.39</ipaddress>
<isdefault>false</isdefault>
<isolationuri>vlan://3052</isolationuri>
<macaddress>06:ac:2c:00:09:4a</macaddress>
<netmask>255.255.255.224</netmask>
<networkid>36f4ce53-44f2-4fd9-bb7c-b382dd5a2959</networkid>
<networkname>MonitoringNetwork</networkname>
<traffictype>Guest</traffictype>
<type>Shared</type>
</nic>
<password>aN6ahjama</password>
<passwordenabled>true</passwordenabled>
<rootdeviceid>0</rootdeviceid>
<rootdevicetype>ROOT</rootdevicetype>
<serviceofferingid>ab00a8a4-482f-4479-81df-b69f6d19db74</serviceofferingid>
<serviceofferingname>Small2(1vCPU,Mem4GB)</serviceofferingname>
<state>Running</state>
<templatedisplaytext>CentOS 6.5 64bit ウイルス対策なし</templatedisplaytext>
<templateid>a42a3b6d-95db-417b-84a3-c1208dfcd509</templateid>
<templatename>CentOS6.5(64bit)100GB</templatename>
<zoneid>7d4b9647-356d-49a8-8e1a-28862b9c9082</zoneid>
<zonename>jp2-east03</zonename>
</virtualmachine>
</jobresult>
</queryexasyncjobresultresponse>

提供API一覧

2024/03/28 2024/03/28