c8y(1)
π 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 is10--allowEmptyPipe[=false]β Don't fail when piped input is empty (stdin) β default isfalse--cache[=false]β Enable cached responses β default isfalse--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 isfalse--confirm[=false]β Prompt for confirmation β default isfalse--confirmText=""β Custom confirmation text--currentPage=0β Current page which should be returned β default is0--customQueryParam=[]β add custom URL query parameters. i.e.--customQueryParam 'withCustomOption=true,myOtherOption=myvalue'--debug[=false]β Set very verbose log messages β default isfalse--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 isfalse--dryFormat="markdown"β Dry run output format. i.e.json,dump,markdownorcurlβ default is"markdown"--examples[=false]β Show examples for the current command β default isfalse--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 isfalse-f,--force[=false]β Do not prompt for confirmation. Ignored when using--confirmβ default isfalse-H,--header=[]β custom headers. i.e.--header "Accept: value, AnotherHeader: myvalue"--includeAll[=false]β Include all results by iterating through each page β default isfalse-k,--insecure[=false]β Allow insecure server connections when using SSL β default isfalse-l,--logMessage=""β Add custom message to the activity log--maxJobs=0β Maximum number of jobs.0= unlimited (use with caution!) β default is0--noAccept[=false]β Ignore Accept header will remove the Accept header from requests, however PUT and POST requests will only see the effect β default isfalse--noCache[=false]β Force disabling of cached responses (overwrites cache setting) β default isfalse-M,--noColor[=false]β Don't use colors when displaying log entries on the console β default isfalse--noLog[=false]β Disables the activity log for the current command β default isfalse--noProgress[=false]β Disable progress bars β default isfalse--noProxy[=false]β Ignore the proxy settings β default isfalse-n,--nullInput[=false]β Don't read the input (stdin). Useful if using in shell for/while loops β default isfalse-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 is5--progress[=false]β Show progress bar. This will also disable any other verbose output β default isfalse--proxy=""β Proxy setting, i.e.http://10.0.0.1:8080-r,--raw[=false]β Show raw response. This mode will forceoutput=jsonandview=offβ default isfalse--retries=3β Max number of attempts when a failed http call is encountered β default is3--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.peterort1234/peter(with tenant)--silentExit[=false]β Silent status codes do not affect the exit code β default isfalse--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 is0-v,--verbose[=false]β Verbose logging β default isfalse--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 isfalse--withTotalElements[=false]β Request Cumulocity to include the total elements in the response statistics under.statistics.totalElements(introduced in 10.13) β default isfalse-t,--withTotalPages[=false]β Request Cumulocity to include the total pages in the response statistics under.statistics.totalPagesβ default isfalse--workers=1β Number of workers β default is1
π₯ 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
- 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