c8y(1)

๐Ÿ“ฆ version 2.56.1, in nixpkgs unstable

๐Ÿ’… c8y(1) โ€” the group chat guide

okay bestie so this is the manual for c8y (yes, the whole manual, page c8y(1)), and this particular page is all about one little command that pulls a single alarm. sit down, grab a boba, we're gonna go through every single flag together ๐Ÿซถ


โœจ NAME โœจ

c8y-alarms-get โ€” get an alarm. that's it, that's the whole vibe. one alarm, by its id ๐ŸŽ€

๐ŸŒธ SYNOPSIS ๐ŸŒธ

c8y alarms get [flags]

literally just that. command, subcommand, subsubcommand, and then flags if you're feeling fancy โœจ

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Get an alarm by its id. one (1) alarm. singular. iconic behaviour honestly ๐Ÿ‘‘

๐Ÿ’– OPTIONS ๐Ÿ’–

  • -h, --help[=false] โ€” help for get. the "wait what does this do again" button ๐Ÿ™ˆ
  • --id=[] โ€” Alarm id. this one's required (so like, you can't skip it, it's not optional, it's giving main character energy) and it accepts pipeline ๐Ÿšฐ

๐ŸŒˆ OPTIONS INHERITED FROM PARENT COMMANDS ๐ŸŒˆ

okay so these aren't even this command's own flags, they're inherited from the parent commands, but they still work here so we're covering all of them. no skipping, no cap ๐Ÿ’€

  • --abortOnErrors=10 โ€” abort the batch when you hit the specified number of errors. ten strikes and it's out ๐ŸŽณ
  • --allowEmptyPipe[=false] โ€” don't fail when the piped input (stdin) is empty. empty pipe? we're chill about it ๐Ÿง˜
  • --cache[=false] โ€” enable cached responses. memory queen behaviour ๐Ÿ’พ
  • --cacheBodyPaths=[] โ€” cache should limit hashing of selected paths in the json body. empty means all values. so like, leave it empty and it hashes everything ๐ŸŒˆ
  • --cacheTTL="60s" โ€” cache time-to-live (TTL) as a duration, i.e. 60s, 2m. how long the cache stays fresh before it expires โณ
  • -c, --compact[=false] โ€” compact instead of pretty-printed output when using json output. pretty print is the default if output is the terminal ๐ŸŽ€
  • --confirm[=false] โ€” prompt for confirmation. are you sure bestie?? ๐Ÿฅบ
  • --confirmText="" โ€” custom confirmation text. write your own "are you sure" โœ๏ธ
  • --currentPage=0 โ€” 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 "tell me EVERYTHING" 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. window shopping only ๐Ÿ›๏ธ
  • --dryFormat="markdown" โ€” dry run output format. i.e. json, dump, markdown or curl ๐Ÿ“
  • --examples[=false] โ€” show examples for the current command. show me how it's done ๐Ÿ™
  • --filter=[] โ€” apply a client side filter to response before returning it to the user. sift it before it reaches you ๐Ÿซง
  • --flatten[=false] โ€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. squish it flat ๐Ÿ”จ
  • -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. give me EVERYTHING ๐Ÿ”
  • -k, --insecure[=false] โ€” allow insecure server connections when using SSL. living dangerously, we love a risk taker ๐Ÿ˜ฌ
  • -l, --logMessage="" โ€” add custom message to the activity log. leave a little note ๐Ÿ—’๏ธ
  • --maxJobs=0 โ€” maximum number of jobs. 0 = unlimited (use with caution!). no cap, literally, but be careful fr fr โš ๏ธ
  • --noAccept[=false] โ€” ignore Accept header, 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 cache setting). no memory for you โœ‹
  • -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. no receipts ๐Ÿงพ
  • --noProgress[=false] โ€” disable progress bars. no little moving bar for us ๐Ÿ˜”
  • --noProxy[=false] โ€” ignore the proxy settings. straight to the source ๐Ÿ›ฃ๏ธ
  • -n, --nullInput[=false] โ€” don't read the input (stdin). useful if using in shell for/while loops. respect the loop ๐ŸŒ€
  • -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 at a time, cozy ๐Ÿ›‹๏ธ
  • --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. no filter, no chill ๐ŸงŠ
  • --retries=3 โ€” max number of attempts when a failed http call is encountered. three tries, then we're done โœ‹
  • --select=[] โ€” comma separated list of properties to return. wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber' ๐ŸŽฏ
  • --session="" โ€” session configuration ๐Ÿ”‘
  • --sessionMode="" โ€” override 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. shhh ๐Ÿค
  • --silentStatusCodes="" โ€” status codes which will not print out an error message ๐Ÿ”‡
  • --timeout="600s" โ€” request timeout duration, i.e. 60s, 2m. ten minutes of patience, then we go โฐ
  • --totalPages=0 โ€” total number of pages to get ๐Ÿ“š
  • -v, --verbose[=false] โ€” verbose logging. talk to me ๐Ÿ—จ๏ธ
  • --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. one little worker bee, unless you say otherwise ๐Ÿ

๐Ÿ”ฅ EXAMPLE ๐Ÿ”ฅ

$ c8y alarms get --id 12345
Get alarm

look at her go. passing --id 12345 and getting the alarm. slay ๐Ÿ’…

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

c8y-alarms(1) โ€” the whole alarms family, go say hi ๐Ÿซถ


and that's the page bestie ๐Ÿ’– this one's from the c8y(1) manual, dated Jan 1980 (yes, really, that's the date on the footer, we don't question it ๐ŸŒธ), so go forth and fetch exactly one alarm at a time. periodt โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from