c8y(1)
๐ 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,markdownorcurl๐--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 shellfor/whileloops. 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 forceoutput=jsonandview=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.peterort1234/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
- nixpkgs unstable: go-c8y-cli 2.56.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms