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

  • HOME
  • 提供API一覧
  • deleteTemplate

deleteTemplate

処理概要

テンプレートの削除

 

注意事項

・「listTemplates」で取得する「id」を利用

 

リクエスト

・リクエストパラメータ

Parameter Name Description Required
id the ID of the template true
zoneid the ID of zone of the template false

・リクエストサンプル

$ ./kick_api.sh command=deleteTemplate id=8c89c7a1-0799-431f-ac7a-743315993234

 

レスポンス

・レスポンスボディ

Response Name Description
displaytext any text associated with the success or failure
success true if operation is executed successfully

・レスポンスサンプル

【コマンド実行結果】

<?xml version=”1.0″ encoding=”UTF-8″?>
<deletetemplateresponse cloud-stack-version=”4.3.0.2″>
<jobid>28455434-c50e-4818-9302-e01ef462b37a</jobid>
</deletetemplateresponse>

 
【queryAsyncJobResultでの確認結果】

<?xml version=”1.0″ encoding=”UTF-8″?>
<queryasyncjobresultresponse cloud-stack-version=”4.3.0.2″>
<accountid>d344caf5-24dc-4194-ac5f-2d78d5e38039</accountid>
<userid>0212ea46-0529-4250-9e3e-bcb03c114002</userid>
<cmd>org.apache.cloudstack.api.command.user.template.DeleteTemplateCmd</cmd>
<jobstatus>1</jobstatus>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>0</jobresultcode>
<jobresulttype>object</jobresulttype>
<jobresult>
<success>true</success>
</jobresult>
<created>2016-09-24T15:57:40+0900</created>
<jobid>28455434-c50e-4818-9302-e01ef462b37a</jobid>
</queryasyncjobresultresponse>

提供API一覧

2024/04/23 2024/04/23