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

  • HOME
  • 提供API一覧
  • startVirtualMachine

startVirtualMachine

処理概要

仮想サーバの起動

 

注意事項

・なし

 

リクエスト

・リクエストパラメータ

Parameter Name
Description
Required
id The ID of the virtual machine true

 

・リクエストサンプル

$ ./kick_api.sh command=startVirtualMachine id=85a02372-43da-4778-af44-bfb9e96ff532

 

レスポンス

・レスポンスボディ

Response Name
Description
jobid the ID of the asychronous job

 

・レスポンスサンプル

【コマンド実行結果】
<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
<startvirtualmachineresponse cloud-stack-version=”4.3.0.2″>
<jobid>d45e1c09-8098-4ccd-bb1c-e956f18cb6c8</jobid>
</startvirtualmachineresponse>

 

【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.StartVMCmd</cmd>
<created>2016-09-25T20:40:33+0900</created>
<jobid>d45e1c09-8098-4ccd-bb1c-e956f18cb6c8</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>2</cpunumber>
<cpuspeed>2590</cpuspeed>
<cpuused>0%</cpuused>
<created>2016-09-25T18:56:14+09:00</created>
<displayname>p-testapi2-MXXXXXXXX</displayname>
<domain>MXXXXXXXX</domain>
<domainid>57edb9da-0279-45f0-842a-d768c4ed0d47</domainid>
<guestosid>9e4fd456-c234-11e4-a399-2c600c06bb24</guestosid>
<haenable>true</haenable>
<hostname>jp2-east03-Losv-003271</hostname>
<hypervisor>VMware</hypervisor>
<id>85a02372-43da-4778-af44-bfb9e96ff532</id>
<isdynamicallyscalable>true</isdynamicallyscalable>
<jobid>d45e1c09-8098-4ccd-bb1c-e956f18cb6c8</jobid>
<jobstatus>0</jobstatus>
<memory>12288</memory>
<name>p-testapi2-MXXXXXXXX</name>
<networkkbsread>0</networkkbsread>
<networkkbswrite>0</networkkbswrite>
<nic>
<broadcasturi>vlan://2860</broadcasturi>
<gateway>10.1.1.1</gateway>
<id>a925d87d-626c-4c70-a8ea-f71f94f9696e</id>
<ipaddress>10.1.1.85</ipaddress>
<isdefault>true</isdefault>
<isolationuri>vlan://2860</isolationuri>
<macaddress>02:00:28:4a:01:63</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://3052</broadcasturi>
<gateway>198.18.52.33</gateway>
<id>947c67b9-4c5b-412b-9f39-410c3b551cc9</id>
<ipaddress>198.18.52.45</ipaddress>
<isdefault>false</isdefault>
<isolationuri>vlan://3052</isolationuri>
<macaddress>06:dc:ae:00:09:50</macaddress>
<netmask>255.255.255.224</netmask>
<networkid>36f4ce53-44f2-4fd9-bb7c-b382dd5a2959</networkid>
<networkname>MonitoringNetwork</networkname>
<traffictype>Guest</traffictype>
<type>Shared</type>
</nic>
<nic>
<broadcasturi>vlan://2452</broadcasturi>
<gateway>192.168.4.1</gateway>
<id>ce79ea87-c9b2-4942-ab9c-728ef5f11db4</id>
<ipaddress>192.168.4.22</ipaddress>
<isdefault>false</isdefault>
<isolationuri>vlan://2452</isolationuri>
<macaddress>06:77:58:00:0c:61</macaddress>
<netmask>255.255.255.0</netmask>
<networkid>19a2e758-163f-40a8-b977-1932dcbe2bc3</networkid>
<networkname>BackSegment</networkname>
<traffictype>Guest</traffictype>
<type>Shared</type>
</nic>
<passwordenabled>true</passwordenabled>
<rootdeviceid>0</rootdeviceid>
<rootdevicetype>ROOT</rootdevicetype>
<serviceofferingid>c9fae3d1-4e8c-4a5c-912d-64140af845ae</serviceofferingid>
<serviceofferingname>Premium_2vCPU_Mem12GB</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/09/15 2024/09/15