Getting an Artifact's Details in Artifact Registry
Get details about a specific artifact in Artifact Registry.
To view an artifact's details, 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 view an artifact's details:
get
get-by-path
Provide the Artifact OCIDView details of a specific artifact by providing the artifact OCID in the OCI CLI.
Get help for the
get
command:oci artifacts generic artifact get -h
Find the options to provide for the
get
command:--artifact-id
Get details for a specific artifact by providing the artifact OCID:
oci artifacts generic artifact get --artifact-id <artifact-OCID>
Example:
oci artifacts repository get --artifact-id ocid1.genericartifact.oc1..xxx...
Provide the Repository OCID, Artifact Path, and VersionView details of a specific artifact by providing the repository OCID, and the artifact path and version, in the OCI CLI.
Get help for the
get-by-path
command:oci artifacts generic artifact get-by-path -h
Find the required options for the
get-by-path
command:--repository-id
--artifact-path
--artifact-version
oci artifacts generic artifact get-by-path --repository-id <repository-OCID> --artifact-path <path-defined-for-artifact-in-repo> --artifact-version <version-defined-for-artifact-in-repo>
Get details for a specific artifact by providing its repository, path, and version:
Example:
oci artifacts generic artifact get-by-path --repository-id ocid1.artifactrepository.oc1..xxx... --artifact-path project01/my-web-app/artifact-abc --artifact-version 1.0.0
You can get information about an artifact in two ways:
- Provide the artifact OCID in GetGenericArtifact.
- Provide the repository OCID, artifact path, and version in GetGenericArtifactByPath.