c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’… c8y(1) β€” the c8y command, bestie edition

okay so real talk, this is the manual page for c8y (that's the name up top, and yes she's iconic). it's a whole CLI and this particular page is about one specific little corner of it. buckle up πŸŽ€


✨ NAME ✨

c8y-remoteaccess-configurations-get β€” get a remote access configuration. that's the whole vibe. one job, does it slay.


🌸 SYNOPSIS 🌸

c8y remoteaccess configurations get [flags]

like, that's it. that's the incantation. flags are optional but they're also kind of the whole personality, so πŸ‘€


πŸ¦‹ DESCRIPTION πŸ¦‹

get an existing remote access configuration for a device. literally just fetch it. it's giving "lowkey errand, highkey useful" πŸ’–


πŸ”₯ OPTIONS πŸ”₯

these are her options, the ones that belong to get specifically:

  • --device=[] β€” the device. which one? yours. put it here 🫢
  • -h, --help[=false] β€” help for get. the classic "what does anything mean" button.
  • --id=[] β€” the connection. and ngl this one accepts pipeline β€” so you can pipe stuff in 😭

πŸ’œ OPTIONS INHERITED FROM PARENT COMMANDS πŸ’œ

these are the family traits, passed down from the parent commands. there are a lot of them. hydration check, bestie, get a drink πŸ“

  • --abortOnErrors=10 β€” abort the batch when you hit this specified number of errors. ten strikes and she's out.
  • --allowEmptyPipe[=false] β€” don't fail when the piped input (stdin) is empty. empty pipe? no drama.
  • --cache[=false] β€” enable cached responses. memory of a goldfish but make it intentional.
  • --cacheBodyPaths=[] β€” cache should limit hashing to selected paths in the json body. empty means all the values. everything. the whole buffet.
  • --cacheTTL="60s" β€” cache time-to-live (TTL) as a duration, i.e. 60s, 2m. how long before it forgets.
  • -c, --compact[=false] β€” compact instead of pretty-printed output when using json output. pretty print is the default if output is the terminal. (terminal = main character, gets the pretty version.)
  • --confirm[=false] β€” prompt for confirmation. are you sure, bestie?
  • --confirmText="" β€” custom confirmation text. write your own "r u sure tho".
  • --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. she will NOT stop talking.
  • --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, markdown or curl.
  • --examples[=false] β€” show examples for the current command.
  • --filter=[] β€” apply a client side filter to response before returning it to the user. ✨curated✨
  • --flatten[=false] β€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. un-nest her. let her breathe.
  • -f, --force[=false] β€” do not prompt for confirmation. ignored when using --confirm. (so --confirm wins the argument, as she should.)
  • -H, --header=[] β€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue"
  • --includeAll[=false] β€” include all results by iterating through each page. no crumbs left behind.
  • -k, --insecure[=false] β€” allow insecure server connections when using SSL. ⚠️ risky behavior, proceed with your whole chest and your eyes open.
  • -l, --logMessage="" β€” add custom message to the activity log. leave a little note in the group chat.
  • --maxJobs=0 β€” maximum number of jobs. 0 = unlimited (use with caution!). the manpage itself is giving you the side-eye here, so take the hint πŸ’€
  • --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). she overrules.
  • -M, --noColor[=false] β€” don't use colors when displaying log entries on the console. sad beige logs πŸ˜”
  • --noLog[=false] β€” disables the activity log for the current command.
  • --noProgress[=false] β€” disable progress bars. no lil moving bar, just vibes.
  • --noProxy[=false] β€” ignore 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. 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.
  • --progress[=false] β€” show progress bar. this will also disable any other verbose output. bar takes the mic 🎀
  • --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. no filter, no makeup, raw.
  • --retries=3 β€” max number of attempts when a failed http call is encountered. three tries. she believes in you.
  • --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. πŸ” keep her secret.
  • -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. after this, she's leaving the chat.
  • --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.
  • --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. but you could have more πŸ‘€

🌈 EXAMPLE 🌈

here's the moment you've all been waiting for, the demo:

$ c8y remoteaccess configurations get --device device01 --id 1
Get existing remote access configuration

look at her go. effortless. ate and left no crumbs πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘


reminder bestie: --insecure and --maxJobs=0 are the two that the manpage itself flags as spicy. the spice is real. respect the spice 🌢️

kisses and clean exit codes πŸ’… β€” this has been c8y(1), dated Jan 1980 (yes, she's vintage, she's a classic, she's timeless πŸŽ€). periodt. ✨

πŸ“¦ where this page comes from