Skip to main content

Activity log

Demo​

Get​

Get ids of managed objected created from the cli​

c8y activitylog list --dateFrom -1h --filter "method eq POST" --filter "path like *inventory*" --select responseSelf -o csv |
head -1 |
awk -F/ '{print $NF}'