c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸŽ€ 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 for get. 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 to false to improve query performance. performance said β€œlet me breathe” 😭
  • --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 fr fr 🧚
  • --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. it's giving family tree but make it platform ✨
  • --withLatestValues=false ⟨FEATURE_PREVIEW⟩ β€” Include c8y_LatestMeasurements fragment, 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, markdown or curl. 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 --confirm wins πŸ’…
  • -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 shell for/while loops. 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 force output=json and view=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. peter or t1234/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 in 10.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