Tags and resource groups help you categorize, manage, and allocate costs for Tablestore instances.
Tags
Tags are key-value pairs that you can attach to Tablestore instances. You can use tags to group instances by criteria such as environment, team, or cost center. This lets you filter and manage them collectively or generate split bills.
Limitations
|
Constraint |
Description |
|
Tag key length |
Up to 128 characters |
|
Tag value length |
Up to 128 characters |
|
Forbidden prefixes |
Tag keys and values cannot start with |
|
Forbidden content |
Tag keys and values cannot contain |
Add tags to an instance
Single instance
-
Log on to the Tablestore console.
-
In the top navigation bar, select a resource group and a region.
-
On the Overview page, in the Instances, find the target instance. Hover over the
icon in the Tags column and click Edit in the pop-up box. -
In the Configure Tags dialog box, enter a tag key and a tag value, and then click OK.
Parameter
Description
Tag key
The tag key can be up to 128 characters in length. It cannot start with
aliyunoracs:and cannot containhttp://orhttps://.Tag value
The tag value can be up to 128 characters in length. It cannot start with
aliyunoracs:and cannot containhttp://orhttps://.
Alternatively, you can go to the Instance Details tab of the target instance. In the Basic Information section, click the
icon next to Tags to edit them.
Batch
-
Log on to the Tablestore console.
-
In the top navigation bar, select a resource group and a region.
-
On the Overview page, in the Instances, select the desired instances and click Batch Tagging at the bottom of the page.
-
In the Configure Tags dialog box, enter a tag key and a tag value, and then click OK.
Parameter
Description
Tag key
The tag key can be up to 128 characters in length. It cannot start with
aliyunoracs:and cannot containhttp://orhttps://.Tag value
The tag value can be up to 128 characters in length. It cannot start with
aliyunoracs:and cannot containhttp://orhttps://.
View tags on an instance
-
Log on to the Tablestore console.
-
In the top navigation bar, select a resource group and a region.
-
On the Overview page, in the Instances, find the target instance. Hover over the
icon in the Tags column to view its tags in the pop-up box.NoteAlternatively, you can go to the Instance Details tab of the target instance to view the tags in the Basic Information section.
Remove tags from an instance
Single instance
-
Log on to the Tablestore console.
-
In the top navigation bar, select a resource group and a region.
-
On the Overview page, in the Instances, find the target instance. Hover over the
icon in the Tags column and click Edit in the pop-up box. -
In the Configure Tags dialog box, click the
icon next to the tag you want to remove, and then click OK.Note-
After you unbind a tag from a resource, the system automatically deletes the tag if it is not bound to any other resources.
-
Alternatively, you can go to the Instance Details tab of the target instance. In the Basic Information section, click the
icon next to Tags, and then remove the desired tags in the Configure Tags dialog box.
-
Batch
-
Log on to the Tablestore console.
-
In the top navigation bar, select a resource group and a region.
-
On the Overview page, in the Instances, select the instances from which you want to remove tags and click Delete at the bottom of the page.
-
In the Batch Unbind Tags dialog box, select the tags that you want to unbind, and then click Unbind x tags.
NoteAfter you unbind a tag from a resource, the system automatically deletes the tag if it is not bound to any other resources.
Filter instances by tag
-
Log on to the Tablestore console.
-
In the top navigation bar, select a resource group and a region.
-
On the Overview page, above the Instances, click Filter by Tag. Select or enter a tag key and a tag value to view the matching instances in the list.
Resource groups
Resource groups help you manage resources and permissions within your Alibaba Cloud account.
Change instance resource group
-
Log on to the Tablestore console.
-
In the top navigation bar, select a resource group and a region.
-
On the Overview page, click the name of an instance, or click Manage Instance in the Actions column.
-
On the Instance Details tab, in the Basic Information section, click the
icon next to the resource group and select a new resource group.
Filter instances by resource group
-
Log on to the Tablestore console.
-
In the top navigation bar, select a resource group and a region.
-
The instance list on the Overview page displays all instances that belong to the selected resource group.
In the top navigation bar, switch to the target resource group by using the Workspace selector. The instance list updates to show only the instances in the selected resource group.
Use cases
You can use tags or resource groups for fine-grained management of Tablestore instances. The following are common use cases.
|
Scenario |
Description |
|
Cost allocation |
After you add tags to an instance or change its resource group, you can view cost allocation data on the Split Bill page in the Expenses and Costs console. For more information, see and Split bill management (classic console). Important
|
|
Group authorization |
If you have multiple Tablestore instances and need to restrict a user to viewing and managing only a subset of these instances, you can assign the instances to different resource groups. Then, you can use Alibaba Cloud RAM to grant the RAM user permissions for a specific resource group. For more information, see Resource grouping and authorization. |
|
Automated O&M |
|