c8y(1)
π¦ 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,childAssetsandchildDevices). 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 theassetParentsproperty with additional information about the groups. Group chat energy, but for managed objects. π--withLatestValues=falseβ¨FEATURE_PREVIEWβ© β Includec8y_LatestMeasurementsfragment, 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,markdownorcurl. 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 forceoutput=jsonandview=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.peterort1234/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 in10.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
- 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