Listing Artifacts in Artifact Registry

List the artifacts of a specific repository in Artifact Registry.

    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.
    3. Click the repository that contains the artifacts that you want to list.
    4. For each listed artifact, view the following properties:
      • Name
      • Artifact path
      • Version
      • State
        • Available
        • Deleted
      • Result of the 256-bit Secure Hash Algorithm (SHA256) digest applied to the artifact when it was uploaded to the repository
      • Size
      • Creation date and time
  • To list all the artifacts of a repository, use the artifacts generic artifact resource, referenced in Artifact Registry CLI.

    Get all the commands for artifacts generic artifact:

    oci artifacts generic artifact -h

    Get help for the list command:

    oci artifacts generic artifact list -h

    Find the required options for the list command:

    • --compartment-id
    • --repository-id

    Get the list of artifacts in a specific repository:

    oci artifacts generic artifact list --compartment-id <compartment-OCID> --repository-id <repository-OCID>

    Example:

    oci artifacts generic artifact list --compartment-id <compartment-OCID> ocid1.compartment.oc1..xxx... --repository-id ocid1.artifactrepository.oc1..xxx...
  • Use the ListGenericArtifacts operation to list the artifacts of a specific repository.