Tags are used to categorize resources. Each tag consists of a key-value pair. You can use tags to group migration sources and migration tasks for easy searching and batch operations.
Background information
To help you manage an increasing number of migration sources and migration tasks, Server Migration Center (SMC) allows you to attach tags to the specified migration sources and migration tasks based on your needs. After you attach tags to migration sources and migration tasks, you can filter migration sources and migration tasks by tag to perform management operations.
For more information, see Best practices for tag design.
Limits
- The keys of tags that are attached to the same migration source or migration task
must be unique. If two tags attached to the same migration source or migration task
have the same key but different values, the tag attached later overwrites the previously
attached tag. For example, if a migration source is attached the
department:MD
tag and then attached thedepartment:FD
tag, thedepartment:MD
tag is automatically detached. - You can attach up to 20 tags to each migration source or migration task. Tags are case-sensitive.
- If you delete all migration sources or migration tasks that a tag is attached to, the tag is automatically deleted.
- After a tag is detached from a migration source or migration task, the tag is automatically deleted if it is not attached to another migration source or migration task.
- The following limits apply when you create a tag:
- The key is required and can be up to 64 characters in length. It cannot start with aliyun or acs:, or contain http:// or https://. We recommend that you keep the key short.
- The value is optional and can be up to 128 characters in length. It cannot start with aliyun or acs:, or contain http:// or https://. We recommend that you keep the value short.
Attach tags to a migration source or migration task
You can attach tags to a migration source only after you import the migration source. You can attach tags to a migration task when or after you create the migration task. In this example, tags are attached to an imported migration source and an existing migration task.
Filter migration sources or migration tasks by tag
After you attach tags to migration sources or migration tasks, you can filter migration sources or migration tasks by tag and perform management operations.