Applying Tags to an Existing Resource
On Private Cloud Appliance, you can add, change, and delete defined and free-form tags for a resource at the time that you update the resource.
To add a defined tag, the tag namespace and keys must be already defined.
-
In the Edit dialog for the resource, scroll to the Tagging section.
You can add tags, and you can modify or delete any tags that already exist.
-
To add tags, select the Additional Tag button if necessary, and select the Tag Namespace or select None. Select None to add a free-form tag.
-
If you selected a Tag Namespace, then select the Tag Key, and enter a value or select a value from the list.
-
If you selected None (apply a free-form tag), then enter a Tag Key and enter a value.
You cannot specify more than one tag with the same tag namespace and the same tag key for a defined tag, or more than one tag with the same tag key for a free-form tag.
-
-
To modify existing tags, change the selections or enter different values.
-
To delete a tag, select the trash can icon.
-
To review the tags on the resource, to go the details page for the resource.
On the resource details page, select the Tags tab to display the tags that are applied to this resource.
-
Use the
--defined-tagsand--freeform-tagsoptions with theupdatecommand for the resource to add, change, or delete tags at resource update.Use the following commands to show the format for the argument for the tags options:
oci service resource create --generate-param-json-input defined-tags oci service resource create --generate-param-json-input freeform-tagsYou cannot specify more than one tag with the same tag namespace and the same tag key for a defined tag, or more than one tag with the same tag key for a free-form tag. Use the resource
getcommand to show the current defined and free-form tags.The output of the
updatecommand for the resource shows the defined and free-form tags that are applied.For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the
definedTagsandfreeformTagsattributes with the resource update operation for the resource to add, change, or delete tags at resource update.For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.