All Products
Search
Document Center

Server Migration Center:Use tags to manage migration sources and migration tasks

Last Updated:Feb 01, 2024

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 tags.

Limits

Each tag consists of a key-value pair. The following limits apply to tags:

  • 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 the department:FD tag, the department: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.

  1. Log on to the SMC console.

  2. In the left-side navigation pane, click Migration Sources or Migration Jobs.

  3. Find the migration source or migration task to which you want to attach tags, move the pointer over the Tag icon in the Migration Source Tag or Migration Task Tag column, and then click Edit.

    You can also attach tags to a migration task when you create it. For more information, see Create a server migration job.

  4. In the Edit Tag dialog box, configure one or more tags.

    You can enter tag keys and tag values, or select existing tag keys and tag values.

    Note

    A maximum of 20 tags can be attached to each migration source or migration task.

  5. Click OK.

    After you attach tags to the migration task, move the pointer over the Tag icon in the Migration Task Tag column to view the tags.

    Note

    To detach a tag from the migration task, move the pointer over the Tag icon and click Edit. In the Edit Tag dialog box, click x next to the tag.

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.

  1. Log on to the SMC console.

  2. In the left-side navigation pane, click Migration Sources or Migration Jobs.

  3. On the Migration Sources or Migration Jobs page, click Tag.

  4. Select a tag key and a tag value.

    The migration sources or migration tasks that contain the specified tag are displayed on the page.

    Note
    • You can select only tag keys. In this case, all migration sources or migration tasks that are attached the tag keys are displayed.

    • To remove a selected tag, click x next to the tag.