feat: add agent zones
This commit is contained in:
1 parent
d8cd7ad058
commit
82309db79a
29 files changed
+2242
-255
No files matched your search
@@ -78,6 +78,14 @@ function Send-AgentCheckin {
|
||||
local_time = (Get-Date).ToString("o")
|
||||
}
|
||||
|
||||
if (-not [string]::IsNullOrWhiteSpace([string]$config.site_id)) {
|
||||
$body["site_id"] = [string]$config.site_id
|
||||
}
|
||||
|
||||
if (-not [string]::IsNullOrWhiteSpace([string]$config.agent_zone_id)) {
|
||||
$body["agent_zone_id"] = [string]$config.agent_zone_id
|
||||
}
|
||||
|
||||
return Invoke-AgentApi -Method "POST" -Path "/api/agent/checkin" -Body $body
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user