Optional
_attachmentsSchema for a map of attachment name to attachment metadata.
Optional
_conflictsSchema for a list of document revision identifiers.
Optional
_deletedDeletion flag. Available if document was removed.
Optional
_deleted_Schema for a list of document revision identifiers.
Optional
_idDocument ID.
Optional
_local_Document's update sequence in current database. Available if requested with local_seq=true query parameter.
Optional
_revSchema for a document revision identifier.
Optional
_revisionsSchema for list of revision information.
Optional
_revs_Schema for a list of objects with information about local revisions and their status.
Optional
cancelCancels the replication.
Optional
checkpoint_Defines replication checkpoint interval in milliseconds.
Optional
connection_HTTP connection timeout per replication. Even for very fast/reliable networks it might need to be increased if a remote database is too busy.
Optional
continuousConfigure the replication to be continuous.
Optional
create_Creates the target database. Requires administrator privileges on target server.
Optional
create_Request parameters to use during target database creation.
Optional
doc_Schema for a list of document IDs.
Optional
filterThe name of a filter function which is defined in a design document in the source database in {ddoc_id}/{filter} format. It determines which documents get replicated. Using the selector option provides performance benefits when compared with using the filter option. Use the selector option when possible.
Optional
http_Maximum number of HTTP connections per replication.
Optional
query_Schema for a map of string key value pairs, such as query parameters.
Optional
retries_Number of times a replication request is retried. The requests are retried with a doubling exponential backoff starting at 0.25 seconds, with a cap at 5 minutes.
Optional
selectorJSON object describing criteria used to select documents. The selector specifies fields in the document, and provides an expression to evaluate with the field content or other data.
The selector object must:
Using a selector is significantly more efficient than using a JavaScript filter function, and is the recommended option if filtering on document attributes only.
Elementary selector syntax requires you to specify one or more fields, and the corresponding values required for those fields. You can create more complex selector expressions by combining operators.
Operators are identified by the use of a dollar sign $
prefix in the name field.
There are two core types of operators in the selector syntax:
$eq
operator matches when the specified field contains a value that is equal to the
supplied argument. See the Cloudant Docs for a
list of all available combination and conditional operators.$eq
, $gt
, $gte
, $lt
, and $lte
(but not $ne
) can be used as the
basis of a query. You should include at least one of these in a selector.For further reference see selector syntax.
Optional
since_Start the replication at a specific sequence value.
Optional
socket_Replication socket options.
Schema for a replication source or target database.
Optional
source_Deprecated: This setting is forbidden in IBM Cloudant replication documents. This setting may be used with alternative replication mediators.
Address of a (http or socks5 protocol) proxy server through which replication with the source database should occur.
Schema for a replication source or target database.
Optional
target_Deprecated: This setting is forbidden in IBM Cloudant replication documents. This setting may be used with alternative replication mediators.
Address of a (http or socks5 protocol) proxy server through which replication with the target database should occur.
Optional
use_Specify whether to use _bulk_get for fetching documents from the source. If unset, the server configured default will be used.
Optional
use_Specify if checkpoints should be saved during replication. Using checkpoints means a replication can be efficiently resumed.
Optional
user_Schema for the user context of a session.
Optional
winning_Replicate only the winning revisions. Replication with this mode discards conflicting revisions. Replication IDs and checkpoints generated by this mode are different to those generated by default, so it is possible to first replicate the winning revisions then later backfill remaining revisions with a regular replication job.
Optional
worker_Controls how many documents are processed. After each batch a checkpoint is written so this controls how frequently checkpointing occurs.
Optional
worker_Controls how many separate processes will read from the changes manager and write to the target. A higher number can improve throughput.
Generated using TypeDoc
Schema for a replication document. Note that
selector
,doc_ids
, andfilter
are incompatible with each other.