Skip to main content
POST
/
cloud
/
v1
/
dbaas
/
postgres
/
clusters
/
{project_id}
/
{region_id}
/
{cluster_name}
/
users
/
{username}
/
credentials
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
postgres_user_credentials = client.cloud.databases.postgres.clusters.user_credentials.regenerate(
    username="username",
    project_id=0,
    region_id=0,
    cluster_name="cluster_name",
)
print(postgres_user_credentials.password)
{
  "password": "<PASSWORD>",
  "username": "myuser"
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
integer
required
region_id
integer
required
cluster_name
string
required
username
string
required

Response

password
string
required
Examples:
username
string
required
Examples: