Overview
If there are resources for multiple business units or projects under your account, you can use tags to manage access to different resources and allocate your costs. You can also set quotas for a tag (key-value pair) in the Tag console.
A tag quota is the maximum number of resources a key-value pair can be bound to.
For example, suppose you set the CVM instance quota for the tag Application:Official Application
to 100 (the highest quota you can set is the total number of CVM instances under your account). When you try to bind the 101st CVM instance to the tag, an error will occur saying that the limit has been reached.
Note:
Currently, the tag quota feature is only available to beta users. If you want to try it, please submit a ticket.
Prerequisites
You have created a tag. For detailed directions, see Creating Tags.
Directions
Creating a tag quota
- Log in to the Tag console with a root account or an account with sub-account management permission. Select Tag Quota on the left sidebar.
- Click New.
- In step 1, select a tag key and tag value.
- In step 2, select the resource type and region and enter a quota.
- You can configure quotas for the same resource type in different regions (by clicking Add +).
- You can also configure tag quotas for different resource types (by clicking Add +).
Note:
- You can configure quotas for only one tag at a time on the quota creation page.
- You cannot configure two quotas for the same resource type in the same region.
- The quota you set for a tag must be higher than the number of resources already bound to the tag.
- Currently, you can only set tag quotas for CVM instances.
- Click Create. The quota created will appear in the quota list.
Viewing and modifying tag quotas
Viewing tag quotas
- Log in to the Tag console and select Tag Quota on the left sidebar.
- In the quota list, find the tag whose quota information you want to view, and click View to go to the details page.
On the details page, you will see the quota information of the tag, including the resource type, the quota configured, and the number of resources already bound.
Modifying tag quotas
- You can change the quotas configured for a tag on the quota details page.
- You can also click Add + to add quotas for different resource types or in new regions.
- Click Save.
Deleting quotas by resource type
- Log in to the Tag console and select Tag Quota on the left sidebar.
- In the quota list, find the target tag, and click View to go to the details page.
- On the quota details page, find the quota you want to delete, and click Delete on the right.
You can also select multiple quotas and click Delete above the list to delete multiple quotas at a time.
Note:
If a tag is configured with quotas, you need to delete the quotas first before you can remove the tag from the quota list.
- Log in to the Tag console and select Tag Quota on the left sidebar.
- In the quota list, find the tag you want to remove, and click Delete on the right.
You can also select multiple tags and click Delete above the list to remove multiple tags at a time.
Application
Tags, combined with CAM, are a common tool to manage employee permissions. You can create roles for employees, bind them with tags, and configure quotas for the tags so that your employees can create only as many resources as you specify.
Was this page helpful?