c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ¦‹ c8y-agents-get β€” Get agent (from the c8y(1) manual) πŸ¦‹

🌸 NAME 🌸

c8y-agents-get β€” Get agent. That’s the whole vibe, bestie. πŸ’…

✨ SYNOPSIS ✨

c8y agents get [flags]

πŸ’– DESCRIPTION πŸ’–

Get an agent's managed object representation. No cap, that’s what this command is here for β€” it pulls up the managed object version of an agent for you. 🫢

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help[=false] β€” help for get. The classic β€œwait, what does this do again?” button. πŸ™ˆ
  • --id=[] β€” Agent ID (required) (accepts pipeline). Yes, it’s required, so don’t forget it β€” and it can take piped input too. πŸ”₯
  • --skipChildrenNames[=false] β€” Don't include the child devices names in the response. This can improve the API response because the names don't need to be retrieved. Basically: skip the name lookup, let the API breathe. ✨
  • --withChildren[=false] β€” Determines if children with ID and name should be returned when fetching the managed object. Set it to false to improve query performance. Performance said β€œthank you” in advance. ⭐
  • --withChildrenCount[=false] β€” When set to true, the returned result will contain the total number of children in the respective objects (childAdditions, childAssets and childDevices). Counting the little guys, iconic. πŸ‘‘
  • --withGroups[=false] β€” When set to true it returns additional information about the groups to which the searched managed object belongs. This results in setting the assetParents property with additional information about the groups. Group chat energy, but for managed objects. πŸ’œ
  • --withLatestValues=false ⟨FEATURE_PREVIEW⟩ β€” Include c8y_LatestMeasurements fragment, which contains the latest measurement values reported by the device to the platform. Feature-preview behavior, so peek responsibly. 🌈
  • --withParents[=false] β€” Include a flat list of all parents and grandparents of the given object. Family tree reveal, but flat. 🌸

🧬 OPTIONS INHERITED FROM PARENT COMMANDS 🧬

  • --abortOnErrors=10 β€” Abort batch when reaching specified number of errors. Ten strikes and the batch is out. πŸ’€
  • --allowEmptyPipe[=false] β€” Don't fail when piped input is empty (stdin). Empty pipe? Not today, bestie. 🫢
  • --cache[=false] β€” Enable cached responses. Snappy and lowkey efficient. ✨
  • --cacheBodyPaths=[] β€” Cache should limit hashing of selected paths in the json body. Empty indicates all values. πŸŽ€
  • --cacheTTL="60s" β€” Cache time-to-live (TTL) as a duration, i.e. 60s, 2m. Cute little expiration timer. ⏳
  • -c, --compact[=false] β€” Compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal. Compact mode is giving β€œminimalist queen.” πŸ’…
  • --confirm[=false] β€” Prompt for confirmation. A little β€œare you sure?” moment. πŸ₯Ί
  • --confirmText="" β€” Custom confirmation text. Make the β€œare you sure?” sound like you. πŸ’–
  • --currentPage=0 β€” Current page which should be returned. Page zero, the opener. πŸ“–
  • --customQueryParam=[] β€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. Custom query chaos, but organized. πŸ”₯
  • --debug[=false] β€” Set very verbose log messages. Turn the volume all the way up. πŸ”Š
  • --delay="0ms" β€” delay after each request, i.e. 5ms, 1.2s. A tiny pause between moves. πŸ¦‹
  • --delayBefore="0ms" β€” delay before each request, i.e. 5ms, 1.2s. Stretch first, then request. 🌸
  • --dry[=false] β€” Dry run. Don't send any data to the server. Rehearsal mode, no cap. 🎭
  • --dryFormat="markdown" β€” Dry run output format. i.e. json, dump, markdown or curl. Pick your rehearsal outfit. πŸ‘—
  • --examples[=false] β€” Show examples for the current command. Bestie behavior: show, don’t just tell. ✨
  • --filter=[] β€” Apply a client side filter to response before returning it to the user. Filter it before it hits your feed. 🧚
  • --flatten[=false] β€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation. Nested but make it flat. 🫢
  • -f, --force[=false] β€” Do not prompt for confirmation. Ignored when using --confirm. Bold, but read the fine print. πŸ’…
  • -H, --header=[] β€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue". Headers with main character energy. πŸ‘‘
  • --includeAll[=false] β€” Include all results by iterating through each page. All the pages, all the results, full commitment. πŸ”₯
  • -k, --insecure[=false] β€” Allow insecure server connections when using SSL. This is the risky little shortcut β€” be careful, bestie. 😭
  • -l, --logMessage="" β€” Add custom message to the activity log. Leave your mark. πŸ’Œ
  • --maxJobs=0 β€” Maximum number of jobs. 0 = unlimited (use with caution!). Unlimited jobs is powerful and a little unhinged. πŸ’€
  • --noAccept[=false] β€” Ignore Accept header will remove the Accept header from requests, however PUT and POST requests will only see the effect. Weird but true, iykyk. 🫠
  • --noCache[=false] β€” Force disabling of cached responses (overwrites cache setting). Cache? Never heard of her. πŸ™ˆ
  • -M, --noColor[=false] β€” Don't use colors when displaying log entries on the console. Monochrome moment. πŸ–€
  • --noLog[=false] β€” Disables the activity log for the current command. Log off, literally. ✌️
  • --noProgress[=false] β€” Disable progress bars. No little bar, just vibes. 🌈
  • --noProxy[=false] β€” Ignore the proxy settings. Proxy who? πŸ’…
  • -n, --nullInput[=false] β€” Don't read the input (stdin). Useful if using in shell for/while loops. Loops said β€œplease don’t block.” πŸŒ€
  • -o, --output="table" β€” Output format i.e. table, json, csv, csvheader. Pick your aesthetic. πŸŽ€
  • --outputFile="" β€” Save JSON output to file (after select/view). The post-glow keepsake. πŸ’Ύ
  • --outputFileRaw="" β€” Save raw response to file (before select/view). The unfiltered director’s cut. 🎬
  • --outputTemplate="" β€” jsonnet template to apply to the output. Template it, slay it. ✨
  • -p, --pageSize=5 β€” Maximum results per page. Five at a time, cute and manageable. πŸ“
  • --progress[=false] β€” Show progress bar. This will also disable any other verbose output. Progress bar enters, verbose output leaves. πŸšͺ
  • --proxy="" β€” Proxy setting, i.e. http://10.0.0.1:8080. Route it through the proxy. πŸŒ‰
  • -r, --raw[=false] β€” Show raw response. This mode will force output=json and view=off. Raw and unfiltered, periodt. πŸ”₯
  • --retries=3 β€” Max number of attempts when a failed http call is encountered. Three tries, then we assess. 😀
  • --select=[] β€” Comma separated list of properties to return. wildcards and globstar accepted, i.e. --select 'id,name,type,**.serialNumber'. Choose your faves. πŸ’–
  • --session="" β€” Session configuration. Session setup, very demure. πŸŽ€
  • --sessionMode="" β€” Override default session mode for a single command which would normally be disabled. One-command override, iconic. πŸ‘‘
  • -P, --sessionPassword="" β€” Override session password. Secret secret. 🀫
  • -U, --sessionUsername="" β€” Override session username. i.e. peter or t1234/peter (with tenant). Name tag, but make it auth. 🏷️
  • --silentExit[=false] β€” Silent status codes do not affect the exit code. Quiet exit, loud boundaries. πŸ’…
  • --silentStatusCodes="" β€” Status codes which will not print out an error message. Some codes get the silent treatment. πŸ™Š
  • --timeout="600s" β€” Request timeout duration, i.e. 60s, 2m. Ten minutes max, bestie. ⏰
  • --totalPages=0 β€” Total number of pages to get. Page count destination. πŸ—ΊοΈ
  • -v, --verbose[=false] β€” Verbose logging. Tell me everything. πŸ‘€
  • --view="auto" β€” Use views when displaying data on the terminal. Disable using --view off. Auto view is the default vibe. πŸ¦‹
  • --withError[=false] β€” Errors will be printed on stdout instead of stderr. Error messages switching lanes. πŸš—
  • --withTotalElements[=false] β€” Request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13). Stats with receipts. 🧾
  • -t, --withTotalPages[=false] β€” Request Cumulocity to include the total pages in the response statistics under .statistics.totalPages. Page-count lore. πŸ“š
  • --workers=1 β€” Number of workers. One worker, one dream. πŸ’ͺ

πŸ’« EXAMPLE πŸ’«

$ c8y agents get --id 12345
Get agent by id

That’s the whole little demo: fetch the agent by ID and get β€œGet agent by id.” Short, sweet, slay. ✨

πŸ‘€ SEE ALSO πŸ‘€

  • c8y-agents(1) β€” the parent-command bestie you should also check out. 🫢

xoxo, your c8y(1) manual bestie β€” Jan 1980 edition πŸŽ€πŸ’–

πŸ“¦ where this page comes from