Management Options
Note
Further updates to the management options docs will come with future 4.0.x releases.
Bucket Management
CreateBucketOptions
- class couchbase.management.options.CreateBucketOptions(timeout=None)
Available options for a
BucketManager
’s create bucket operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global key-value operation timeout.
DropBucketOptions
- class couchbase.management.options.DropBucketOptions(timeout=None)
Available options to for a
BucketManager
’s update bucket operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
FlushBucketOptions
- class couchbase.management.options.FlushBucketOptions(timeout=None)
Available options to for a
BucketManager
’s flush bucket operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
GetAllBucketOptions
- class couchbase.management.options.GetAllBucketOptions(timeout=None)
GetBucketOptions
- class couchbase.management.options.GetBucketOptions(timeout=None)
Available options to for a
BucketManager
’s get bucket operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
UpdateBucketOptions
- class couchbase.management.options.UpdateBucketOptions(timeout=None)
Available options to for a
BucketManager
’s update bucket operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
Collection Management
CreateCollectionOptions
- class couchbase.management.options.CreateCollectionOptions(timeout=None)
Available options for a
CollectionManager
’s create collection operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
CreateScopeOptions
- class couchbase.management.options.CreateScopeOptions(timeout=None)
Available options for a
CollectionManager
’s create scope operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
DropCollectionOptions
- class couchbase.management.options.DropCollectionOptions(timeout=None)
Available options for a
CollectionManager
’s drop collection operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
DropScopeOptions
- class couchbase.management.options.DropScopeOptions(timeout=None)
Available options for a
CollectionManager
’s drop scope operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
GetAllScopesOptions
- class couchbase.management.options.GetAllScopesOptions(timeout=None)
Available options for a
CollectionManager
’s get all scopes operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
Query Index Management
BuildDeferredQueryIndexOptions
- class couchbase.management.options.BuildDeferredQueryIndexOptions(timeout=None, scope_name=None, collection_name=None)
Available options to for a
QueryIndexManager
’s build deferred indexes operation.Note
All management options should be imported from couchbase.management.options.
- Parameters:
collection_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the collection of the index.
scope_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the scope of the index.
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
CreatePrimaryQueryIndexOptions
- class couchbase.management.options.CreatePrimaryQueryIndexOptions(index_name=None, timeout=None, ignore_if_exists=None, num_replicas=None, deferred=None, condition=None, scope_name=None, collection_name=None)
Available options to for a
QueryIndexManager
’s create primary index operation.Note
All management options should be imported from couchbase.management.options.
- Parameters:
collection_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the collection of the index.
condition (str, optional) – Specifies the ‘where’ condition for partial index creation.
deferred (bool, optional) – Specifies whether this index creation should be deferred until a later point in time when they can be explicitly built together.
ignore_if_exists (bool, optional) – Whether or not the call should ignore the index already existing when determining whether the call was successful.
index_name (str, optional) – Specifies the name of the primary index.
num_replicas (int, optional) – The number of replicas of this index that should be created.
scope_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the scope of the index.
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
CreateQueryIndexOptions
- class couchbase.management.options.CreateQueryIndexOptions(timeout=None, ignore_if_exists=None, num_replicas=None, deferred=None, condition=None, scope_name=None, collection_name=None)
Available options to for a
QueryIndexManager
’s create index operation.Note
All management options should be imported from couchbase.management.options.
- Parameters:
collection_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the collection of the index.
condition (str, optional) – Specifies the ‘where’ condition for partial index creation.
deferred (bool, optional) – Specifies whether this index creation should be deferred until a later point in time when they can be explicitly built together.
ignore_if_exists (bool, optional) – Whether or not the call should ignore the index already existing when determining whether the call was successful.
num_replicas (int, optional) – The number of replicas of this index that should be created.
scope_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the scope of the index.
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
DropPrimaryQueryIndexOptions
- class couchbase.management.options.DropPrimaryQueryIndexOptions(index_name=None, ignore_if_not_exists=None, timeout=None, scope_name=None, collection_name=None)
Available options to for a
QueryIndexManager
’s drop primary index operation.Note
All management options should be imported from couchbase.management.options.
- Parameters:
collection_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the collection of the index.
ignore_if_not_exists (bool, optional) – Whether or not the call should ignore the index not existing when determining whether the call was successful.
index_name (str, optional) – Specifies the name of the primary index.
scope_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the scope of the index.
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
DropQueryIndexOptions
- class couchbase.management.options.DropQueryIndexOptions(ignore_if_not_exists=None, timeout=None, scope_name=None, collection_name=None)
Available options to for a
QueryIndexManager
’s drop index operation.Note
All management options should be imported from couchbase.management.options.
- Parameters:
collection_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the collection of the index.
ignore_if_not_exists (bool, optional) – Whether or not the call should ignore the index not existing when determining whether the call was successful.
scope_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the scope of the index.
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
GetAllQueryIndexOptions
- class couchbase.management.options.GetAllQueryIndexOptions(timeout=None, scope_name=None, collection_name=None)
Available options to for a
QueryIndexManager
’s get all indexes operation.Note
All management options should be imported from couchbase.management.options.
- Parameters:
collection_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the collection of the indexes.
scope_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the scope of the indexes.
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
WatchQueryIndexOptions
- class couchbase.management.options.WatchQueryIndexOptions(watch_primary=None, timeout=None, scope_name=None, collection_name=None)
Available options to for a
QueryIndexManager
’s watch indexes operation.Note
All management options should be imported from couchbase.management.options.
- Parameters:
collection_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the collection of the index.
scope_name (str, optional) – ** DEPRECATED ** - use ~couchbase.management.queries.CollectionQueryIndexManager. Specifies the scope of the index.
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
watch_primary (bool, optional) – Specifies whether the primary indexes should be watched as well.
User Management
DropGroupOptions
- class couchbase.management.options.DropGroupOptions(timeout=None)
Available options to for a
UserManager
’s drop group operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
DropUserOptions
- class couchbase.management.options.DropUserOptions(domain_name='local', timeout=None)
Available options to for a
UserManager
’s drop user operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
domain_name (str, optional) – The user’s domain name (either
local
orexternal
). Defaults tolocal
.timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
GetAllGroupsOptions
- class couchbase.management.options.GetAllGroupsOptions(timeout=None)
Available options to for a
UserManager
’s get all groups operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
GetAllUsersOptions
- class couchbase.management.options.GetAllUsersOptions(domain_name='local', timeout=None)
Available options to for a
UserManager
’s get all users operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
domain_name (str, optional) – The user’s domain name (either
local
orexternal
). Defaults tolocal
.timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
GetGroupOptions
- class couchbase.management.options.GetGroupOptions(timeout=None)
Available options to for a
UserManager
’s get group operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
GetRolesOptions
- class couchbase.management.options.GetRolesOptions(timeout=None)
Available options to for a
UserManager
’s get roles operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
GetUserOptions
- class couchbase.management.options.GetUserOptions(**kwargs)
Available options to for a
UserManager
’s get user operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
domain_name (str, optional) – The user’s domain name (either
local
orexternal
). Defaults tolocal
.timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
UpsertGroupOptions
- class couchbase.management.options.UpsertGroupOptions(timeout=None)
Available options to for a
UserManager
’s upsert group operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.
UpsertUserOptions
- class couchbase.management.options.UpsertUserOptions(domain_name='local', timeout=None)
Available options to for a
UserManager
’s upsert user operation.Note
All management options should be imported from
couchbase.management.options
.- Parameters:
domain_name (str, optional) – The user’s domain name (either
local
orexternal
). Defaults tolocal
.timeout (timedelta, optional) – The timeout for this operation. Defaults to global management operation timeout.