Skip to main content
GET
/
cloud
/
v3
/
inference
/
{project_id}
/
registry_credentials
/
{credential_name}
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
inference_registry_credentials = client.cloud.inference.registry_credentials.get(
    credential_name="docker-io",
    project_id=1,
)
print(inference_registry_credentials.project_id)
{
  "name": "docker-io",
  "project_id": 1,
  "registry_url": "registry.example.com",
  "username": "username"
}

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

Examples:

1

credential_name
string
required

Registry credential name.

Minimum length: 4
Examples:

"docker-io"

Response

200 - application/json

OK

name
string
required

Registry credential name.

Minimum length: 4
Examples:

"docker-io"

project_id
integer
required

Project ID to which the inference registry credentials belongs.

Examples:

1

registry_url
string
required

Registry URL.

Examples:

"registry.example.com"

username
string
required

Registry username.

Examples:

"username"

I