Adding Tags at Resource Creation

On Private Cloud Appliance, you can add defined and free-form tags to a resource at the time that you create the resource.

To add a defined tag, the tag namespace and keys must be already defined.

    1. In the Create dialog for the resource, scroll to the Tagging section.

    2. Select the Tag Namespace or select None. Select None to apply 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.

    3. To apply another tag, select the Additional Tag button.

      You can't 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.

    4. To review the tags on the resource, to go the details page for the new resource.

      On the resource details page, select the Tags tab to display the tags that are applied to this resource.

  • Use the --defined-tags and --freeform-tags options with the create or launch command for the resource to add tags at resource creation.

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

    The output of the create or launch command for the resource shows the defined and free-form tags that have been applied.

    For a complete list of CLI commands, flags, and options, see the Command Line Reference.

  • Use the definedTags and freeformTags attributes with the resource create operation to add tags at resource creation.

    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.