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

  • HOME
  • 提供API一覧
  • queryAsyncJobResult

queryAsyncJobResult

処理概要

非同期実行APIの一覧取得

 

注意事項

「rebootVirtualMachine」、「createTemplate」、「deleteTemplates」、「createSnapshot」、「deleteSnapshot」で取得する「jobid」を利用

 

リクエスト

・リクエストパラメータ

Parameter Name Description Required
keyword List by keyword false

 

・リクエストサンプル

$ ./kick_api.sh command=listAsyncJobs keyword=stop

 

レスポンス

・レスポンスボディ

Response Name Description
accountid the account that executed the async command
cmd the async command executed
created the created date of the job
jobinstanceid the unique ID of the instance/entity object related to the job
jobinstancetype the instance/entity object related to the job
jobprocstatus the progress information of the PENDING job
jobresult the result reason
jobresultcode the result code for the job
jobresulttype the result type
jobstatus the current job status-should be 0 for PENDING
userid the user that executed the async command
jobid the ID of the async job

 

・レスポンスサンプル

【コマンド実行結果】
<listasyncjobsresponse>
<asyncjobs>
<accountid>d344caf5-24dc-4194-ac5f-2d78d5e38039</accountid>
<userid>0212ea46-0529-4250-9e3e-bcb03c114002</userid>
<cmd>org.apache.cloudstack.api.command.user.vm.StopVMCmd</cmd>
<jobstatus>1</jobstatus>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>0</jobresultcode>
<jobresulttype>object</jobresulttype>
<jobresult>
<virtualmachine>
<id>14aa749d-bd33-4a55-a441-e1d4126f2633</id>
<name>v-TEST01-M00000002</name>
<displayname>v-TEST01-M00000002</displayname>
<account>kenshou02</account>
<domainid>57edb9da-0279-45f0-842a-d768c4ed0d47</domainid>
<domain>M00000002</domain>
<created>2016-08-22T20:45:29+0900</created>
<state>Stopped</state>
<haenable>true</haenable>
<zoneid>7d4b9647-356d-49a8-8e1a-28862b9c9082</zoneid>
<zonename>jp2-east03</zonename>
<templateid>a42a3b6d-95db-417b-84a3-c1208dfcd509</templateid>
<templatename>CentOS6.5(64bit)100GB</templatename>
<templatedisplaytext>CentOS 6.5 64bit ウイルス対策なし</templatedisplaytext>
<passwordenabled>true</passwordenabled>
<serviceofferingid>caa049f0-6c96-43f5-810a-c8621eba3ac5</serviceofferingid>
<serviceofferingname>Medium1(2vCPU,Mem4GB)</serviceofferingname>
<cpunumber>2</cpunumber>
<cpuspeed>2589</cpuspeed>
<memory>4096</memory>
<cpuused>0%</cpuused>
<networkkbsread>0</networkkbsread>
<networkkbswrite>0</networkkbswrite>
<guestosid>9e4fd456-c234-11e4-a399-2c600c06bb24</guestosid>
<rootdeviceid>0</rootdeviceid>
<rootdevicetype>ROOT</rootdevicetype>
<nic>
<id>680ddde2-c5ea-480e-90de-43ecad3d8076</id>
<networkid>36f4ce53-44f2-4fd9-bb7c-b382dd5a2959</networkid>
<networkname>MonitoringNetwork</networkname>
<netmask>255.255.255.224</netmask>
<gateway>198.18.52.33</gateway>
<ipaddress>198.18.52.37</ipaddress>
<isolationuri>vlan://3052</isolationuri>
<broadcasturi>vlan://3052</broadcasturi>
<traffictype>Guest</traffictype>
<type>Shared</type>
<isdefault>false</isdefault>
<macaddress>06:17:a0:00:09:48</macaddress>
</nic>
<nic>
<id>8a65f6c4-6f66-4f66-a590-104cf9465da5</id>
<networkid>dfab0cf8-c56f-437c-9816-14e47d127235</networkid>
<networkname>PublicFrontSegment</networkname>
<netmask>255.255.255.0</netmask>
<gateway>10.1.1.1</gateway>
<ipaddress>10.1.1.163</ipaddress>
<traffictype>Guest</traffictype>
<type>Isolated</type>
<isdefault>true</isdefault>
<macaddress>02:00:6f:d2:00:4e</macaddress>
</nic>
<hypervisor>VMware</hypervisor>
<displayvm>true</displayvm>
<isdynamicallyscalable>true</isdynamicallyscalable>
<jobid>f1cc01ae-fd10-4e06-a986-176a5c4bcc5c</jobid>
<jobstatus>0</jobstatus>
</virtualmachine>
</jobresult>
<created>2016-09-24T00:12:12+0900</created>
<jobid>f1cc01ae-fd10-4e06-a986-176a5c4bcc5c</jobid>
</asyncjobs>

<asyncjobs>
<accountid>d344caf5-24dc-4194-ac5f-2d78d5e38039</accountid>
<userid>0212ea46-0529-4250-9e3e-bcb03c114002</userid>
<cmd>com.cloud.vm.VmWorkStop</cmd>
<jobstatus>1</jobstatus>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>0</jobresultcode>
<created>2016-09-24T00:12:12+0900</created>
<jobid>8f2086e7-9416-4d7d-8768-ecd1b7a8ed4e</jobid>
</asyncjobs>
</listasyncjobsresponse>

提供API一覧

2024/04/23 2024/04/23