5.197.2. 列出 GET
列出系统中的标签。
例如,要列出系统中标签的完整层次结构,请按如下所示发送请求:
GET /ovirt-engine/api/tags
<tags>
<tag href="/ovirt-engine/api/tags/222" id="222">
<name>root2</name>
<description>root2</description>
<parent href="/ovirt-engine/api/tags/111" id="111"/>
</tag>
<tag href="/ovirt-engine/api/tags/333" id="333">
<name>root3</name>
<description>root3</description>
<parent href="/ovirt-engine/api/tags/222" id="222"/>
</tag>
<tag href="/ovirt-engine/api/tags/111" id="111">
<name>root</name>
<description>root</description>
</tag>
</tags>
在前面的 XML 输出中,您可以看到标签的以下层次结构:
root: (id: 111)
- root2 (id: 222)
- root3 (id: 333)
5.197.2.1. max 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
设置要返回的最大标签数。如果没有指定所有标签,则返回。