Tagging a Job

Add tag metadata to a job in Resource Manager. Tags are key-value pairs that you attach to resources to help you organize and track the resources across compartments.

Note

This page describes how to tag an existing job. You can also tag a job when you create it.

If you have permissions to create a resource, you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags.

  • These steps show how to tag a job in a compartment. You can also tag a job in a stack.
    1. On the Jobs list page, find the job that you want to work with. If you need help finding the list page or the stack, see Listing Jobs.
    2. To add a tag:
      1. From the Actions menu (Actions Menu) for the job, select Add tags.
      2. In the Add tags dialog box, provide the following information.
        • 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. Select Add tags.
    3. To view and edit existing tags:
      1. From the Actions menu (Actions Menu) for the job, select View tags.
        The View tags dialog box opens.
      2. To view existing defined tags, select Defined tags.
      3. To view existing free-form tags, select Free-form tags.
      4. To edit the value for a tag, select the pencil icon, provide a new value, and select Save.
      5. To remove a tag, select the pencil icon and select Remove tag.
  • Use the oci resource-manager job update command and required parameters to tag a job.

    oci resource-manager job update [--defined-tags | --freeform-tags] <tags> [...]

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

  • Use the UpdateJob operation to tag a job.