/projects/{project_id}/branches/{branch_id}/rolesList rolesRetrieves a list of Postgres roles from the specified branch. For related information, see Manage roles.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe branch ID
Responses
rolesarray of objectrequiredRoles belonging to the branch. Each role includes fields such as `branch_id`, `name`, `protected`, `created_at`, and `updated_at`.
Show child attributes
Show array items
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
{
"roles": [
{
"branch_id": "br-aged-salad-637688",
"created_at": "2022-11-23T17:42:25Z",
"name": "casey",
"protected": false,
"updated_at": "2022-11-23T17:42:25Z"
},
{
"branch_id": "br-aged-salad-637688",
"created_at": "2022-10-22T17:38:21Z",
"name": "thomas",
"protected": false,
"updated_at": "2022-10-22T17:38:21Z"
}
]
}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"
}