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 artifactresource, referenced in Artifact Registry CLI.Get all the commands for
artifacts generic artifact:oci artifacts generic artifact -hUse one of following commands to view an artifact's details:
getget-by-path
Provide the Artifact OCIDView details of a specific artifact by providing the artifact OCID in the OCI CLI.
Get help for the
getcommand:oci artifacts generic artifact get -hFind the options to provide for the
getcommand:--artifact-idGet 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-pathcommand:oci artifacts generic artifact get-by-path -hFind the required options for the
get-by-pathcommand:--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.0You 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.