GET
/
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
)
inference_registry_credential = client.cloud.inference.registry_credentials.get(
    credential_name="docker-io",
    project_id=1,
)
print(inference_registry_credential.project_id)
{
  "name": "docker-io",
  "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

credential_name
string
required

Registry credential name.

Minimum length: 4
Examples:

"docker-io"

Response

200 - application/json

OK

The response is of type object.