AWS Storage Gateway User Guide
Working with Tags
If you archive a virtual tape that is tagged, the tape maintains its tags in the archive. Similarly, if you
retrieve a tape from the archive to another gateway, the tags are maintained in the new gateway.
For file gateway, you can use tags to control access to resources. For information about how to do this,
Using Tags to Control Access to File Gateway Resources (p. 305)
.
Tags don’t have any semantic meaning but rather are interpreted as strings of characters.
The following restrictions apply to tags:
• Tag keys and values are case-sensitive.
• The maximum number of tags for each resource is 10.
• Tag keys cannot begin with
aws:
. This prefix is reserved for AWS use.
• Valid characters for the key property are UTF-8 letters and numbers, space, and special char -
= . _ : / and @.
Working with Tags
You can work with tags by using the Storage Gateway console, the Storage Gateway API, or the
Gateway Command Line Interface (CLI)
. The following procedures show you how to add, edit, and delete
a tag on the console.
To add a tag
1. Open the AWS Storage Gateway console at
https://console.amazonaws.cn/storagegateway/home
.
2. In the navigation pane, choose the resource you want to tag.
For example, to tag a gateway, choose
Gateways
, and then choose the gateway you want to tag
from the list of gateways.
3. Choose
Tags
, and then choose
Add/edit tags
.
4. In the
Add/edit tags
dialog box, choose
Create tag
.
5. Type a key for
Key
and a value for
Value
. For example, you can type
Department
for the key and
Accounting
for the value.
Note
You can leave the
Value
box blank.
6. Choose
Create Tag
to add more tags. You can add multiple tags to a resource.
7. When you’re done adding tags, choose
Save
.
To edit a tag
1. Open the AWS Storage Gateway console at
https://console.amazonaws.cn/storagegateway/home
.
2. Choose the resource whose tag you want to edit.
3. Choose
Tags
to open the
Add/edit tags
dialog box.
4. Choose the pencil icon next to the tag you want edit, and then edit the tag.
5. When you’re done editing the tag, choose
Save
.
To delete a tag
1. Open the AWS Storage Gateway console at
https://console.amazonaws.cn/storagegateway/home
.
2. Choose the resource whose tag you want to delete.
3. Choose
Tags
, and then choose
Add/edit tags
to open the
Add/edit tags
dialog box.
API Version 2013-06-30
394