---
title: "List Artifact Versions"
method: GET
path: "/registry/{registry_ref}/artifact/{artifact}/versions"
tags: ["Artifacts"]
---

# List Artifact Versions

`GET /registry/{registry_ref}/artifact/{artifact}/versions`

Lists all the Artifact Versions.

## Path parameters

- `registry_ref` string, required
- `artifact` string, required

## Query parameters

- `artifact_type` 'model' | 'dataset'
- `page` integer
- `size` integer
- `sort_order` string
- `sort_field` string
- `search_term` string
- `deleted` 'exclude' | 'include' | 'only'

## Response `200`

response for list versions of artifact

- object
  - `status` 'SUCCESS' | 'FAILURE' | 'ERROR', required — Indicates if the request was successful or not
  - `data` ListArtifactVersion, required — A list of Artifact versions
    - `pageCount` integer — The total number of pages
    - `itemCount` integer — The total number of items
    - `pageSize` integer — The number of items per page
    - `pageIndex` integer — The current page
    - `artifactVersions` ArtifactVersionMetadata[] — A list of Artifact versions
      - `name` string, required
      - `size` string
      - `registryIdentifier` string, required
      - `registryPath` string, required
      - `digestCount` integer
      - `pullCommand` string
      - `downloadsCount` integer
      - `fileCount` integer
      - `lastModified` string
      - `isQuarantined` boolean
      - `quarantineReason` string
      - `packageType` 'DOCKER' | 'MAVEN' | 'PYTHON' | 'GENERIC' | 'HELM' | 'NUGET' | 'NPM' | 'RPM' | 'CARGO' | 'GO' | 'HUGGINGFACE', required — refers to package
      - `artifactType` 'model' | 'dataset' — refers to artifact type
      - `metadata` ArtifactEntityMetadata — Artifact Entity Metadata
      - `uuid` string, required
      - `registryUUID` string, required

## Other responses

- `400` — Bad request
- `401` — Unauthenticated
- `403` — Unauthorized
- `404` — The specified resource was not found
- `500` — Internal server error

---

[API](https://skmtc.net/harness/apis/harness-artifact-registry-api.md) · [All operations](https://skmtc.net/harness/apis/harness-artifact-registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/harness/harness-artifact-registry-api/revisions/e315ed26a2f1/schema)
