feat: Integrate L5-Swagger for API documentation and enhance VM synchronization to include host-level details.

This commit is contained in:
pbao9
2026-02-15 12:31:06 +07:00
parent eb123ba97c
commit ef53ea3207
19 changed files with 3040 additions and 13433 deletions
+4 -1
View File
@@ -77,7 +77,7 @@ class vCenter
return "Login_Again";
}
public function getAllVirtualMachine($datacenter = '')
public function getAllVirtualMachine($datacenter = '', $host = '')
{
$check = $this->checkApiExits();
if ($check) {
@@ -85,6 +85,9 @@ class vCenter
if (!empty($datacenter)) {
$params['filter.datacenters'] = $datacenter;
}
if (!empty($host)) {
$params['filter.hosts.1'] = $host;
}
$response = Http::withoutVerifying()
->withHeaders([