POST
/
cloud
/
v1
/
registries
/
{project_id}
/
{region_id}
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
registry = client.cloud.registries.create(
    project_id=0,
    region_id=0,
    name="reg-home1",
)
print(registry.id)
{
  "created_at": "2024-06-18T09:36:53.335000Z",
  "id": 1,
  "name": "company-name",
  "repo_count": 1,
  "storage_limit": 5,
  "storage_used": 1000000000,
  "updated_at": "2024-06-18T09:36:53.335000Z",
  "url": "<string>"
}

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

Body

application/json
name
string
required

A name for the container registry.

Should be in lowercase, consisting only of numbers, letters and -,

with maximum length of 24 characters

Examples:

"reg-home1"

storage_limit
integer
default:5

Registry storage limit, GiB

Required range: 1 <= x <= 1000
Examples:

5

Response

Created registry details

created_at
string<date-time>
required

Registry creation date-time

Examples:

"2024-06-18T09:36:53.335000Z"

id
integer
required

Registry ID

Examples:

1

name
string
required

Registry name

Examples:

"company-name"

repo_count
integer
required

Number of repositories in the registry

Examples:

1

storage_limit
integer
required

Registry storage limit, GiB

Examples:

5

storage_used
integer
required

Registry storage used, bytes

Examples:

1000000000

updated_at
string<date-time>
required

Registry modification date-time

Examples:

"2024-06-18T09:36:53.335000Z"

url
string
required

Registry url