IBM Cloud Docs
Manage classic infrastructure tags (ibmcloud sl tags)

Manage classic infrastructure tags (ibmcloud sl tags)

Use the following command from the IBM Cloud® Command Line Interface to manage your classic infrastructure tags.

ibmcloud sl tags cleanup

Removes all empty tags.

ibmcloud sl tags cleanup [flags]

Command options:

--dry-run
Don't delete, just show what will be deleted.

ibmcloud sl tags delete

Removes an empty tag from your account.

ibmcloud sl tags delete [TAG NAME]

ibmcloud sl tags detail

Get information about the resources using the selected tag.

ibmcloud sl tags detail [TAG NAME]

ibmcloud sl tags list

List all tags currently on your account

ibmcloud sl tags list [flags]

Command options:

--d, detail
List information about devices using the tag.

ibmcloud sl tags set

Set Tags.

ibmcloud sl tags set [OPTIONS]

Examples:

ibmcloud sl tags set --tags 'tag1,tag2' --key-name HARDWARE --resource-id 123456
ibmcloud sl tags set [flags]

Command options:

--key-name
Key name of a tag type e.g. GUEST, HARDWARE. See slcli tags taggable output. [required]
--resource-id
ID of the object being tagged [required]
--tags
Comma seperated list of tags, enclosed in quotes. 'tag1,tag2' [required]