您的 vRealize Operations Manager 实例可能安装了多个解决方案。要查找 vSphere 解决方案及其适配器类型,请发出 GET 请求以检索所有解决方案的列表。响应包含解决方案中包括的所有适配器。

在此示例用例中,vRealize Operations Manager 实例的 API-URLvrealize.example.com

前提条件

确认您可以登录到 vRealize Operations Manager 实例的 API URL。请参见获取身份验证令牌

过程

  1. 发出 GET 请求以列出所有解决方案。
    GET https://vrealize.example.com/suite-api/api/solutions
  2. 检查响应以查找 vSphere 解决方案及其适配器类型。
    请参阅 vSphere 解决方案的适配器类型 的响应部分。

示例: vSphere 解决方案的适配器类型

此示例列出了所有已安装的解决方案和每个解决方案的适配器类型。

请求标头:
GET https://vrealize.example.com/suite-api/api/solutions
JSON 响应:
200 OK
{
  "solution": 
    {
      "id": "MPforLogInsight",
      "name": "VMware vRealize Operations Management Pack for Log Insight",
      "version": "6.0.3171089",
      "description": "VMware vRealize Operations Management Pack for Log Insight... ",
      "vendor": "VMware Inc.",
      "adapterKindKeys": [
        "LogInsightAdapter"
      ]
    },
    {
      "id": "ep-ops-os-and-availability",
      "name": "Operating Systems / Remote Service Monitoring",
      "version": "1.0.4071095",
      "description": "The End Point Operations Management Solution for Operating... ",
      "vendor": "VMware Inc.",
      "adapterKindKeys": [
        "ep-ops-os-and-availability-kind"
      ]
    },
    {
      "id": "VMware vSphere",
      "name": "VMware vSphere",
      "version": "6.0.7496664",
      "description": "Manages vSphere objects such as Clusters, Hosts...",
      "vendor": "VMware Inc.",
      "adapterKindKeys": [
        "VMWARE",
        "PythonRemediationVcenterAdapter"
      ]  
    }
  ]
}
响应显示三个已安装的解决方案:
  • Management Pack for Log Insight 解决方案
  • End Point Operations 解决方案
  • vSphere 解决方案
vSphere 解决方案具有两种适配器类型:
  • VMWARE
  • PythonRemediationVcenterAdapter
对于 vCenter 适配器,适配器类型为 VMWARE。