1"use strict";(globalThis.webpackChunkgo_c_8_y_cli=globalThis.webpackChunkgo_c_8_y_cli||[]).push([[6399],{535(e,t,n){n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"cli/c8y/tenants/c8y_tenants_update","title":"c8y tenants update","description":"Update tenant","source":"@site/docs/cli/c8y/tenants/c8y_tenants_update.md","sourceDirName":"cli/c8y/tenants","slug":"/cli/c8y/tenants/c8y_tenants_update","permalink":"/docs/cli/c8y/tenants/c8y_tenants_update","draft":false,"unlisted":false,"editUrl":"https://github.com/reubenmiller/go-c8y-cli/edit/v2/docs/go-c8y-cli/docs/cli/c8y/tenants/c8y_tenants_update.md","tags":[],"version":"current","frontMatter":{"category":"tenants","title":"c8y tenants update"},"sidebar":"cli","previous":{"title":"c8y tenants listReferences","permalink":"/docs/cli/c8y/tenants/c8y_tenants_listReferences"},"next":{"title":"c8y tenants tfa","permalink":"/docs/cli/c8y/tenants/tfa/c8y_tenants_tfa"}}');var a=n(74848),r=n(28453);const o={category:"tenants",title:"c8y tenants update"},i=void 0,l={},c=[{value:"Synopsis",id:"synopsis",level:3},{value:"Examples",id:"examples",level:3},{value:"Options",id:"options",level:3},{value:"Options inherited from parent commands",id:"options-inherited-from-parent-commands",level:3}];function d(e){const t={code:"code",h3:"h3",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.p,{children:"Update tenant"}),"\n",(0,a.jsx)(t.h3,{id:"synopsis",children:"Synopsis"}),"\n",(0,a.jsx)(t.p,{children:"Update an existing tenant"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{children:"c8y tenants update [flags]\n"})}),"\n",(0,a.jsx)(t.h3,{id:"examples",children:"Examples"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{children:'$ c8y tenants update --id "mycompany" --contactName "John Smith"\nUpdate a tenant by name (from the management tenant)\n \n'})}),"\n",(0,a.jsx)(t.h3,{id:"options",children:"Options"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{children:" --adminEmail string Email address of the tenant's administrator\n --adminName string Username of the tenant administrator\n --adminPass string Password of the tenant administrator\n --allowCreateTenants Allow the tenant to create sub-tenants\n --contactName string A contact name, for example an administrator, of the tenant\n --contactPhone string An international contact phone number\n -d, --data stringArray static data to be applied to body. accepts json or shorthand json, i.e. --data 'value1=1,my.nested.value=100'\n --domain string Domain name to be used for the tenant. Maximum 256 characters\n -h, --help help for update\n --id string Tenant id (accepts pipeline)\n --name string Company name. Maximum 256 characters\n --processingMode string Cumulocity processing mode\n --template string Body template\n --templateVars stringArray Body template variables\n"})}),"\n",(0,a.jsx)(t.h3,{id:"options-inherited-from-parent-commands",children:"Options inherited from parent commands"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{children:' --abortOnErrors int Abort batch when reaching specified number of errors (default 10)\n --allowEmptyPipe Don\'t fail when piped input is empty (stdin)\n --cache Enable cached responses\n --cacheBodyPaths strings Cache should limit hashing of selected paths in the json body. Empty indicates all values\n --cacheTTL string Cache time-to-live (TTL) as a duration, i.e. 60s, 2m (default "60s")\n -c, --compact Compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal\n --confirm Prompt for confirmation\n --confirmText string Custom confirmation text\n --currentPage int Current page which should be returned\n --customQueryParam strings add custom URL query parameters. i.e. --customQueryParam \'withCustomOption=true,myOtherOption=myvalue\'\n --debug Set very verbose log messages\n --delay string delay after each request, i.e. 5ms, 1.2s (default "0ms")\n --delayBefore string delay before each request, i.e. 5ms, 1.2s (default "0ms")\n --dry Dry run. Don\'t send any data to the server\n --dryFormat str
1ing Dry run output format. i.e. json, dump, markdown or curl (default "markdown")\n --examples Show examples for the current command\n --filter stringArray Apply a client side filter to response before returning it to the user\n --flatten flatten json output by replacing nested json properties with properties where their names are represented by dot notation\n -f, --force Do not prompt for confirmation. Ignored when using --confirm\n -H, --header strings custom headers. i.e. --header "Accept: value, AnotherHeader: myvalue"\n --includeAll Include all results by iterating through each page\n -k, --insecure Allow insecure server connections when using SSL\n -l, --logMessage string Add custom message to the activity log\n --maxJobs int Maximum number of jobs. 0 = unlimited (use with caution!)\n --noAccept Ignore Accept header will remove the Accept header from requests, however PUT and POST requests will only see the effect\n --noCache Force disabling of cached responses (overwrites cache setting)\n -M, --noColor Don\'t use colors when displaying log entries on the console\n --noLog Disables the activity log for the current command\n --noProgress Disable progress bars\n --noProxy Ignore the proxy settings\n -n, --nullInput Don\'t read the input (stdin). Useful if using in shell for/while loops\n -o, --output string Output format i.e. table, json, csv, csvheader (default "table")\n --outputFile string Save JSON output to file (after select/view)\n --outputFileRaw string Save raw response to file (before select/view)\n --outputTemplate string jsonnet template to apply to the output\n -p, --pageSize int Maximum results per page (default 5)\n --progress Show progress bar. This will also disable any other verbose output\n --proxy string Proxy setting, i.e. http://10.0.0.1:8080\n -r, --raw Show raw response. This mode will force output=json and view=off\n --retries int Max number of attempts when a failed http call is encountered (default 3)\n --select stringArray Comma separated list of properties to return. wildcards and globstar accepted, i.e. --select \'id,name,type,**.serialNumber\'\n --session string Session configuration\n --sessionMode string Override default session mode for a single command which would normally be disabled\n -P, --sessionPassword string Override session password\n -U, --sessionUsername string Override session username. i.e. peter or t1234/peter (with tenant)\n --silentExit Silent status codes do not affect the exit code\n --silentStatusCodes string Status codes which will not print out an error message\n --timeout string Request timeout duration, i.e. 60s, 2m (default "600s")\n --totalPages int Total number of pages to get\n -v, --verbose Verbose logging\n --view string Use views when displaying data on the terminal. Disable using --view off (default "auto")\n --withError Errors will be printed on stdout instead of stderr\n --withTotalElements Request Cumulocity to include the total elements in the response statistics under .statistics.totalElements (introduced in 10.13)\n -t, --withTotalPages Request Cumulocity to include the total pages in the response statistics under .statistics.totalPages\n --workers int Number of workers (default 1)\n'})})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}},28453(e,t,n){n.d(t,{R:()=>o,x:()=>i});var s=n(96540);const a={},r=s.createContext(a);function o(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.