from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_registry_credentials_create = client.cloud.inference.registry_credentials.create(
project_id=1,
name="docker-io",
password="password",
registry_url="registry.example.com",
username="username",
)
print(inference_registry_credentials_create.project_id)
{
"name": "docker-io",
"password": "password",
"project_id": 1,
"registry_url": "registry.example.com",
"username": "username"
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
inference_registry_credentials_create = client.cloud.inference.registry_credentials.create(
project_id=1,
name="docker-io",
password="password",
registry_url="registry.example.com",
username="username",
)
print(inference_registry_credentials_create.project_id)
{
"name": "docker-io",
"password": "password",
"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
Project ID
1
OK
The response is of type object
.
Was this page helpful?