注意:此方法已弃用,在此包括只是用于与现有用户脚本兼容。 新用户应使用带有 &boundary 选项标志的 config 命令。
检索应用模板边界
/api/v2/template/config_boundary?template=template&vdc=controller-name
应用模板的名称
目标虚拟数据中心的名称
同步
GET
检索应用模板 VDS_CentOS51_r15 的边界。
GET http://192.168.123.200/api/v2/template/config_boundary?template=VDS_CentOS51_r15&vdc=mygrid
样例输出
<boundary>
<interface>
<name>ext</name>
</interface>
<name>main</name>
<properties>
<property>
<mandatory>1</mandatory>
<name>mode</name>
<type>string</type>
<values>manual|format|fscopy|fsck|fsrepair</values>
</property>
<property>
<dflt></dflt>
<name>fs_type_src</name>
<type>string</type>
<values>ext2|ext3|ext4|fat16|fat32|reiserfs|swap|ext3-snapshot|iso9660|partitioned|ufssol|zfs|raw</values>
</property>
。
。
。
</properties>
<resources>
<resource>
<dflt>512M</dflt>
<max>1024M</max>
<min>160M</min>
<name>mem</name>
</resource>
.
.
.
</resources>
<volume>
<name>dst</name>
</volume>
</boundary>
{
"resource" : [
{
"min" : "160M",
"max" : "1024M",
"name" : "mem",
"dflt" : "512M"
},
{
"min" : "1000K",
"max" : "1000K",
"name" : "bw",
"dflt" : "1000K"
}
],
"volume" : {
"name" : "dst"
},
"interface" : {
"name" : "ext"
},
"name" : "main",
"property" : [
{
"name" : "mode",
"type" : "string",
"values" : "manual|format|fscopy|fsck|fsrepair",
"mandatory" : 1
},
{
"name" : "adv_options",
"type" : "string",
"dflt" : ""
}
]
}
未找到实体 vdc mygrid-WS_API 应用中没有配置指定的 VDC 名称。
缺少必需参数 (template)。 -请求中缺少参数 template=template。
未找到实体-权限被拒绝-应用 VDS_CentOS_r1 不存在。
|
版权所有 © 2013 CA。
保留所有权利。
|
|