Scenarios
After a VPC endpoint is created, you can view its tags, or add, edit, or delete a tag.
Each VPC endpoint has a unique tag, which consists of a tag key and a tag value. You can add a maximum of 20 tags to each VPC endpoint.
If a predefined tag has been created on TMS, you can directly select the corresponding tag key and value.
For details about predefined tags, see Predefined Tag Overview.
Add a Tag
Perform the following operations to add a tag for an existing VPC endpoint:
- Log in to the management console.
- Click
in the upper left corner and select the required region and project.
- Choose Service List > Networking > VPC Endpoint.
- In the VPC endpoint list, locate the target VPC endpoint and click its ID.
- On the displayed page, select the Tags tab.
- Click Add Tag.
- In the displayed dialog box, enter a key and a value.
Table 1 describes the required parameters.
Table 1 Tag requirements for VPC endpointsParameter
|
Requirement
|
Tag key
|
- Cannot be left blank.
- Must be unique for each resource.
- Can contain a maximum of 36 Unicode characters.
- Can contain only letters, digits, hyphens (-), and underscores (_).
|
Tag value
|
- Cannot be left blank.
- Can contain a maximum of 43 Unicode characters.
- Can contain only letters, digits, hyphens (-), and underscores (_).
|
- Click OK.
Edit a Tag
Perform the following operations to edit a tag of a VPC endpoint:
- Log in to the management console.
- Click
in the upper left corner and select the required region and project.
- Choose Service List > Networking > VPC Endpoint.
- In the VPC endpoint list, locate the target VPC endpoint and click its ID.
- On the displayed page, select the Tags tab.
- In the tag list, locate the target tag and click Edit in the Operation column.
- Enter a new value.
You can only edit tags that have values.
- Click OK.
Delete a Tag
Perform the following operations to delete a tag of a VPC endpoint:
Deleted tags cannot be recovered. Exercise caution when performing this operation.
- Log in to the management console.
- Click
in the upper left corner and select the required region and project.
- Choose Service List > Networking > VPC Endpoint.
- In the VPC endpoint list, locate the target VPC endpoint and click its ID.
- On the displayed page, select the Tags tab.
- In the tag list, locate the target tag and click Delete in the Operation column.
- Click Yes.