tencent cloud

Cost Allocation Units
Last updated:2026-02-04 18:39:41
Cost Allocation Units
Last updated: 2026-02-04 18:39:41

Background

Cloud resources are important costs. On the basis of querying and analyzing cloud resource costs by standard dimensions such as cloud products or resources, users expect the analysis and control of cloud costs by corporate (or personal) cost budget management dimensions such as departments and projects. To meet this demand, Tencent Cloud provides complete cost allocation management solutions and product capabilities based on such scenarios, realizing automatic collection and allocation of cloud resource costs according to the user's own cost allocation organization, and ultimately achieving lean analysis and control of cloud resource costs.
Currently, Tencent Cloud provides two cost allocation tools: cost allocation tags and cost allocation units. These tools can help you customize management and statistical analysis dimensions, thereby better fitting your various requirements for bill and cost analysis.
Tags are a collection used by users for classified management of resources based on their own needs. Tags used for cost allocation and cost analysis are called cost allocation tags, which can be identified and managed on the cost allocation tag side. Cost allocation tags are a simple cost allocation tool with relatively simple features, and are suitable for scenarios where cost allocation by a single dimension is required.
For example, a company may want to count the consumption of its cloud resources by project. It can create a tag, bind the created tag to resources, and set the tag as a cost allocation tag. For more details on how to operate cost allocation tags, see Cost Allocation Tags.
Cost allocation units are a custom organizational structure. You can customize cost allocation names and rules based on your cost analysis needs, and collect resource costs to achieve cost allocation. Compared to cost allocation tags, cost allocation units are a more advanced cost allocation tool with more powerful and flexible features, and are suitable for scenarios where cost allocation by multiple dimensions is required.
For example, a company with a more complex multi-level organizational structure may want to count the consumption of its cloud resources by its internal structure. In this case, you can create and manage your own cost allocation units, and set cost allocation rules and allocation proportion. When costs are incurred, Tencent Cloud will automatically collect them into corresponding cost allocation units based on the settings of cost allocation units, achieving automatic cost allocation and management.

Cost Allocation Units

Overview of Cost Allocation Units

Cost allocation units are a tool used to collect and aggregate cloud resource costs or expenses based on rules. You can set cost allocation names and rules according to your cost analysis dimensions to collect Tencent Cloud resource costs and ultimately achieve cost allocation. They are used to establish a hierarchical structure in the form of a directory tree, and filter and collect cloud costs for analysis according to your custom structure to meet the user's multidimensional management and analysis needs for bill and cost analysis.

Features of Cost Allocation Units

You can customize the hierarchical structure of cost allocation units based on the needs of organizations such as departments, projects, and business lines. All costs incurred by resource instances can be classified accordingly. Before using cost allocation units, you need to establish them and define collection or sharing rules, ultimately realizing the viewing of costs aggregated by cost allocation units at each level. The practical steps are as follows:





Step 1: Creating Cost Allocation Units

You can go to Cost Allocation Units to create a directory tree of cost allocation units, customize a hierarchical structure (up to 6 levels are supported), and establish your own cost allocation units.

Step 2: Setting Collection Rules

Cost allocation units at intermediate level are solely for hierarchical classification. You can choose last-level cost allocation units to set collection rules (up to 3 layers of condition groups are supported).
According to the collection rules for cost allocation units, the system will assign resource instances to specified cost allocation units.
On the Collected Resources page, you can query the cost details of resources with set collection rules, and perform operations such as setting custom fields, filtering, and download.
If collection rules have been set, you can manage them on the collection rules page. Operations such as editing rules and clearing rules are supported.

Step 3: Defining Sharing Rules

For cloud resources shared by multiple organizations (such as networks and resource packages), sharing rules can be created to fairly allocate costs of shared resources among the organizations.
According to the configured sharing rules, the system will allocate costs to be shared to other cost allocation units.
If sharing rules have been set, you can manage them on the Sharing Rule Management page. Operations such as deletion and editing are supported.

Step 4: Querying Cost Allocation Results

By viewing the Resource Directory, you can obtain a list of information on all Tencent Cloud resource instances currently in use, as well as current allocation units and matching rules.
Go to Cost Allocation Bill to view resource instance costs aggregated by cost allocation units at each level.

Directions

Scenario description: If you are a large enterprise and wish to automatically allocate and share cloud resource costs by your organizational structure's cost budget management dimensions such as departments and product lines, you can utilize Tencent Cloud's cost allocation units for lean analysis and control of cloud resource costs. The specific steps are as follows:

Creating Cost Allocation Units

You can customize cost allocation unit structure by department and business line. Directions to create unit:
1. Log in to the Billing Center console.
2. In the left sidebar, select Cost Allocation Management > Cost Allocation Units.
3. Create unit:
3.1 Under the cost allocation unit directory, establish a hierarchical structure based on custom architecture needs, click Create Unit or Create Sub-unit (supports up to 6 levels), set the cost allocation unit name as needed, and click Confirm to complete the creation.

3.2 Support dragging allocation units to other allocation units to adjust the directory tree's organizational hierarchy.
3.3 Click the cost allocation unit, and view its details on the right. Support editing unit information. Only leaf-level cost allocation units allow setting Collection Rules and viewing Collected Resources.


Modify Cost Allocation Unit

If you need to change the established cost allocation unit structure, including deletion, edit, copy unit, operation steps:
1. Log in to the Expense Center console.
2. In the left sidebar, select Cost Allocation Management > Cost Allocation Unit.
Delete unit:
Click Delete for the cost allocation unit. Once deleted, the collection rules under this cost allocation unit will be cleared and cannot be restored.

If a prompt dialog box pops up indicating unable to delete this cost allocation unit, it indicates that the cost allocation unit or its sub-unit has an effective sharing rule. Deleting the unit will affect the allocation execution. Go to adjust the sharing rule and then delete.

Edit a unit:
Click

for a cost allocation unit to modify its name.

Copy a unit:
Click the Copy Unit button to generate a copy of a cost allocation unit. The copying operation only copies the hierarchical structure of the unit, and does not copy the set collection rules.



Querying/Adjusting Cost Allocation Units

If you have established cost allocation units and need to query and adjust them, the steps are as follows:
1. Log in to the Billing Center console.
2. On the left sidebar, select Cost Allocation Management > Cost Allocation Units.
Query: Under the cost allocation unit directory, you can view the set cost allocation units. The cost allocation unit directory tree supports expansion or collapse.
Adjust: Dragging operation is supported to adjust the organizational hierarchy of the directory tree.
Taking dragging the Financial Product below the Operation and Maintenance Product as an example. If the Operation and Maintenance Product has existing collection rules, the adjustment of the cost allocation unit level will lead to assigning the collection rules below a cost allocation unit with the suffix -Auto, and generating Operation and Maintenance Product-Auto.


Setting Collection Rules

You have already established cost allocation units according to your departments and business lines. Now you can set collection rules, and the system will assign resource instances to specified cost allocation units according to these rules. The steps to create collection rules are as follows:
1. Log in to the Billing Center console.
2. On the left sidebar, select Cost Allocation Management > Cost Allocation Units.
3. Click a last-level cost allocation unit to set collection rules:
3.1 Click Set Now.

3.2 On the collection rules settings page, you can set rules as needed.
When collection rules are configured, the relationship between conditions and between condition groups can be And or Or (up to 3 levels of condition groups are supported).
The same condition collection can be set to IN or NOT IN.
3.3. Click Apply Rule to complete the setup.
4. Browse collected resources (effective on a T+1 basis, indicating that rules modified on the current day will lead to refreshing the resource ownership relationship and the current month's cost allocation billing data on the following day).
On the Collected Resources page, you can view the cost details of resources with set collection rules.

Notes:
Cost allocation units and collection rules come into effect on T+1 after billing. Rules modified on the current day will update resource ownership relationship and cost allocation bill data for the current month the next day.
Cost allocation units and collection rules are saved on a monthly basis. Cost allocation units and collection rules of the current month must be modified before the 3rd of the following month, and cannot be modified after the 3rd of the following month.
Collection rules can be created only under the smallest cost allocation unit. If collection rules for multiple cost allocation units match the same resource, the resource will be assigned to the collection rule with the latest effective time.

Editing/Clearing Collection Rules

If you need to change collection rules, the steps are as follows:
1. Log in to the Billing Center console.
2. On the left sidebar, select Cost Allocation Management > Cost Allocation Units.
3. Click a last-level cost allocation unit. On the details page on the right, you can operate the cost allocation unit:
Edit a rule: Click Edit Rule to modify a collection rule, and then click Apply Rule to save the rule.
Clear a rule: Click Clear Rule to delete a configured rule.


Defining Sharing Rules

If multiple business departments in a company share a cloud resource, you can create a sharing rule to share resource costs based on the usage of different departments. The steps to create a sharing rule are as follows:
1. Log in to the Billing Center console.
2. On the left sidebar, select Cost Allocation Management > Cost Allocation Units > Sharing Rule Management.
3. Go to the Sharing Rule Management page, and click Create Sharing Rules.

4. Configuring Sharing Rules:

4.1. On the Create Sharing Rules page, you can set the name of a sharing rule as needed.
4.2. Define a resource sharing rule, and collect the resource that meets the rule as a resource to be shared under the current rule.
4.3. Select sharing objects: Select established cost allocation units.
4.4. Set the sharing proportion: Proportional, Allocation by proportion, Custom sharing proportion.
Proportional: equally proportional allocation among sharing objects.
Allocation by proportion: allocation based on the actual proportion of each sharing object.
Custom sharing proportion: custom sharing proportion for each sharing object.
5. After configuration, click Create Rule to complete the creation of the sharing rule.

Editing/Deleting Sharing Rules

If you need to modify, edit, or delete a sharing rule, the steps are as follows:
1. Log in to the Billing Center console.
2. On the left sidebar, select Cost Allocation Management > Cost Allocation Units > Sharing Rule Management.
3. Edit/Delete a sharing rule:
3.1. Delete: Click the Delete button for the sharing rule to delete it.
3.2. Edit: Click the Edit button for the sharing rule to edit its contents, and click Save Rule to save it successfully.




Query Sharing Rule

If you need to query the sharing rule, operation steps for querying the sharing rule:
1. Log in to the Expense Center console.
2. In the left sidebar, select Cost Allocation Management > Cost Allocation Unit > Sharing Rule Management.
3. Select the cost allocation unit billing period. View support for sharing rules of historic billing periods.
Click the View button of the sharing rule to view the already set sharing rule. Click Back to return to the rule list.
Notes:
Sharing rules take effect on a T+1 basis, indicating that rules modified on the current day will lead to refreshing the resource ownership relationship and the current month's cost allocation billing data on the following day.
Sharing rules are saved on a monthly basis. Sharing rules of the current month must be modified before the 3rd of the following month, and cannot be modified but be viewed after the 3rd of the following month.
If both sharing rules and collection rules match the same resource, the collection rules take priority.
If multiple sharing rules match the same resource, the resource will be assigned to the sharing rule with the latest effective time.

Querying Cost Allocation Results

1. Log in to the Billing Center console.
2. On the left sidebar, select Cost Allocation Management > Cost Allocation Units.
3. Browse the Resource Directory:
All Resources: Click All Resources to display on the right a list of information on all Tencent Cloud resource instances currently in use, as well as current allocation units and matching rules.
Unallocated Resources: Click Unallocated Resources to display on the right a list of information on resource instances currently in use that have no cost allocation unit set.

4. Cost allocation results support custom fields, download, and filtering.
Custom field settings: Click the field settings button to select the fields you want to display.
Download: Click the download button to download the current list.
Filtering: Top search and header filtering are supported.




Notes:
If you need to view directions for the cost allocation bill, see Cost Allocation Bill.

Cost Allocation Unit Rollback

1. Log in to the Billing Center console.
2. In the left sidebar, select Cost Allocation Management > Cost Allocation Unit > Cost Allocation Rollback.


3. Select historic review month (supports monthly or multiple months) as needed, then click submit.

4. In the confirmation submission rollback operation window, click Confirm, and the system starts the rollback.
5. After submission, you can view the rollback status in the rollback history at the bottom of the page. Once completed, go to Cost Allocation Bill to view the updated bill.
Note:
The maximum number of retrospective months is 12, and the earliest supported date is the month when the cost allocation unit was enabled.
Cost allocation takes effect on T+1. Your cost allocation billing data will auto-update after it takes effect.

Record Description

Operator: The UIN that submitted the retrospective operation, the currently logged-in account, for example 100002345.
Submission time: The time when the retrospective was submitted, for example 2025-11-16 14:09:54.
Retrospective month: Select the month (time period) for retrospective, for example 2024-08 - 2024-12.
Effective rule month: The retrospective is performed based on the current month's rule. By default, it displays the current month (but shows the previous month before the 3rd, and retrospective before the 3rd refers to the previous month's rule).
Effective rule version: The Rule Version Number automatically generated by the system is used to uniquely identify each version.
Retrospective status:
Retrospecting: submitted but retrospection task incomplete, downstream data not refreshed.
Retrospected: submitted and retrospection task completed, downstream data effective by the latest retrospection version.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback