create_cost_centers
Note:
Do not use this verb to create Chargeback cost centers. This is a generic EM framework verb that is not supported for Chargeback cost centers and operations. Use the Chargeback UI to create Chargeback cost centers. For more information on Chargeback and its UI see: Using Chargeback.Standard Mode
emcli create_cost_centers cost-centers="cost center name,entity name"[;"cost center name,entity name";…] [-tenant_name="tenant name"] [ ] indicates that the parameter is optional.
Interactive or Script Mode
create_cost_centers (cost-centers="cost center name,entity name"[;"cost center name,entity name";…] [,tenant_name="tenant name"]) [ ] indicates that the parameter is optional.
Options
-
cost_centers
Specifies one or more cost centers to create and associate with organizational entities, which may be a line-of-business or a department. The organizational entity must already exist. Use a comma to separate the cost center name from the entity name.
-
tenant_name
Specifies the name of the tenant to which the organizational entity associated with the cost center belongs. Default is the tenant of the logged-in user.
Exit Codes
0 if successful. A non-zero value indicates that verb processing was unsuccessful.
Examples
Example 1
The following example creates two cost centers, receivables and payables, both associated with the accounting department.
emcli create_cost_centers -cost_centers="receivables,accounting;payables,accounting"
Example 2
The following example creates two cost centers, coders and testers, the former associated with the development department and the latter associated with the QA department. The organizational entities belong to the engineering tenant.
emcli create_cost_centers -cost_centers="coders,development;testers,QA" -tenant_name="engineering"