curl --request GET \
--url https://api.example.com/v1/instances/{instance}/roles/{role}{
"name": "<string>",
"roleName": "<string>",
"connectionLimit": 123,
"validUntil": "<string>",
"attribute": "<string>"
}Gets a database role from an instance. Permissions required: bb.instanceRoles.get
curl --request GET \
--url https://api.example.com/v1/instances/{instance}/roles/{role}{
"name": "<string>",
"roleName": "<string>",
"connectionLimit": 123,
"validUntil": "<string>",
"attribute": "<string>"
}OK
InstanceRole is the API message for instance role.
The name of the role. Format: instances/{instance}/roles/{role} The role name is the unique name for the role.
The role name. It's unique within the instance.
The connection count limit for this role.
The expiration for the role's password.
The role attribute. For PostgreSQL, it contains super_user, no_inherit, create_role, create_db, can_login, replication, and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON . TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html
Was this page helpful?