c8y(1)
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 forget--id=[]β Retention ruleid(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, like60s,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, like5ms,1.2s--delayBefore="0ms"β delay before each request, like5ms,1.2s--dry[=false]β dry run: don't send any data to the server--dryFormat="markdown"β dry run output format, likejson,dump,markdownorcurl--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, liketable,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, likehttp://10.0.0.1:8080-r,--raw[=false]β shows raw response; this mode forcesoutput=jsonandview=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, likepeterort1234/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, like60s,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 π§
c8y-retentionrules(1)β the parent-command page, go peek
mwah π this page is from the c8y(1) manual, dated Jan 1980. 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