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

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
client.cloud.inference.registry_credentials.replace(
    credential_name="docker-io",
    project_id=1,
    password="password",
    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

credential_name
string
required

Registry credential name.

Minimum length: 4
Examples:

"docker-io"

Body

application/json

Response

200

OK