So it looks like the API works great for what I need. But how do I mark as solved? I can’t find anything that lets me change this status 😞
My code from the api is something similar to:
$fogApiToken = 'mf...A='
$fogUserToken = '5Mz...NDY='
$fogServer = "IP ADDRESS GOES HERE"
$headers = @{};
$headers.Add('fog-api-token', $fogApiToken);
$headers.Add('fog-user-token', $fogUserToken);
$BaseUri = "http://$fogServer/fog"
$HostURL = $baseUri +"/host/"
$HostResult = Invoke-RestMethod -Uri $HostURL -Method GET -Headers $headers -ContentType "application/json"
$ThisHost = $HostResult.hosts | ? name -eq $ENV:COMPUTERNAME
$PrimaryUser = $ThisHost.Inventory.PrimaryUser.Trim()