ClusterManager
class ClusterManager (View source)
Provides management capabilities for a Couchbase Server Cluster
Constants
RBAC_DOMAIN_LOCAL |
The user account managed by Couchbase Cluster. |
RBAC_DOMAIN_EXTERNAL |
The user account managed by external system (e.g. LDAP). |
Methods
Lists all buckets on this cluster.
Creates new bucket
Removes a bucket identified by its name.
Provides information about the cluster.
Lists all users on this cluster.
Fetch single user by its name
Removes a user identified by its name.
Details
array
listBuckets()
Lists all buckets on this cluster.
createBucket(string $name, array $options = [])
Creates new bucket
removeBucket(string $name)
Removes a bucket identified by its name.
array
info()
Provides information about the cluster.
Returns an associative array of status information as seen on the cluster. The exact structure of the returned data can be seen in the Couchbase Manual by looking at the cluster /info endpoint.
array
listUsers(int $domain = RBAC_DOMAIN_LOCAL)
Lists all users on this cluster.
array
getUser(string $username, int $domain = RBAC_DOMAIN_LOCAL)
Fetch single user by its name
upsertUser(string $name, UserSettings $settings, int $domain = RBAC_DOMAIN_LOCAL)
Creates new user
removeUser(string $name, int $domain = RBAC_DOMAIN_LOCAL)
Removes a user identified by its name.