Python
from gcore import Gcore client = Gcore( api_key="My API Key", ) response = client.cloud.registries.users.refresh_secret( user_id=0, project_id=0, region_id=0, registry_id=0, ) print(response.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": "" }
Generate a new secret for a specific registry user.
Was this page helpful?