All Products
Search
Document Center

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

Last Updated:Jul 01, 2024

The numbers of migration sources and migration jobs increase. You can identify the migration sources or migration jobs by names or IDs. Server Migration Center (SMC) allows you to add tags to the migration sources and migration jobs. This helps you manage the migration sources and migration jobs. After you add tags to the migration sources or migration jobs that have the same management requirements, you can filter migration sources or migration jobs by tags and manage the filtered migration sources or migration jobs in batches.

Limits

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

  • The keys of tags that are added to the same migration source or migration job must be unique. If two tags added to the same migration source or migration job have the same key but different values, the tag added later overwrites the previously added tag. For example, if the department:MD tag is added to a migration source and then the department:FD tag is added to the migration source, the department:MD tag is automatically removed from the migration source.

  • You can add up to 20 tags to each migration source or migration job. Tags are case-sensitive.

  • If you delete all migration sources or migration jobs to which a tag is added, the tag is automatically deleted.

  • After a tag is removed from a migration source or migration job, the tag is automatically deleted if the tag is not added to another migration source or migration job.

  • 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://.

    • 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://.

Add tags to a migration source or migration job

You can add tags to a migration source only after you import the migration source. You can add tags to a migration job when or after you create the migration job. In this example, tags are added to an imported migration source and an existing migration job.

  1. Log on to the SMC console.

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

  3. On the page that appears, find the migration source or migration job to which you want to add tags. Move the pointer over the 标签 icon in the Migration Source Tags column or the Migration Job Tags column and click Edit.

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

  4. In the Configure Tags dialog box, configure one or more tags.

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

    Note

    You can add up to 20 tags to a migration source or migration job.

  5. Click OK.

    After you add the tags, you can move the pointer over the 标签 icon in the Migration Source Tags column or the Migration Job Tags column to view the tags.

    Note

    After you add tags to a migration source or migration job, you can move the pointer over the 标签 icon in the Migration Source Tags column or the Migration Job Tags column and then click Edit. In the Configure Tags dialog box, you can click x next to each tag to remove the tag.

Filter migration sources or migration jobs by tags

After you add tags to migration sources or migration jobs, you can filter migration sources or migration jobs by tags and manage the filtered migration sources or migration jobs.

  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 Filter by Tag.

  4. Select a tag key and a tag value.

    The migration sources or migration jobs to which the specified tag is added are displayed on the page.

    Note
    • You can select only tag keys. In this case, all migration sources or migration jobs to which the tag keys are added are displayed.

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

References

For more information about how to use tags, see Best practices for tags.