Serverless App Engine (SAE) provides the tag feature for applications. You can create and bind tags to applications that are hosted on SAE, and manage the split bills of your enterprise based on the tags. This topic describes how to specify tags for an application and view the split bills of your enterprise by tag.
Prerequisites
The following preparations must be completed before you use the tag feature to manage split bills. For more information, see Preparations.
Activate SAE and grant permissions to an Alibaba Cloud account, create a namespace, and create a virtual private cloud (VPC). You can also grant permissions to a RAM user. Before you can use a RAM user to view split bills, you must use an Alibaba Cloud account to grant the AliyunBBSReadOnlyAccess permission to the RAM user. Then, you can use the RAM user to view bills in the Expenses and Costs console and view resource plan usage on the Overview page in the SAE console.
An application is deployed on SAE. For more information, see Deploy applications.
Background
You can use tags to manage, group, and classify resources. This way, you can quickly search for resources and perform batch operations on the resources. Examples:
Environment isolation: You can add different tags to different environments (such as production environments and test environments), operating systems (such as Windows Server and Linux), or client platforms (such as iOS and Android).
Project management: You can add tags, such as CostCenter:aliyun, to groups, projects, or departments. Then, you can classify the objects and configure itemized billing based on the tags.

To split SAE bills, perform the following steps.
Define tags for resources (applications) based on the organization or business dimension. This step is labeled ① in the preceding figure.
Log on to the SAE console and bind tags to applications. This step is labeled ② in the preceding figure
Log on to the Expenses and Costs console to view bills. This step is labeled ③ in the preceding figure.
Usage notes
Each tag consists of a key and a value.
Each tag key must be unique in a resource.
Tag information is not shared across regions.
If a tag is no longer bound to a resource after you unbind the tag, the tag is automatically deleted.
Step 1: Configure application tags
Log on to the SAE console. In the left-side navigation pane, choose . On the page that appears, select a region in the top navigation bar and a namespace from the Namespace drop-down list, and then click Create Application.
On the Basic Information page, click Application Information tab. Locate Application Tag cell and click the
icon to access the Configure Tags dialog box.On the Application List page, find the application that you want to manage, move the pointer over the
icon in the Tag column and click the Edit in the bubble chart.
If you have a large number of applications, you can filter applications by Application Name, Application ID, SLB IP, or Instance IP Address on the Application List page. Then, enter the corresponding value and click the
icon to search for the application that you want to manage.In the Configure Tags dialog box, configure tags as required.
Add: Entera Tag Key and Tag Value, then click OK.
NoteYou can add up to 20 tags to each application.
You can add or remove up to 20 tags at a time.
Delete: Find the key-value pair that you want to delete, click the
icon next to the key-value pair, and then click OK.NoteIf you delete the key-value pair of a tag, the tag is deleted.
Edit: Find the key-value pair that you want to modify, configure the Tag Key and Tag Value parameters, and then click OK.
Verify the result.
Verify the result on the Application List page.
On the Application List page, find the application that you want to manage, move the pointer over the
icon in the Tag column, and then click the Edit in the bubble chart.Optional: Click Edit in the bubble chart to view tag details in the Configure Tags dialog box.
Verify the details on the Basic Information page.
Click the target application on the Application List page to enter the Basic Information page.
In the Application Information tab, locate the Application Tag cell and click the
icon to view the tag details in the Configure Tags dialog box.
Step 2: View bills in the Billing Management console
Log on to the Expenses and Costs console.
In the left-side navigation pane, choose to enable cost allocation tags.
If the cost allocation tag feature is not enabled, perform the following steps to enable tags:

On the Cost allocation tags page, click Next.
In the Select tags that you want to enable section, search for and add a Tag Key based on your business requirements and click Next.
Click Enable. In the Note message, click OK.
If the cost allocation tag feature is enabled, perform the following steps to enable tags:

On the Cost allocation tags page, enter a tag in the Tag Key field and click Search.
In the search result section, find the tag that you want to enable and click Enable in the Operations column.
To enable multiple tags at a time, select the tags that you want to enable and click Batch Enable.
ImportantTags are case-sensitive.
SAE automatically binds the system tag acs:sae:namespace to the applications that are created or redeployed on and after March 13, 2023. The system tag is not displayed in the SAE console. You must enable the system tag in the Expenses and Costs console.
Allocate the tags to cost centers.
In the left-side navigation pane, choose Manage Split > Cost Center.
In the left-side navigation pane of the Cost Centers page, click the plus icon next to Cost Center. In the Add Cost Center dialog box, enter a name and click OK.

In the left-side navigation pane of the Cost Centers page, select All Resources. In the Tags column on the right-hand side of the resource list, click the filter icon. Then, in the pop-up search box, select the enabled tags and click OK.

In the Operations column of the filtered instance, click Allocate. In the Allocate dialog box, select a cost center from the Please Select drop-down list and click OK.
View billing information.

In the left-side navigation pane, choose .
On the Split Bill page, click the filter icon in a column of the billing table based on your business requirements. For example, click the filter icon in the Cost Center column to filter billing data based on the configured cost centers.
On the Split Bill page, view the billing data. You can also click Export Billing Overview (CSV) in the upper-right corner to view billing data.