c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’… 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 for list. 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 is 10, 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. default 0 πŸ“„
  • --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, markdown or curl. 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 shell for/while loops πŸ”„
  • -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 is 5 πŸ“ƒ
  • --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. raw and unfiltered, just how you like it πŸ”₯
  • --retries=3 β€” max number of attempts when a failed http call is encountered. default 3, 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. 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, 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 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. default 1 πŸ‘·

🌈 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 --device is required on the direct version, so pipeline or --device, pick your fighter πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹


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