7.8. api struct


此类型包含 API 根服务返回的信息。

要获取该信息,请发送类似如下的请求:

GET /ovirt-engine/api
Copy to Clipboard Toggle word wrap

结果如下:

<api>
  <link rel="hosts" href="/ovirt-engine/api/hosts"/>
  <link rel="vms" href="/ovirt-engine/api/vms"/>
  ...
  <product_info>
    <name>oVirt Engine</name>
    <vendor>ovirt.org</vendor>
    <version>
      <build>0</build>
      <full_version>4.1.0_master</full_version>
      <major>4</major>
      <minor>1</minor>
      <revision>0</revision>
    </version>
  </product_info>
  <special_objects>
    <link rel="templates/blank" href="..."/>
    <link rel="tags/root" href="..."/>
  </special_objects>
  <summary>
    <vms>
      <total>10</total>
      <active>3</active>
    </vms>
    <hosts>
      <total>2</total>
      <active>2</active>
    </hosts>
    <users>
      <total>8</total>
      <active>2</active>
    </users>
    <storage_domains>
      <total>2</total>
      <active>2</active>
    </storage_domains>
  </summary>
  <time>2016-12-12T12:22:25.866+01:00</time>
</api>
Copy to Clipboard Toggle word wrap
Expand
表 7.11. 属性概述
名称类型概述

product_info

ProductInfo

有关产品的信息,如产品名称、供应商名称和版本。

special_objects

SpecialObjects

引用特殊对象,如空白模板和标签层次结构的根目录。

summary

ApiSummary

包含相关对象总数的摘要,如虚拟机、主机和存储域。

time

Date

生成此信息的日期与时间。

Expand
表 7.12. 链接摘要
名称类型概述

authenticated_user

用户

对经过身份验证的用户的引用。

effective_user

用户

引用有效用户.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat