Use tags to categorize migration sources and jobs for filtering and batch operations.
Limitations
Each tag is a key-value pair. Limitations:
-
Tag keys must be unique per resource. Adding a duplicate key overwrites the existing value. For example, adding
department:FDto a source withdepartment:MDremoves thedepartment:MDtag. -
Maximum 20 tags per resource. Tags are case-sensitive.
-
Deleting all resources that use a tag also deletes the tag.
-
Removing a tag from its last associated resource deletes the tag.
-
Tag creation constraints:
-
Key (required): up to 64 characters. Cannot start with
aliyunoracs:, or containhttp://orhttps://. -
Value (optional): up to 128 characters. Cannot start with
aliyunoracs:, or containhttp://orhttps://.
-
Add tags to migration sources and migration jobs
You can tag a migration source after importing it, or tag a migration job during or after creation. The following example uses a server migration source; the procedure is similar for other types.
-
Go to the Server Migration page in the SMC console.
-
Find the migration source to tag. In the Tag column, click the
icon and then click Edit.You can also add tags when creating a migration job. Migrate servers to ECS.
-
In the Configure Tags dialog box, add or edit tags.
Enter a new key-value pair or select an existing one.
NoteYou can add up to 20 tags to each resource.
-
Click Confirm.
To view tags, hover over the
icon in the Tag column of the migration source or job list.NoteTo edit or remove tags, hover over the
icon and click Edit. In the Configure Tags dialog box, click the x next to a tag to remove it.
Filter migration sources by tag
Filter migration sources by tag to quickly locate resources for batch management. The following example uses a server migration source; the procedure is similar for other types.
-
Go to the Server Migration page in the SMC console.
-
On the Migration Sources page, click Filter by tag.
-
Select a tag key and a tag value to filter the migration sources.
The page shows migration sources matching the specified tag.
Note-
Selecting only a tag key returns all migration sources with that key, regardless of value.
-
To remove a filter condition, click the x next to the tag.
-