c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

c8y-tenants-disable β€” okay so this is literally the command that disables or suspends a tenant. Bestie, it's giving "pause button for a whole company" energy. πŸŽ€


πŸŽ€ SYNOPSIS πŸŽ€

c8y tenants disable [flags]

✨ DESCRIPTION ✨

So you've got an existing tenant and you need to disable or suspend it? This is the slay command for that. It's the off switch, the "you're on timeout" button, theβ€”okay you get it. πŸ’…


🌸 OPTIONS 🌸

  • -d, --data=[] β€” static data to be applied to body. accepts json or shorthand json, like --data 'value1=1,my.nested.value=100' β€” yes, that shorthand is iconic
  • -h, --help[=false] β€” help for disable (shows you the tea)
  • --id="" β€” Tenant id (accepts pipeline, so you can pipe it in fr fr)
  • --processingMode="" β€” Cumulocity processing mode
  • --template="" β€” Body template
  • --templateVars=[] β€” Body template variables

πŸ¦‹ OPTIONS INHERITED FROM PARENT COMMANDS πŸ¦‹

These are the hand-me-downs from c8y-tenants and they are lowkey doing the most. Every single one is here, bestie, no cap:

  • --abortOnErrors=10 β€” Abort batch when reaching specified number of errors β€” default is 10
  • --allowEmptyPipe[=false] β€” Don't fail when piped input is empty (stdin) β€” default is false
  • --cache[=false] β€” Enable cached responses β€” default is false
  • --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 β€” default is "60s"
  • -c, --compact[=false] β€” Compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal β€” default is false
  • --confirm[=false] β€” Prompt for confirmation β€” default is false
  • --confirmText="" β€” Custom confirmation text
  • --currentPage=0 β€” Current page which should be returned β€” default is 0
  • --customQueryParam=[] β€” add custom URL query parameters. i.e. --customQueryParam 'withCustomOption=true,myOtherOption=myvalue'
  • --debug[=false] β€” Set very verbose log messages β€” default is false
  • --delay="0ms" β€” delay after each request, i.e. 5ms, 1.2s β€” default is "0ms"
  • --delayBefore="0ms" β€” delay before each request, i.e. 5ms, 1.2s β€” default is "0ms"
  • --dry[=false] β€” Dry run. Don't send any data to the server β€” default is false
  • --dryFormat="markdown" β€” Dry run output format. i.e. json, dump, markdown or curl β€” default is "markdown"
  • --examples[=false] β€” Show examples for the current command β€” default is false
  • --filter=[] β€” Apply a client side filter to response before returning it to the user
  • --flatten[=false] β€” flatten json output by replacing nested json properties with properties where their names are represented by dot notation β€” default is false
  • -f, --force[=false] β€” Do not prompt for confirmation. Ignored when using --confirm β€” default is false
  • -H, --header=[] β€” custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue"
  • --includeAll[=false] β€” Include all results by iterating through each page β€” default is false
  • -k, --insecure[=false] β€” Allow insecure server connections when using SSL β€” default is false
  • -l, --logMessage="" β€” Add custom message to the activity log
  • --maxJobs=0 β€” Maximum number of jobs. 0 = unlimited (use with caution!) β€” default is 0
  • --noAccept[=false] β€” Ignore Accept header will remove the Accept header from requests, however PUT and POST requests will only see the effect β€” default is false
  • --noCache[=false] β€” Force disabling of cached responses (overwrites cache setting) β€” default is false
  • -M, --noColor[=false] β€” Don't use colors when displaying log entries on the console β€” default is false
  • --noLog[=false] β€” Disables the activity log for the current command β€” default is false
  • --noProgress[=false] β€” Disable progress bars β€” default is false
  • --noProxy[=false] β€” Ignore the proxy settings β€” default is false
  • -n, --nullInput[=false] β€” Don't read the input (stdin). Useful if using in shell for/while loops β€” default is false
  • -o, --output="table" β€” Output format i.e. table, json, csv, csvheader β€” default is "table"
  • --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 β€” default is 5
  • --progress[=false] β€” Show progress bar. This will also disable any other verbose output β€” default is false
  • --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 β€” default is false
  • --retries=3 β€” Max number of attempts when a failed http call is encountered β€” default is 3
  • --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
  • -U, --sessionUsername="" β€” Override session username. i.e. peter or t1234/peter (with tenant)
  • --silentExit[=false] β€” Silent status codes do not affect the exit code β€” default is false
  • --silentStatusCodes="" β€” Status codes which will not print out an error message
  • --timeout="600s" β€” Request timeout duration, i.e. 60s, 2m β€” default is "600s"
  • --totalPages=0 β€” Total number of pages to get β€” default is 0
  • -v, --verbose[=false] β€” Verbose logging β€” default is false
  • --view="auto" β€” Use views when displaying data on the terminal. Disable using --view off β€” default is "auto"
  • --withError[=false] β€” Errors will be printed on stdout instead of stderr β€” default is false
  • --withTotalElements[=false] β€” Request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13) β€” default is false
  • -t, --withTotalPages[=false] β€” Request Cumulocity to include the total pages in the response statistics under .statistics.totalPages β€” default is false
  • --workers=1 β€” Number of workers β€” default is 1

πŸ”₯ EXAMPLE πŸ”₯

$ c8y tenants disable --id "mycompany"
Disable a tenant (from the management tenant)

Okay so literally you just pass the tenant id and it does the thing. The example shows disabling "mycompany" from the management tenant. Iconic. πŸ™ˆ


🫢 SEE ALSO 🫢

c8y-tenants(1) β€” go check out the parent command for the full tenant tea πŸ’œ


✨ that's the whole vibe ✨ β€” this page is from the c8y manual, dated Jan 1980 (yes, the vibe is vintage but the command is timeless, bestie). Stay slaying those tenants. πŸ’…πŸŽ€

πŸ“¦ where this page comes from