tencent cloud

All product documents
About Billing
Cost Allocation Tags
Last updated: 2025-03-28 10:52:18
Cost Allocation Tags
Last updated: 2025-03-28 10:52:18

Overview

Tags help you manage your resources. You can use tags to categorize, search for, and aggregate your Tencent Cloud resources. Tags are the labels you attach to Tencent Cloud resources and can be used for cost allocation. A tag consists of a tag key and a tag value. A tag key can have multiple values.
To display a tag in your bills, you need to set the tag as a cost allocation tag. Each cost allocation tag is a column in bills, and the values of a tag are displayed in the corresponding rows of the resources they are attached to. Tags not set as cost allocation tags are not displayed in bills.

Prerequisites

You have logged in to the Tag console.

Directions

Creating tag

1. On the left sidebar, click Tag List.
2. Click Create Tag.
3. In the pop-up window, enter a tag key and value, and click OK.




Attaching tag

1. On the left sidebar, click Resource Tag.
2. Select a region and resource type based on your needs and click Query resource.
Note:
You can query and tag resources on this page. A tag can be attached to multiple resources, and a resource can have multiple tags.


Setting cost allocation tag

1. Go to the Billing Center. On the left sidebar, click Bills > Cost Allocation Tags.
2. Select the target tag keys and click Set as Cost Allocation Tag.



3. In the pop-up window, click Confirm.
Note:
You can set up to 15 cost allocation tags, but we recommend you set only one as this makes cost management easier. Each cost allocation tag occupies a column in bills, based on which you can filter and categorize your costs.

Tag Display

You will see tag information in your bills starting from the month of setting cost allocation tags.
Note:
Bills generated before the setting will not change and will not include tag information.

In Bill Overview

1. Go to Bill Overview.
2. Select the By Tag tab and choose a tag key. You will see a list of the tagged resources and a bar graph.




In View bills

1. Go to View bills.
2. Based on your needs, select the Bill by Instance or Bill Details tab. You will find in the list below a column for each cost allocation tag.
The column name is in the format of “Tag Key: xxx”. You can filter bills by tag.




In bill files

After setting cost allocation tags, you will see the tags in the bill files you download, regardless of the bill type. You can use tag keys to filter your bills or perform other operations.
1. Tag display in L1 bills (by product and project). In L1 bills, you will find a sheet named “summaryByTagAndProduct”, in which you can view bill details by tag key. If you haven’t assigned a tag value for a resource, the content of the corresponding cell will be -.



2. Tag display in L2 bills (by resource ID). In L2 bills, you will see tag key columns on the right and tag values in the cells of the columns. If you haven’t assigned a tag value for a resource, the content of the corresponding cell will be -.



3. Tag display in L3 bills (bill details). In L3 bills, you will see tag key columns on the right and tag values in the cells of the columns. If you haven’t assigned a tag value for a resource, the content of the corresponding cell will be -.




Products Supporting Split Billing

Product
Direct Connect
TencentDB for CTSDB
Tencent Container Registry (TCR)
Tencent Real-Time Communication
Cloud Block Storage Snapshot
TencentDB for Tendis
Cloud Block Storage (CBS)
Tencent Kubernetes Engine (TKE)
Global Application Acceleration Platform (GAAP)
Cloud Log Service
TencentDB for MongoDB
TencentDB for Redis
TencentDB for SQL Server
TencentCloud Lighthouse
IM
Stream Computing Oceanus
TencentDB for PostgreSQL
TencentDB for KeeWiDB
TencentDB for MySQL
Tencent Interactive Whiteboard
Public IP
Bandwidth Package
TencentDB for MariaDB
Cloud Data Warehouse Doris
CDWPG
Cloud Load Balancer
Tencent Distributed SQL for MySQL
Service Mesh
Tencent Cloud House-C
Cloud Development
Cloud Connect Network CCN
Distributed Framework TSF- Public Cloud
Cloud Storage Gateway (CSG)
Video On Demand (VOD)
Tencent Cloud Observability Platform
Cloud Virtual Machine (CVM)
SCF
VPN Gateway
T-Sec-Cloud Hardware Security Module (CloudHSM)
T-Sec-Bastion Host(BH)
Cloud Automated Testing: New Version
Game Database TcaplusDB
Voice Message
T-Sec-Cloud Workload Protection(CWP)
T-Sec-Anti-DDoS (Anti-DDoS)
T-Sec Web Application Firewall (WAF)
Game Multimedia Engine
TPNS
Application Observation
TSE Service Registry Center
TDSQL-C for MySQL
TDSQL-C for PostgreSQL
HttpDNS
TDMQ
Message Service CKafka
TencentDB for TBase
Tencent Kubernetes Engine for Serverless
SSL Certificate
Cloud File Storage (CFS)
Tencent Cloud Block Chain TBaaS
TencentCloud TI Platform TI-ONE
NAT Gateway
Elasticsearch Service
HTAP Database TDSQL-H
Tencent Cloud Elastic Microservice
Cloud Infinite (CI)
Elastic MapReduce
Cloud Object Storage (COS)
SMS
API Gateway
Database Backup Service
Data Lake Compute
WeData Data Development and Governance Platform
Cloud Streaming Services (CSS)
Enterprise Content Delivery Network (ECDN)
Content Delivery Network (CDN)
Data Subscription (DSS)
Tencent Cloud VectorDB
Data Transmission Service (DTS)
TencentCloud EdgeOne
TSE Cloud Native Gateway
TAE API_SDK
T-Sec- CFW (CFW)
T-Sec- CSC (Csip)
Note:
Products to be allowlisted: Short Message Service (SMS), Cloud Streaming Service (CSS), Enterprise Content Delivery Network (ECDN), TencentCloud EdgeOne, Cloud Block Storage Snapshot, and TencentDB for MySQL Backup - Pay-as-you-go.
For some products, the resource ID bound with tags cannot be used for corresponding cost allocation if it is not a push volume settlement resource ID or a prepaid resource ID.

Query by API

You can also use APIs to query tag information starting from the month of setting cost allocation tags.
Call the DescribeBillDetail, DescribeBillResourceSummary, DescribeBillSummaryByProject, or DescribeBillSummaryByTag API and you will get bill data and the corresponding tag information.

FAQs

1. When can I see tags in bills after tagging resources and setting cost allocation tags?

Tagging takes effect immediately, but there is a delay in bill data, so tags will not be displayed until the cache data of bills is refreshed.
Note:
The resource tag information at the end of the month is taken for the months when bills were generated in the past. Subsequent changes to the resource tags will not be refreshed after billing.

2. In the Bar Chart on the Tag Summary Page, What Does the Category "Others" Refer to?

The visualized chart on the Tag Summary page only displays the top 5 data, and other data will be aggregated and displayed as Others . For details, please go to Bill Details page to view detailed data.

3. If Multiple Cost Allocation Tags Are Set for the Same Resource, How Will the Cost Be Calculated?

If multiple cost allocation tags are set for the same resource, the total cost of the resource will be displayed under each tag. The cost of the resource will not be allocated based on the tag in the bill.

4. Up to 15 Cost Allocation Tags Are Supported. Can This Limit Be Increased?

Currently, up to 1,000 tag Keys can be created, but 15 cost allocation tags can be set at most, which meets the needs of most scenarios. Insufficient tags are usually due to incorrect usage, so proper use is recommended.




5. If a Member Account Tags a Resource, Does the Bill Consolidated by the Organization Account Support Cost Allocation by Tag?

If a resource is tagged under a member account, and the organization account does not have this cost allocation tag, the organization account’s bill cannot be allocated by this tag when consolidated. This is because the consolidated billing is based on the cost allocation tag under the organization account. Only when the member account creates a tag key with the same name and has resource binding information, can the member account’s tag information be reflected.
For example:
Cost allocation tags set under the organization account: game project, business line.
Cost allocation tags set under the member account: game project, team.
After consolidation, the bill reflects: game project (including the member account’s tag information), business line.

6. What Are the Steps for a Member Account to Tag Resources and for the Organization Account to Support Cost Allocation by Tag During Consolidated Billing?

Step 1: The member account activates resources and tags them, for example, business line:game;
Step 2: The organization account establishes a tag key with the same name: business line, and sets the business line as the cost allocation tag;
Step 3: After T+1, the business line tag key containing the member account's tag information can be viewed in the organization account’s bill.

7. Can the tags applied to the account be used for cost allocation in the bill?

Tags applied to the account support display and cost allocation in the bill. For example:
An organization account can tag a member account with the key value: Salesperson: Zhang San. If the Salesperson tag is set as a cost allocation tag, all details in the bill for the owner UIN of that member account will be filled under the Salesperson tag with Zhang San value.

8. When there are tag values applied to both the account and the resource under the same tag key, which one takes precedence?

If there are tags applied to both the account and the resource under the same tag key, the tag value of the resource takes precedence.

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

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon