Python
from gcore import Gcore client = Gcore( api_key="My API Key", ) registry_user_created = client.cloud.registries.users.create( registry_id=0, project_id=0, region_id=0, duration=14, name="user1", ) print(registry_user_created.id)
{ "created_at": "2024-06-18T09:36:53.335000Z", "duration": 14, "expires_at": "2024-06-18T09:36:53.335000Z", "id": 1, "name": "user1", "read_only": false, "secret": "" }
Create a new user for accessing the container registry.
-1 <= x <= 365
Was this page helpful?