curl --request GET \
--url https://api.example.com/v1/instances/{instance}/roles/{role}{
"name": "<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>",
"connectionLimit": 123,
"validUntil": "<string>",
"attribute": "<string>"
}OK
InstanceRole is the API message for instance role.
The role name.
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 is 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?