Description
(For version 8.0.0)
To https://docs.couchbase.com/server/current/n1ql/n1ql-intro/sysinfo.html add:
Querying Groups
You can query group information using the system:group_info keyspace as follows:
SELECT * FROM system:group_info;
The query returns the following attributes:
description (string) The user-defined description associated with the group.
id (string) The group identifier.
ldap_group_ref (string) OPTIONAL The LDAP mapping.
roles (array) List of RBAC roles for the group.
Each entry in roles is an object with the following attributes:
bucket_name (string) OPTIONAL The name of the bucket to which the role applies.
collection_name (string) OPTIONAL The name of the collection to which the role applies.
role (string) The RBAC role.
scope_name (string) OPTIONAL The name of the scope to which the role applies.
Querying Bucket Information
You can query bucket information using the system:bucket_info (alias: system:database_info) keyspace as follows:
SELECT * FROM system:bucket_info;
|
The query returns the same information as the /pools/default/buckets REST interface, with the exception of the vBucketServerMap.vBucketMap field which is, for compactness, reported as a string with pipe delimited elements rather than an array of arrays.