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

  • HOME
  • 提供API一覧
  • queryExAsyncJobResult

queryExAsyncJobResult

処理概要

非同期実行APIの実行状況取得(KDDI作成APIが対象)

 

注意事項

・なし

 

リクエスト

・リクエストパラメータ

Parameter Name
Description
Required
jobid The ID of the asynchronous job. true

 

・リクエストサンプル

$ ./kick_api.sh command=queryExAsyncJobResult jobid=9a329417-c101-4bea-b4cc-e49e0da6b79e

 

レスポンス

・レスポンスボディ

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

 

・レスポンスサンプル

【コマンド実行結果】

<?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-24T00:16:34+0900</created>
<jobid>9a329417-c101-4bea-b4cc-e49e0da6b79e</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>2589</cpuspeed>
<cpuused>0%</cpuused>
<created>2016-08-22T20:45:29+09:00</created>
<displayname>v-TEST01-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>14aa749d-bd33-4a55-a441-e1d4126f2633</id>
<isdynamicallyscalable>true</isdynamicallyscalable>
<jobid>9a329417-c101-4bea-b4cc-e49e0da6b79e</jobid>
<jobstatus>0</jobstatus>
<memory>4096</memory>
<name>v-TEST01-MXXXXXXXX</name>
<networkkbsread>0</networkkbsread>
<networkkbswrite>0</networkkbswrite>
<nic>
<broadcasturi><vlan://3052</broadcasturi>
<gateway>198.18.52.33</gateway>
<id>680ddde2-c5ea-480e-90de-43ecad3d8076</id>
<ipaddress>198.18.52.37</ipaddress>
<isdefault>false</isdefault>
<isolationuri>vlan://3052</isolationuri>
<macaddress>06:17:a0:00:09:48</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://2860</broadcasturi>
<gateway>10.1.1.1</gateway>
<id>8a65f6c4-6f66-4f66-a590-104cf9465da5</id>
<ipaddress>10.1.1.163</ipaddress>
<isdefault>true</isdefault>
<isolationuri><vlan://2860</isolationuri>
<macaddress>02:00:6f:d2:00:4e</macaddress>
<netmask>255.255.255.0</netmask>
<networkid>dfab0cf8-c56f-437c-9816-14e47d127235</networkid>
<networkname>PublicFrontSegment</networkname>
<traffictype>Guest</traffictype>
<type>Isolated</type>
</nic>
<passwordenabled>true</passwordenabled>
<rootdeviceid>0</rootdeviceid>
<rootdevicetype>ROOT</rootdevicetype>
<serviceofferingid>caa049f0-6c96-43f5-810a-c8621eba3ac5</serviceofferingid>
<serviceofferingname>Medium1(2vCPU,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一覧

2022/07/05 2022/07/05