Tagging a Private Template at Creation

Add metadata to a private template when you first create it. This metadata enables you to define keys and values and to associate them with resources.

For more information about tagging, see Resource Tags.
    1. On the Private templates list page, select Create private template. If you need help finding the list page or the private template, see Listing Private Templates.
    2. In the Create private template panel, select Show advanced options and then provide values for the tagging fields.
      • Tag namespace: To add a defined tag, select an existing namespace. To add a free-from tag, leave the value blank.
      • Tag key: To add a defined tag, select an existing tag key. To add a free-form tag, type the key name that you want.
      • Tag value: Type the tag value that you want.
      • Add tag: Click to add another tag.
    3. Enter other values as needed.
      For more information about the fields, see Creating a Private Template.
    4. Select Create.
  • Use the oci resource-manager template create command and required parameters to tag a private template when you create it.

    oci resource-manager template create [--defined-tags | --freeform-tags] <tags> [...]

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

  • Run the CreateTemplate operation to tag a private template when you create it. Include the definedTags and freeformTags attributes and their values.