Activity log
Demo​
Get​
Get ids of managed objected created from the cli​
- Shell
- PowerShell (native)
- PowerShell (PSc8y)
c8y activitylog list --dateFrom -1h --filter "method eq POST" --filter "path like *inventory*" --select responseSelf -o csv |
head -1 |
awk -F/ '{print $NF}'
c8y activitylog list --dateFrom -1h --filter "method eq POST" --filter "path like *inventory*" --select responseSelf -o csv |
Select-Object -First 1 |
Foreach-Object { ($_ -split "/")[-1] }
c8y activitylog list --dateFrom -1h --filter "method eq POST" --filter "path like *inventory*" --select responseSelf -o csv |
Select-Object -First 1 |
Foreach-Object { ($_ -split "/")[-1] }