• registerTemplate

registerTemplate

処理概要

テンプレートファイルの登録

注意事項

特になし

リクエスト

・リクエストパラメータ

Parameter Name Description Required
name the name of the template true
displaytext the display text of the template. This is usually used for display purposes. true
url the URL of where the template is hosted. Possible URL include http:// and https:// true
zoneid the ID of the zone the template is to be hosted on true
ostypeid the ID of the OS Type that best represents the OS of this template. true
hypervisor the target hypervisor for the template true
format the format for the template. Possible values include QCOW2, RAW, and VHD. true

・リクエストサンプル

./kick_api.sh command=registerTemplate displaytext=u format=OVA hypervisor=VMware name=a ostype id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx url=http://106.187.246.126/09_kddi2/kddi2/KCPS2/CentOS7-Custom-Docker.ova zoneid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

レスポンス

・レスポンスボディ

Response Name Description
id the template ID
name the template name
displaytext the template display text
ispublic true if this template is a public template, false otherwise
created the date this template was created
isready true if the template is ready to be deployed from, false otherwise.
passwordenable true if the reset password feature is enabled, false otherwise
format the format of the template.
bootable true if the ISO is bootable, false otherwise
isfeatured true if this template is a featured template, false otherwise
crossZones true if the template is managed across all Zones, false otherwise
ostypeid the ID of the OS type for this template.
ostypename the name of the OS type for this template.
account the account name to which the template belongs
zoneid the ID of the zone for this template
zonename the name of the zone for this template
status the status of the template
templatetype the type of the template
hypervisor the hypervisor on which the template runs
domain the name of the domain to which the template belongs
domainid the ID of the domain to which the template belongs

 

・レスポンスサンプル

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0 106 959 106 959 0 0 3263 0 –:–:– –:–:– –:–:– 4678
<?xml version=”1.0″ encoding=”UTF-8″?>
<registertemplateresponse cloud-stack-version=”4.3.0.2″>
<count>1</count>
<template>
<id>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</id>
<name>a</name>
<displaytext>u</displaytext>
<ispublic>false</ispublic>
<created>2017-06-09T19:32:27+0900</created>
<isready>false</isready>
<passwordenabled>false</passwordenabled>
<format>OVA</format>
<isfeatured>false</isfeatured>
<crossZones>false</crossZones>
<ostypeid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</ostypeid>
<ostypename>CentOS 6.4 (64-bit)</ostypename>
<account>kenshou02</account>
<zoneid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</zoneid>
<zonename>jp2-east01</zonename>
<status/>
<templatetype>USER</templatetype>
<hypervisor>VMware</hypervisor>
<domain>M00000002</domain>
<domainid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</domainid>
<isextractable>false</isextractable>
<sshkeyenabled>false</sshkeyenabled>
<isdynamicallyscalable>false</isdynamicallyscalable>
</template>
</registertemplateresponse>

このページは役に立ちましたか? 役に立った 役に立たなかった 0人中0人がこのページは役に立ったと言っています。
このページは役に立ちましたか? 役に立った 役に立たなかった 0人中0人がこのページは役に立ったと言っています。
2019/03/13 2019/03/13