c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

NAME πŸŽ€

okay so this is the c8y(1) manual page for c8y-retentionrules-get β€” Get retention rule. yes bestie, that's the whole assignment, and it's giving single-purpose icon energy. ✨

SYNOPSIS πŸ¦‹

c8y retentionrules get [flags]

DESCRIPTION πŸ’…

Get an existing retention by id. lowkey simple: you bring the id, it gets the retention. no cap. 🫢

OPTIONS 🌸

  • -h, --help[=false] β€” help for get
  • --id=[] β€” Retention rule id (required) (accepts pipeline). you literally cannot skip this one, bestie. πŸ’–

OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these are the inherited flags, and yes, we are listing every single one. periodt.

  • --abortOnErrors=10 β€” aborts the batch when it reaches the specified number of errors
  • --allowEmptyPipe[=false] β€” don't fail when piped input is empty (stdin)
  • --cache[=false] β€” turns on cached responses
  • --cacheBodyPaths=[] β€” tells cache to limit hashing to selected paths in the json body; empty means all values
  • --cacheTTL="60s" β€” cache time-to-live (TTL) as a duration, like 60s, 2m
  • -c, --compact[=false] β€” compacts instead of pretty-printing when output is json; pretty print is the default if output is the terminal
  • --confirm[=false] β€” prompts for confirmation
  • --confirmText="" β€” sets custom confirmation text
  • --currentPage=0 β€” sets the current page which should be returned
  • --customQueryParam=[] β€” adds custom URL query parameters, like --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'
  • --debug[=false] β€” sets very verbose log messages
  • --delay="0ms" β€” delay after each request, like 5ms, 1.2s
  • --delayBefore="0ms" β€” delay before each request, like 5ms, 1.2s
  • --dry[=false] β€” dry run: don't send any data to the server
  • --dryFormat="markdown" β€” dry run output format, like json, dump, markdown or curl
  • --examples[=false] β€” shows examples for the current command
  • --filter=[] β€” applies a client-side filter to the response before returning it to the user
  • --flatten[=false] β€” flattens json output by replacing nested json properties with properties whose names use dot notation
  • -f, --force[=false] β€” does not prompt for confirmation; ignored when using --confirm
  • -H, --header=[] β€” custom headers, like --header "Accept: value, AnotherHeader: myvalue"
  • --includeAll[=false] β€” includes all results by iterating through each page
  • -k, --insecure[=false] β€” allows insecure server connections when using SSL
  • -l, --logMessage="" β€” adds a custom message to the activity log
  • --maxJobs=0 β€” maximum number of jobs; 0 = unlimited (use with caution!)
  • --noAccept[=false] β€” ignoring the Accept header removes the Accept header from requests; however PUT and POST requests will only see the effect
  • --noCache[=false] β€” forces cached responses off (overwrites cache setting)
  • -M, --noColor[=false] β€” no colors when displaying log entries on the console
  • --noLog[=false] β€” disables the activity log for the current command
  • --noProgress[=false] β€” disables progress bars
  • --noProxy[=false] β€” ignores 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, like table, json, csv, csvheader
  • --outputFile="" β€” saves JSON output to file (after select/view)
  • --outputFileRaw="" β€” saves raw response to file (before select/view)
  • --outputTemplate="" β€” jsonnet template to apply to the output
  • -p, --pageSize=5 β€” maximum results per page
  • --progress[=false] β€” shows progress bar; this also disables any other verbose output
  • --proxy="" β€” proxy setting, like http://10.0.0.1:8080
  • -r, --raw[=false] β€” shows raw response; this mode forces output=json and view=off
  • --retries=3 β€” max number of attempts when a failed http call is encountered
  • --select=[] β€” comma separated list of properties to return; wildcards and globstar accepted, like --select 'id,name,type,**.serialNumber'
  • --session="" β€” session configuration
  • --sessionMode="" β€” overrides default session mode for a single command that would normally be disabled
  • -P, --sessionPassword="" β€” overrides session password
  • -U, --sessionUsername="" β€” overrides session username, like 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, like 60s, 2m
  • --totalPages=0 β€” total number of pages to get
  • -v, --verbose[=false] β€” verbose logging
  • --view="auto" β€” uses views when displaying data on the terminal; disable with --view off
  • --withError[=false] β€” errors will be printed on stdout instead of stderr
  • --withTotalElements[=false] β€” asks Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13)
  • -t, --withTotalPages[=false] β€” asks Cumulocity to include the total pages in the response statistics under .statistics.totalPages
  • --workers=1 β€” number of workers

EXAMPLE πŸ“

run it like this, bestie:

$ c8y retentionrules get --id 12345
Get a retention rule

SEE ALSO 🧚


mwah πŸ’– this page is from the c8y(1) manual, dated Jan 1980. periodt. πŸŽ€

πŸ“¦ where this page comes from