注意:此方法现已弃用,此处的介绍供已经使用它的老用户使用。 新用户应使用带有 &boundary 选项标志的 config 命令。
检索应用模板边界
/api/v1/template/config_boundary?template=template&vdc=controller-name
应用模板的名称
目标虚拟数据中心的名称
同步
GET
检索应用模板 VDS_CentOS51_r15 的边界。
GET http://192.168.123.200/api/v1/template/config_boundary?template=VDS_CentOS51_r15&vdc=mygrid
样例输出
<boundary> <name>main</name> <property dns1> <mandatory>1</mandatory> <type>string</type> </property dns1> <property dns2> <dflt></dflt> <type>string</type> </property dns2> 。 。 。 <resource bw> <dflt>1000K</dflt> <max>2G</max> <min>1000K</min> </resource bw> 。 。 </boundary>
{
"property dns1" : {
"type" : "string",
"mandatory" : 1
},
"property hostname" : {
"type" : "string",
"mandatory" : 1
},
。
。
。
"resource mem" : {
"min" : "128M",
"max" : "32G",
"dflt" : "256M"
},
。
。
}
未找到实体 vdc mygrid-WS_API 应用中没有配置指定的 VDC 名称。
缺少必需参数 (template)。 -请求中缺少参数 template=template。
未找到实体-权限被拒绝-应用 VDS_CentOS_r1 不存在。
| 版权所有 © 2012 CA。 保留所有权利。 |
|