c8y(1)
π NAME π
c8y-devices-get β Get device
okay so welcome to the c8y(1) manual, bestie β this page is specifically about c8y-devices-get, and it's giving βfetch me one existing deviceβ energy. π
β¨
πΈ SYNOPSIS πΈ
c8y devices get [flags]
π¦ DESCRIPTION π¦
Get an existing device. That's the whole vibe: you already have a device, and now you want it back. ππ
π OPTIONS π
-h,--help[=false]β help forget. your little βwhat does this do again?β button π«Ά--id=[]β Device ID (required) (accepts pipeline). yes bestie, required β don't skip it π--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. lowkey a speed-up move β¨--withChildren[=false]β Determines if children with ID and name should be returned when fetching the managed object. Set it tofalseto improve query performance. performance said βlet me breatheβ π--withChildrenCount[=false]β When set totrue, the returned result will contain the total number of children in the respective objects (childAdditions,childAssetsandchildDevices). counting the little guys fr fr π§--withGroups[=false]β When set totrueit returns additional information about the groups to which the searched managed object belongs. This results in setting theassetParentsproperty with additional information about the groups. it's giving family tree but make it platform β¨--withLatestValues=falseβ¨FEATURE_PREVIEWβ© β Includec8y_LatestMeasurementsfragment, which contains the latest measurement values reported by the device to the platform. feature preview bestie, so treat it with main-character awareness π--withParents[=false]β Include a flat list of all parents and grandparents of the given object. ancestry dot com but for your managed object π
π OPTIONS INHERITED FROM PARENT COMMANDS π
--abortOnErrors=10β Abort batch when reaching specified number of errors. safety rails, bestie π--allowEmptyPipe[=false]β Don't fail when piped input is empty (stdin). empty pipe? not a crisis π«Ά--cache[=false]β Enable cached responses. ~memorization~ β¨--cacheBodyPaths=[]β Cache should limit hashing of selected paths in the json body. Empty indicates all values. hashing with boundaries, iykyk π₯--cacheTTL="60s"β Cache time-to-live (TTL) as a duration, i.e.60s,2m. cache said βI'm not staying foreverβ π-c,--compact[=false]β Compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal. terminal gets the pretty version by default, no cap π--confirm[=false]β Prompt for confirmation. a tiny βu sure?β moment π--confirmText=""β Custom confirmation text. make the βu sure?β say what you want π¦--currentPage=0β Current page which should be returned. page number moment π--customQueryParam=[]β add custom URL query parameters. i.e.--customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. custom query crumbs π--debug[=false]β Set very verbose log messages. lore dump mode π--delay="0ms"β delay after each request, i.e.5ms,1.2s. cozy little pause after π₯--delayBefore="0ms"β delay before each request, i.e.5ms,1.2s. cozy little pause before πΈ--dry[=false]β Dry run. Don't send any data to the server. rehearsal era π--dryFormat="markdown"β Dry run output format. i.e.json,dump,markdownorcurl. pick your rehearsal outfit π--examples[=false]β Show examples for the current command. show me the moves β¨--filter=[]β Apply a client side filter to response before returning it to the user. client-side filtering, slay π¦--flatten[=false]β flatten json output by replacing nested json properties with properties where their names are represented by dot notation. nested? not anymore bestie πͺ-f,--force[=false]β Do not prompt for confirmation. Ignored when using--confirm. bold choice energy, but--confirmwins π-H,--header=[]β custom headers. i.e.--header "Accept: value, AnotherHeader: myvalue". header drip π--includeAll[=false]β Include all results by iterating through each page. collect every crumb π₯-k,--insecure[=false]β Allow insecure server connections when using SSL. β οΈ insecure bestie, it's literally in the name, proceed with awareness-l,--logMessage=""β Add custom message to the activity log. leave a lil note π--maxJobs=0β Maximum number of jobs.0= unlimited (use with caution!). unlimited said βbe carefulβ for real π--noAccept[=false]β Ignore Accept header will remove the Accept header from requests, however PUT and POST requests will only see the effect. specific little header behavior, iykyk π--noCache[=false]β Force disabling of cached responses (overwrites cache setting). cache off, periodt π-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. no receipts, bestie π--noProgress[=false]β Disable progress bars. no lil bar doing its thing π«Ά--noProxy[=false]β Ignore the proxy settings. proxy? never met her π-n,--nullInput[=false]β Don't read the input (stdin). Useful if using in shellfor/whileloops. loop girlies know πΈ-o,--output="table"β Output format i.e.table,json,csv,csvheader. choose your output aesthetic β¨--outputFile=""β Save JSON output to file (after select/view). save the after version πΎ--outputFileRaw=""β Save raw response to file (before select/view). save the before version π«Ά--outputTemplate=""β jsonnet template to apply to the output. template time π-p,--pageSize=5β Maximum results per page. page size said five π--progress[=false]β Show progress bar. This will also disable any other verbose output. progress bar main character moment π--proxy=""β Proxy setting, i.e.http://10.0.0.1:8080. proxy address goes here π-r,--raw[=false]β Show raw response. This mode will forceoutput=jsonandview=off. raw and unfiltered, bestie π--retries=3β Max number of attempts when a failed http call is encountered. try again energy, up to three β¨--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 vibes π--sessionMode=""β Override default session mode for a single command which would normally be disabled. one-command override, iykyk π-P,--sessionPassword=""β Override session password. password override, keep it cute and private π-U,--sessionUsername=""β Override session username. i.e.peterort1234/peter(with tenant). username glow-up π--silentExit[=false]β Silent status codes do not affect the exit code. silent but not affecting exit π«Ά--silentStatusCodes=""β Status codes which will not print out an error message. quiet codes list π€«--timeout="600s"β Request timeout duration, i.e.60s,2m. patience has a limit, bestie β³--totalPages=0β Total number of pages to get. how many pages? this many π¦-v,--verbose[=false]β Verbose logging. tell me everything π£οΈ--view="auto"β Use views when displaying data on the terminal. Disable using--view off. view said auto by default β¨--withError[=false]β Errors will be printed on stdout instead of stderr. error placement tea β--withTotalElements[=false]β Request Cumulocity to include the total elements in the response statistics under.statistics.totalElements(introduced in10.13). stats era π’-t,--withTotalPages[=false]β Request Cumulocity to include the total pages in the response statistics under.statistics.totalPages. more stats, more slay π--workers=1β Number of workers. worker bees count π
π¦ EXAMPLE π¦
$ c8y devices get --id 12345
Get device by id. simple, iconic, done. π
π SEE ALSO π
okay bye bestie β this page's footer energy is date Jan 1980 and source/version stamp c8y(1). historical cutie behavior fr fr ππ¦π
π¦ 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