GET
/
cloud
/
v1
/
registries
/
{project_id}
/
{region_id}
/
{registry_id}
/
repositories
/
{repository_name}
/
artifacts
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
registry_artifact_list = client.cloud.registries.artifacts.list(
    repository_name="repository_name",
    project_id=0,
    region_id=0,
    registry_id=0,
)
print(registry_artifact_list.count)
{
  "count": 1,
  "results": [
    {
      "digest": "sha256:5414002a0c147f8e41da0d0764b5074480012852d5d9a0ef8bd2fec904e62b7c",
      "id": 1,
      "pulled_at": "2024-06-18T09:36:53.335000Z",
      "pushed_at": "2024-06-18T09:36:53.335000Z",
      "registry_id": 1,
      "repository_id": 1,
      "size": 1,
      "tags": [
        {
          "artifact_id": 1,
          "id": 1,
          "name": "v0.0.1",
          "pulled_at": "2024-06-18T09:36:53.335000Z",
          "pushed_at": "2024-06-18T09:36:53.335000Z",
          "repository_id": 5
        },
        {
          "artifact_id": 1,
          "id": 2,
          "name": "latest",
          "pulled_at": "2024-06-18T09:36:53.335000Z",
          "pushed_at": "2024-06-18T09:36:53.335000Z",
          "repository_id": 5
        }
      ]
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

registry_id
integer
required

Registry ID

repository_name
string
required

Repository name If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb

Response

200
application/json

List of artifacts

The response is of type object.