Skip to main content
GET
/
cloud
/
v3
/
inference
/
{project_id}
/
registry_credentials
/
{credential_name}
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
)
inference_registry_credentials = client.cloud.inference.registry_credentials.get(
    credential_name="docker-io",
    project_id=1,
)
print(inference_registry_credentials.project_id)
{
  "name": "<string>",
  "project_id": 123,
  "registry_url": "<string>",
  "username": "<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

credential_name
string
required

Registry credential name.

Minimum string length: 4

Response

200 - application/json

OK

name
string
required

Registry credential name.

Minimum string length: 4
project_id
integer
required

Project ID to which the inference registry credentials belongs.

registry_url
string
required

Registry URL.

username
string
required

Registry username.