c8y(1)
π c8y(1) β the c8y manual, but make it make sense
okay bestie, so this is the c8y manual page (yes, the whole thing is called c8y(1), it's giving main character energy) and specifically we're talking about one little subcommand that you're gonna be obsessed with. let's go π
β¨ NAME β¨
c8y-identity-list β get that external identity collection, periodt π
πΈ SYNOPSIS πΈ
c8y identity list [flags]
like, that's it. that's the whole vibe. c8y identity list plus whatever flags you wanna throw at it π¦
π DESCRIPTION π
so basically: you got a managed object already chillin' in your tenant, and you want the collection of external ids that are related to it. that's the whole job. c8y identity list goes and fetches that little collection for you. no cap, that's it π«Ά
π₯ OPTIONS π₯
here's the stuff you can actually pass to this command, queen:
--device=[]β the device id you want, and heads up: it's required (no device, no results, sorry bestie π). it also accepts pipeline, so you can pipe stuff in like a boss π-h,--help[=false]β shows help forlist. your classic "wait what does this do again" button β¨
π OPTIONS INHERITED FROM PARENT COMMANDS π
these are the ones you didn't ask for but you got anyway, because your parent command loves you and also because they're genuinely useful. sit down, there's a lot. π
--abortOnErrors=10β abort the batch when it hits this many errors. the default is10, so it taps out at ten oopsies π--allowEmptyPipe[=false]β don't fail when the piped input (stdin) is empty. so your empty pipe doesn't ruin your whole day π₯Ί--cache[=false]β turn on cached responses. yes, cached. yes, it's faster β‘--cacheBodyPaths=[]β cache should limit hashing of selected paths in the json body. empty means all values get hashed, fyi π§--cacheTTL="60s"β cache time-to-live (TTL) as a duration, i.e.60s,2m. default is"60s"β³-c,--compact[=false]β compact instead of pretty-printed output when using json output. pretty print is the default if the output is the terminal, so this is for when you want it smooshed π¦--confirm[=false]β prompt for confirmation. safety first, babes π--confirmText=""β custom confirmation text, for when you want your prompt to have β¨personalityβ¨--currentPage=0β current page which should be returned. default0π--customQueryParam=[]β add custom URL query parameters, i.e.--customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. go off, customize π¨--debug[=false]β set very verbose log messages. very. verbose. π--delay="0ms"β delay after each request, i.e.5ms,1.2s. default"0ms"β±οΈ--delayBefore="0ms"β delay before each request, i.e.5ms,1.2s. default"0ms"β±οΈ--dry[=false]β dry run. don't send any data to the server. nothing leaves the house π--dryFormat="markdown"β dry run output format, i.e.json,dump,markdownorcurl. default is"markdown"π--examples[=false]β show examples for the current command. yes please, show me π--filter=[]β apply a client side filter to the response before returning it to the user. sift it before you see it π«§--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 move, love it π-H,--header=[]β custom headers, i.e.--header "Accept: value, AnotherHeader: myvalue"π¨--includeAll[=false]β include all results by iterating through each page. all of them. every last one π-k,--insecure[=false]β allow insecure server connections when using SSL. careful bestie β οΈ-l,--logMessage=""β add a custom message to the activity log ποΈ--maxJobs=0β maximum number of jobs.0= unlimited (use with caution!). and yes the caution is in the original, i'm not making that up π--noAccept[=false]β ignore Accept header; this 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). cache who? never met her π-M,--noColor[=false]β don't use colors when displaying log entries on the console. for the monochrome girlies π€--noLog[=false]β disables the activity log for the current command π--noProgress[=false]β disable progress bars. no little spinning thing for you π--noProxy[=false]β ignore the proxy settings. proxy? don't know her πͺ-n,--nullInput[=false]β don't read the input (stdin). useful if you're using it in shellfor/whileloops π-o,--output="table"β output format, i.e.table,json,csv,csvheader. default is"table"π--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. default is5π--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. raw and unfiltered, just how you like it π₯--retries=3β max number of attempts when a failed http call is encountered. default3, so it tries three times before it gives up π€--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 π€--silentStatusCodes=""β status codes which will not print out an error message π--timeout="600s"β request timeout duration, i.e.60s,2m. default"600s"β--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. default is"auto"π--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 in10.13) π’-t,--withTotalPages[=false]β request Cumulocity to include the total pages in the response statistics under.statistics.totalPagesπ’--workers=1β number of workers. default1π·
π EXAMPLE π
okay this is the part where it gets fun, look:
$ c8y identity list --device 12345
Get a list of external ids for a device
that one gets you a list of external ids for a device. simple. iconic. π
$ c8y devices list | c8y identity list
Get the external ids for each device using pipeline
and this one? pipe c8y devices list into c8y identity list and you get the external ids for each device using pipeline. that's the pipeline fantasy right there, we love a combo move π
real talk though: don't forget--deviceis required on the direct version, so pipeline or--device, pick your fighter π
π¦ SEE ALSO π¦
c8y-identity(1)β go read the parent one too, iykyk π
and that's the whole page, bestie! this beauty comes to you from the c8y(1) manual, dated Jan 1980 (yes, 1980, she's vintage, she's timeless, she's a legend πβ¨). now go list some identities, slay, and remember: every flag you use is a little main character moment πΈπ
π¦ 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