【问题标题】:How to get the version of Vmware VSpere with the Rest API?如何使用 Rest API 获取 Vmware VSphere 的版本?
【发布时间】:2019-02-08 14:17:36
【问题描述】:

我正在使用 REST Api 来控制 vSphere vCenter Server 6.5 和 6.7。 为了区分这两者,我发现/rest/appliance/system/version 正在运行 6.5(实际上 GET 正确返回 6.5.xx)。

相同的路径在 6.7 上不起作用(未找到)。 有没有等价物?

【问题讨论】:

    标签: rest api vmware vsphere


    【解决方案1】:

    它在我的系统上运行:(从 API Explorer 中提取)

    请求网址

    https://vcenter.fqdn/rest/appliance/system/version
    

    响应正文

    {
      "value": {
        "install_time": "2018-09-03T14:28:52 UTC",
        "summary": "Update for VMware vCenter Server Appliance 6.7.0",
        "product": "VMware vCenter Server Appliance",
        "build": "10244745",
        "releasedate": "October 16, 2018",
        "type": "vCenter Server with an embedded Platform Services Controller",
        "version": "6.7.0.20000"
      }
    

    }

    它仍然在 API 文档中可用:https://vdc-download.vmware.com/vmwb-repository/dcr-public/423e512d-dda1-496f-9de3-851c28ca0814/0e3f6e0d-8d05-4f0c-887b-3d75d981bae5/VMware-vSphere-Automation-SDK-REST-6.7.0/docs/apidocs/operations/com/vmware/appliance/system/version.get-operation.html

    【讨论】:

    • 谢谢凯尔。那么它仍然是一个谜。
    • 我会先尝试更新到 U1 版本。随时通知您。感谢您的支持
    • 嗨凯尔。只是为了让您了解:在 Windows 上安装的 vCenter Server 6.7(甚至是最后一个 U1b)软件包上找不到该页面(错误 404)。相反,设备(相同版本)正在正确回复。 {...“构建”:“11726888”,“版本”:“6.7.0.21000”...}。谢谢
    • vSphere Client 版本 6.7.0.20000 是否具有用于更新内容库会话属性的 API?在上述共享链接中找不到更新会话 API。
    猜你喜欢
    • 2017-01-13
    • 1970-01-01
    • 2021-11-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多