feat: Integrate L5-Swagger for API documentation and enhance VM synchronization to include host-level details.
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user