Get VMs List

GET https://{{cluster_vip}}/irisservices/api/v1/public/protectionSources/virtualMachines?vCenterId={{sourceId}}

Returns the list of virtual machines available on the VMware vCenter source specified in the API URL.

You can obtain the sourceId to be specified in the API URL from the Register VMware vCenter API response.

You can run this API to obtain the IDs of the VMs you want to protect. The IDs of the VMs are required for creating a Protection Group for protecting those VMs.

Request Params

KeyDatatypeRequiredDescription
vCenterIdstring

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring
Content-Typestring

RESPONSES

status: OK

[{"id":6805,"parentId":6774,"name":"Oracle-RAC-Template_7.7","environment":"kVMware","vmWareProtectionSource":{"type":"kVirtualMachine","name":"Oracle-RAC-Template_7.7","id":{"uuid":"{{uuid}}","morItem":"vm-21016","morType":"VirtualMachine"},"connectionState":"kConnected","toolsRunningStatus":"kGuestToolsNotRunning","hostType":"kLinux","isVmTemplate":true,"version":"vmx-13"}},{"id":7207,"parentId":6774,"name":"Oracle-Precheck-Automation-LTS","environment":"kVMware","vmWareProtectionSource":{"type":"kVirtualMachine","name":"Oracle-Precheck-Automation-LTS","id":{"uuid":"{{uuid}}","morItem":"vm-21544","morType":"VirtualMachine"},"connectionState":"kConnected","toolsRunningStatus":"kGuestToolsRunning","hostType":"kLinux","version":"vmx-13"}},{"id":6922,"parentId":6774,"name":"VMware_VM1","environment":"kVMware","vmWareProtectionSource":{"type":"kVirtualMachine","name":"VMware_VM1","id":{"uuid":"{{uuid}}","morItem":"vm-21506","morType":"VirtualMachine"},"connectionState":"kConnected","toolsRunningStatus":"kGuestToolsRunning","hostType":"kLinux","version":"vmx-13"}},{"id":7223,"parentId":6774,"name":"oracle_automation_IR_1","environment":"kVMware","vmWareProtectionSource":{"type":"kVirtualMachine","name":"oracle_automation_IR_1","id":{"uuid":"{{uuid}}","morItem":"vm-21546","morType":"VirtualMachine"},"connectionState":"kConnected","toolsRunningStatus":"kGuestToolsRunning","hostType":"kLinux","version":"vmx-13"}},{"id":7225,"parentId":6774,"name":"oracle_automation_tde_standalone_Staging1","environment":"kVMware","vmWareProtectionSource":{"type":"kVirtualMachine","name":"oracle_automation_tde_standalone_Staging1","id":{"uuid":"{{uuid}}","morItem":"vm-21554","morType":"VirtualMachine"},"connectionState":"kConnected","toolsRunningStatus":"kGuestToolsRunning","hostType":"kLinux","version":"vmx-13"}},{"id":7021,"parentId":6774,"name":"ubuntu-20.04-test","environment":"kVMware","vmWareProtectionSource":{"type":"kVirtualMachine","name":"ubuntu-20.04-test","id":{"uuid":"{{uuid}}","morItem":"vm-11005","morType":"VirtualMachine"},"connectionState":"kDisconnected","toolsRunningStatus":"kGuestToolsNotRunning","hostType":"kLinux","version":"vmx-13"}}]