Skip to main content
GET
/
cloud
/
v1
/
registries
/
{project_id}
/
{region_id}
/
{registry_id}
/
repositories
/
{repository_name}
/
artifacts
Python
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": "<string>",
      "id": 123,
      "pulled_at": "2023-11-07T05:31:56Z",
      "pushed_at": "2023-11-07T05:31:56Z",
      "registry_id": 123,
      "repository_id": 123,
      "size": 123,
      "tags": [
        {
          "artifact_id": 123,
          "id": 123,
          "name": "<string>",
          "pulled_at": "2023-11-07T05:31:56Z",
          "pushed_at": "2023-11-07T05:31:56Z",
          "repository_id": 123
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

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

List of artifacts

count
integer
required

Number of objects

Required range: x >= 0
results
RegistryArtifactSerializer · object[]
required

Objects