/projects/{project_id}/branches/{branch_id}/roles/{role_name}/reset_passwordReset role passwordResets the password for the specified Postgres role. Returns a new password and operations. The new password is ready to use when the last operation finishes. The old password remains valid until last operation finishes. Connections to the compute endpoint are dropped. If idle, the compute endpoint becomes active for a short period of time.
For related information, see Manage roles.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe branch ID
role_namestringpathrequiredThe role name
Responses
allOf · 2 options
roleobjectrequiredShow child attributes
authentication_methodstringAuthentication method configured for this role: `password`, `oauth`, or `no_login`.
branch_idstringrequiredThe ID of the branch this role belongs to.
created_atstring · date-timerequiredA timestamp indicating when the role was created
namestringrequiredPostgres role name within the branch.
passwordstringThe role password
protectedbooleanWhether or not the role is system-protected
updated_atstring · date-timerequiredA timestamp indicating when the role was last updated
operationsarray of objectrequiredShow child attributes
Show array items
An asynchronous action Neon performs on your resources (for example, starting a compute or creating a branch). Fields such as `action`, `status`, and `total_duration_ms` describe the operation and its progress.
actionstringrequiredThe action performed by the operation
branch_idstringThe ID of the branch this operation ran on.
created_atstring · date-timerequiredA timestamp indicating when the operation was created
endpoint_idstringThe ID of the compute endpoint this operation ran on.
errorstringHuman-readable message describing why the operation failed.
failures_countinteger · int32requiredThe number of times the operation failed
idstring · uuidrequiredThe operation ID
project_idstringrequiredThe ID of the project this operation ran on.
retry_atstring · date-timeA timestamp indicating when the operation was last retried
statusstringrequiredLifecycle state of the operation. `scheduling`: queued, not yet started. `running`: actively executing. `finished`: completed successfully. `failed`: ended with a failure. `error`: ended with a terminal error. `cancelling`: cancellation requested but not yet complete. `cancelled`: stopped before completion. `skipped`: bypassed without executing.
total_duration_msinteger · int32requiredThe total duration of the operation in milliseconds
updated_atstring · date-timerequiredA timestamp indicating when the operation status was last updated
{
"operations": [
{
"action": "apply_config",
"branch_id": "br-noisy-sunset-458773",
"created_at": "2022-12-03T12:58:18Z",
"endpoint_id": "ep-small-pine-767857",
"failures_count": 0,
"id": "6bef07a0-ebca-40cd-9100-7324036cfff2",
"project_id": "shiny-wind-028834",
"status": "running",
"total_duration_ms": 100,
"updated_at": "2022-12-03T12:58:18Z"
},
{
"action": "suspend_compute",
"branch_id": "br-noisy-sunset-458773",
"created_at": "2022-12-03T12:58:18Z",
"endpoint_id": "ep-small-pine-767857",
"failures_count": 0,
"id": "16b5bfca-4697-4194-a338-d2cdc9aca2af",
"project_id": "shiny-wind-028834",
"status": "scheduling",
"total_duration_ms": 100,
"updated_at": "2022-12-03T12:58:18Z"
}
],
"role": {
"branch_id": "br-noisy-sunset-458773",
"created_at": "2022-12-03T12:39:39Z",
"name": "sally",
"password": "",
"protected": false,
"updated_at": "2022-12-03T12:58:18Z"
}
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}