Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-11906

Document system:group_info & system:bucket_info keyspaces

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • Morpheus
    • query
    • None
    • 0

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            simon.dew Simon Dew
            Donald.haggart Donald Haggart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty