POST
/
cloud
/
v3
/
inference
/
{project_id}
/
registry_credentials
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
inference_registry_credential_full = client.cloud.inference.registry_credentials.create(
    project_id=1,
    name="docker-io",
    password="password",
    registry_url="registry.example.com",
    username="username",
)
print(inference_registry_credential_full.project_id)
{
  "name": "docker-io",
  "password": "password",
  "project_id": 1,
  "registry_url": "registry.example.com",
  "username": "username"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

Body

application/json

Response

200 - application/json

OK

The response is of type object.