Updating an Artifact in Artifact Registry

The only property that you can update for an artifact in Artifact Registry is its tags.

    1. Open the navigation menu and click Developer Services. Under Containers & Artifacts, click Artifact Registry.
    2. Under List scope, choose the compartment that contains the artifacts to update.
    3. Click the repository that contains the artifacts.
    4. Under Artifacts, find the artifact that you want to update.
    5. Click the Actions menu for that artifact.
      • To assign new tags to the artifact, click Add tags.
      • To update existing tags, click View tags and then click the Edit icon for the tag that you want to update.

      If you have permission to create a resource in OCI, you also have permission to add free-form tags to that resource. To add a defined tag, you must have permission to use the tag namespace. For information about tagging, see Resource Tags. If you're not sure whether to add tags to this resource, skip this option. You can add tags later.

  • To update an artifact, use the artifacts generic artifact resource, , referenced in Artifact Registry CLI.

    Get all the commands for artifacts generic artifact:

    oci artifacts generic artifact -h

    Use one of following commands to download an artifact to update an artifact:

    • update
    • update-by-path
    Provide the Artifact OCID

    Add tags or update an artifact's tags by providing the artifact OCID in the OCI CLI.

    Get help for the update command:

    oci artifacts generic artifact update -h

    Find the options to provide for the update command:

    • --artifact-id [required]
    • --freeform-tags (optional)
    • --defined-tags (optional)

    Update an artifact's tags by providing its OCID:

    oci artifacts generic artifact update --artifact-id <artifact-OCID> --freeform-tags <key-value-pair> --defined-tags <tags-predefined-for-tenancy-namespace>
    Provide the Repository OCID, Artifact Path, and Version

    Add tags or update an artifact's tags by providing the repository OCID, and the artifact path and version, in the OCI CLI.

    Get help for the update-by-path command:

    oci artifacts generic artifact update-by-path -h

    Find the options to provide for the update-by-path command:

    • --repository-id [required]
    • --artifact-path [required]
    • --artifact-version [required]
    • --freeform-tags (optional)
    • --defined-tags (optional)

    Update an artifact's tags by providing its repository, path, and version:

    oci artifacts generic artifact update-by-path --repository-id <repository-OCID> --artifact-path <path-defined-for-artifact-in-repo> --artifact-version <version-defined-for-artifact-in-repo> --freeform-tags <key-value-pair> --defined-tags <tags-predefined-for-tenancy-namespace>
  • You can update an artifact's tags in two ways: