c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’… c8y(1) β€” the audit records list, explained by your favorite terminal bestie

okay so before we even start: this page is from the c8y manual, section 1, and it's literally just about one command β€” listing audit records. that's it. that's the vibe. let's go 🫢


✨ NAME ✨

c8y-auditrecords-list β€” get the audit record collection, bestie. that's the whole name, no notes πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

c8y auditrecords list [flags]

that's it. that's the whole summoning ritual. c8y, then auditrecords, then list, then whatever flags your heart desires ✨


🌸 DESCRIPTION 🌸

okay so audit records are like the receipts of your Cumulocity world 😌 they hold all the info about modifications that happened to other Cumulocity entities. it's giving "screen time report but for your infrastructure."

for example β€” and this is the cute part β€” the audit records contain each operation state transition, so you can literally use them to check when an operation transitioned from PENDING -> EXECUTING -> SUCCESSFUL. a whole little glow-up timeline, captured forever. no cap, that's genuinely useful πŸ”₯


πŸ’– OPTIONS πŸ’–

these are the flags that only belong to this command. the family heirlooms come later, don't worry.

  • --application="" β€” filter by Application πŸŽ€
  • --dateFrom="" β€” the start date, or start date and time, of when the audit record occurred. i.e. where your story begins ✨
  • --dateTo="" β€” the end date, or end date and time, of when the audit record occurred. the closing credits πŸŒ™
  • -h, --help[=false] β€” help for list. your little safety net 🫢
  • --revert[=false] β€” returns the newest instead of the oldest audit records. and listen, this one is picky: it must be used with the dateFrom and dateTo parameters. no dates, no revert, periodt πŸ’…
  • --source="" β€” a Source Id, or an object containing an .id property, of the element that should be detected. i.e. AlarmID, or Operation ID. ⚠️ Note: only one source can be provided (and yes, it accepts pipeline) πŸ¦‹
  • --type="" β€” Type 🌈
  • --user="" β€” Username πŸ‘‘

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

the whole extended family shows up to every c8y party. every single one, listed for you, because we don't gatekeep here πŸ’œ

  • --abortOnErrors=10 β€” abort the batch when it reaches the specified number of errors. ten strikes and we're out πŸ’€
  • --allowEmptyPipe[=false] β€” don't fail when the piped input (stdin) is empty. be forgiving, bestie πŸŽ€
  • --cache[=false] β€” enable cached responses ⚑
  • --cacheBodyPaths=[] β€” the cache should limit hashing of selected paths in the json body. empty indicates all values, aka hash everything πŸŒ€
  • --cacheTTL="60s" β€” cache time-to-live (TTL) as a duration, i.e. 60s, 2m ⏳
  • -c, --compact[=false] β€” compact instead of pretty-printed output when using json output. pretty print is the default if the output is the terminal 🌸
  • --confirm[=false] β€” prompt for confirmation πŸ™ˆ
  • --confirmText="" β€” custom confirmation text, for when you want your prompt to have personality πŸ’…
  • --currentPage=0 β€” the current page which should be returned πŸ“„
  • --customQueryParam=[] β€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue' πŸ”§
  • --debug[=false] β€” set very verbose log messages. the loudest mode πŸ—£οΈ
  • --delay="0ms" β€” delay after each request, i.e. 5ms, 1.2s 😴
  • --delayBefore="0ms" β€” delay before each request, i.e. 5ms, 1.2s ⏱️
  • --dry[=false] β€” dry run. don't send any data to the server. all vibes, zero consequences ✨
  • --dryFormat="markdown" β€” dry run output format. i.e. json, dump, markdown or curl πŸ“
  • --examples[=false] β€” show examples for the current command. yes queen, show me how it's done πŸ‘
  • --filter=[] β€” apply a client side filter to the response before returning it to the user 🧚
  • --flatten[=false] β€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. nested? not anymore πŸͺ„
  • -f, --force[=false] β€” do not prompt for confirmation. ignored when using --confirm. bold of you πŸ’₯
  • -H, --header=[] β€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue" βœ‰οΈ
  • --includeAll[=false] β€” include all results by iterating through each page. we're getting everything πŸ“
  • -k, --insecure[=false] β€” allow insecure server connections when using SSL. ⚠️ caution vibes only, bestie 😭
  • -l, --logMessage="" β€” add a custom message to the activity log πŸ““
  • --maxJobs=0 β€” maximum number of jobs. 0 = unlimited (use with caution!) πŸ”₯
  • --noAccept[=false] β€” ignore the Accept header, which will remove the Accept header from requests; however PUT and POST requests will only see the effect 🚫
  • --noCache[=false] β€” force disabling of cached responses (overwrites the cache setting) 🧊
  • -M, --noColor[=false] β€” don't use colors when displaying log entries on the console. monochrome moment πŸ–€
  • --noLog[=false] β€” disables the activity log for the current command πŸ”‡
  • --noProgress[=false] β€” disable progress bars πŸ“‰
  • --noProxy[=false] β€” ignore the proxy settings πŸšͺ
  • -n, --nullInput[=false] β€” don't read the input (stdin). useful if using in shell for/while loops πŸ”
  • -o, --output="table" β€” output format, i.e. table, json, csv, csvheader πŸ“Š
  • --outputFile="" β€” save JSON output to file (after select/view) πŸ’Ύ
  • --outputFileRaw="" β€” save raw response to file (before select/view) πŸ—„οΈ
  • --outputTemplate="" β€” jsonnet template to apply to the output 🎨
  • -p, --pageSize=5 β€” maximum results per page. five is the default, live a little 🍬
  • --progress[=false] β€” show progress bar. this will also disable any other verbose output πŸ“ˆ
  • --proxy="" β€” proxy setting, i.e. http://10.0.0.1:8080 🌐
  • -r, --raw[=false] β€” show raw response. this mode will force output=json and view=off πŸ₯©
  • --retries=3 β€” max number of attempts when a failed http call is encountered. three tries, then we accept fate 😌
  • --select=[] β€” comma separated list of properties to return. wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber' 🎯
  • --session="" β€” session configuration πŸ”‘
  • --sessionMode="" β€” override the default session mode for a single command, which would normally be disabled πŸŽ›οΈ
  • -P, --sessionPassword="" β€” override session password 🀫
  • -U, --sessionUsername="" β€” override session username. i.e. peter or t1234/peter (with tenant) πŸ™‹β€β™€οΈ
  • --silentExit[=false] β€” silent status codes do not affect the exit code 🀐
  • --silentStatusCodes="" β€” status codes which will not print out an error message 🀫
  • --timeout="600s" β€” request timeout duration, i.e. 60s, 2m βŒ›
  • --totalPages=0 β€” total number of pages to get πŸ“š
  • -v, --verbose[=false] β€” verbose logging πŸ—£οΈ
  • --view="auto" β€” use views when displaying data on the terminal. disable using --view off πŸ‘€
  • --withError[=false] β€” errors will be printed on stdout instead of stderr 🚨
  • --withTotalElements[=false] β€” request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13) πŸ”’
  • -t, --withTotalPages[=false] β€” request Cumulocity to include the total pages in the response statistics under .statistics.totalPages πŸ“–
  • --workers=1 β€” number of workers πŸ‘·β€β™€οΈ

πŸŽ€ EXAMPLE πŸŽ€

here's the moment you've all been waiting for β€” an actual example, copied exactly, no edits, because we respect the source material:

$ c8y auditrecords list --pageSize 100
Get a list of audit records

get a list of audit records. that's what it does. iconic behavior honestly πŸ‘‘


🌈 SEE ALSO 🌈


and that's the whole page, bestie!! βœ¨πŸ’– this lil masterpiece is from the c8y(1) manual, dated Jan 1980 β€” yes, before most of us were born, and it's still slaying πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from