您的 vRealize Operations 实例包含多种适配器类型。要查找 vCenter 适配器的适配器类型,请发出 GET 请求以检索所有适配器类型的列表。API 响应包含适配器监控的所有对象类型。
前提条件
确认您已登录到 vRealize Operations 实例。
过程
示例: 确定 vCenter 适配器的适配器类型和对象类型
此示例将查找 vCenter 适配器的适配器类型以及适配器模型定义中包含的所有对象类型。
请求标头:
GET https://vRealize.example.com/suite-api/api/adapterkinds Content-Type: application/json Authorization: vRealizeOpsToken <vROps_token> Accept: application/json
其中,vROps_token 是您从 获取身份验证令牌 中的响应获取的令牌。
vCenter 适配器的 JSON 响应代码段:
200 OK
{ "key": "VMWARE", "name": "vCenter Adapter", "description": "Provides the connection information and credentials required...", "adapterKindType": "GENERAL", "describeVersion": 573, "identifiers": [], "resourceKinds": [ "ClusterComputeResource", "ComputeResource", "CustomDatacenter", "Datacenter", "Datastore", "StoragePod", "DatastoreFolder", "VM Entity Status", "Folder", "HostFolder", "HostSystem", "NetworkFolder", "ResourcePool", "VMwareAdapter Instance", "VirtualMachine", "VMFolder", "DistributedVirtualPortgroup", "VmwareDistributedVirtualSwitch", "vSphere World" ], ... }
对于 vCenter 适配器,adapter-kind 键为 VMWARE。resourceKinds 是 vCenter 适配器所监控的对象类型。对于虚拟机对象类型,resourceKinds 为 VirtualMachine。