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" }
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
Project ID
1
Registry credential name.
4
"docker-io"
OK
The response is of type object.
object
Was this page helpful?