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.
You have logged in to the Tag console.
On the left sidebar, click Tag List.
Click Create Tag.
In the pop-up window, enter a tag key and value, and click OK.
On the left sidebar, click Resource Tag.
Select a region and resource type based on your needs and click Query resource.
You can query and tag resources on this page. A tag can be attached to multiple resources, and a resource can have multiple tags.
Go to the Billing Center. On the left sidebar, click Bills > Cost Allocation Tags.
Select the target tag keys and click Set as Cost Allocation Tag.
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.
You will see tag information in your bills starting from the month of setting cost allocation tags.
Bills generated before the setting will not change and will not include tag information.
Go to Bill Overview.
Select the By Tag tab and choose a tag key. You will see a list of the tagged resources and a bar graph.
Go to Bill Details.
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.
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.
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
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
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
You can also use APIs to query tag information starting from the month of setting cost allocation tags.
DescribeBillSummaryByTag API and you will get bill data and the corresponding tag information.
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.