Creating a Tag Default

Create tag defaults so that they can be applied automatically to all the resources that are created in a specific compartment.

    1. On the Compartments list page, select the compartment you want to work with, then select the Tag defaults tab. If you need help finding the list page, see Listing Tag Defaults.
    2. On the Tag defaults page, select Create tag default.
    3. On the Create tag default page, provide the following information:
      • Tag namespace: Select the tag namespace.
      • Tag key: Select the tag key.
    4. In the Required Tag Value Options section, select the type of value you want this tag to have. The available options are:
      • Default value: Select this option to enter the default value you want this tag to have.
      • User-applied value: Select this option if you want users to enter the value when the resources are created.
    5. Click Create tag default.
  • Use the create command and required parameters to create a tag default in a specified compartment:

    oci iam tag-default create [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • To create a tag default, use the CreateTagDefault operation.