アーティファクト・レジストリでのアーティファクトの更新
アーティファクト・レジストリのアーティファクトに対して更新できる唯一のプロパティは、そのタグです。
アーティファクトを更新するには、
artifacts generic artifact
リソースを使用します(アーティファクト・レジストリCLIを参照)。artifacts generic artifact
のすべてのコマンドを取得します:oci artifacts generic artifact -h
次のいずれかのコマンドを使用して、アーティファクトを更新します:
update
update-by-path
アーティファクトOCIDの指定OCI CLIでアーティファクトOCIDを指定して、タグを追加するか、アーティファクトのタグを更新します。
update
コマンドのヘルプを取得します:oci artifacts generic artifact update -h
update
コマンドに指定するオプションを見つけます:--artifact-id
[必須]--freeform-tags
(オプション)--defined-tags
(オプション)
OCIDを指定してアーティファクトのタグを更新します:
oci artifacts generic artifact update --artifact-id <artifact-OCID> --freeform-tags <key-value-pair> --defined-tags <tags-predefined-for-tenancy-namespace>
リポジトリOCID、アーティファクト・パスおよびバージョンの指定OCI CLIでリポジトリOCID、アーティファクト・パスおよびバージョンを指定して、タグを追加するか、アーティファクトのタグを更新します。
update-by-path
コマンドのヘルプを取得します:oci artifacts generic artifact update-by-path -h
update-by-path
コマンドに指定するオプションを見つけます:--repository-id
[必須]--artifact-path
[必須]--artifact-version
[必須]--freeform-tags
(オプション)--defined-tags
(オプション)
リポジトリ、パスおよびバージョンを指定して、アーティファクトのタグを更新します:
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>
アーティファクトのタグは、2つの方法で更新できます:
- アーティファクトOCIDをUpdateGenericArtifactに指定します。
- リポジトリOCID、アーティファクト・パスおよびバージョンをUpdateGenericArtifactByPathに指定します。