Package com.ibm.cloud.cloudant.v1
Class Cloudant
java.lang.Object
com.ibm.cloud.sdk.core.service.BaseService
com.ibm.cloud.cloudant.internal.CloudantBaseService
com.ibm.cloud.cloudant.v1.Cloudant
NoSQL database based on Apache CouchDB.
See: https://cloud.ibm.com/docs/services/Cloudant/
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default service name used when configuring the `Cloudant` client.static final String
Default service endpoint URL.Fields inherited from class com.ibm.cloud.sdk.core.service.BaseService
PROPNAME_DISABLE_SSL, PROPNAME_ENABLE_GZIP, PROPNAME_ENABLE_RETRIES, PROPNAME_MAX_RETRIES, PROPNAME_RETRY_INTERVAL, PROPNAME_URL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> deleteAttachment
(DeleteAttachmentOptions deleteAttachmentOptions) Delete an attachment.com.ibm.cloud.sdk.core.http.ServiceCall
<Ok> deleteDatabase
(DeleteDatabaseOptions deleteDatabaseOptions) Delete a database.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> deleteDesignDocument
(DeleteDesignDocumentOptions deleteDesignDocumentOptions) Delete a design document.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> deleteDocument
(DeleteDocumentOptions deleteDocumentOptions) Delete a document.com.ibm.cloud.sdk.core.http.ServiceCall
<Ok> deleteIndex
(DeleteIndexOptions deleteIndexOptions) Delete an index.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> deleteLocalDocument
(DeleteLocalDocumentOptions deleteLocalDocumentOptions) Delete a local document.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> deleteReplicationDocument
(DeleteReplicationDocumentOptions deleteReplicationDocumentOptions) Cancel a replication.com.ibm.cloud.sdk.core.http.ServiceCall
<List<ActiveTask>> Retrieve list of running tasks.com.ibm.cloud.sdk.core.http.ServiceCall
<List<ActiveTask>> getActiveTasks
(GetActiveTasksOptions getActiveTasksOptions) Retrieve list of running tasks.com.ibm.cloud.sdk.core.http.ServiceCall
<ActivityTrackerEvents> Retrieve Activity Tracker events information.com.ibm.cloud.sdk.core.http.ServiceCall
<ActivityTrackerEvents> getActivityTrackerEvents
(GetActivityTrackerEventsOptions getActivityTrackerEventsOptions) Retrieve Activity Tracker events information.Query a list of all database names in the instance.getAllDbs
(GetAllDbsOptions getAllDbsOptions) Query a list of all database names in the instance.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> getAttachment
(GetAttachmentOptions getAttachmentOptions) Retrieve an attachment.com.ibm.cloud.sdk.core.http.ServiceCall
<CapacityThroughputInformation> Retrieve provisioned throughput capacity information.com.ibm.cloud.sdk.core.http.ServiceCall
<CapacityThroughputInformation> getCapacityThroughputInformation
(GetCapacityThroughputInformationOptions getCapacityThroughputInformationOptions) Retrieve provisioned throughput capacity information.com.ibm.cloud.sdk.core.http.ServiceCall
<CorsInformation> Retrieve CORS configuration information.com.ibm.cloud.sdk.core.http.ServiceCall
<CorsInformation> getCorsInformation
(GetCorsInformationOptions getCorsInformationOptions) Retrieve CORS configuration information.com.ibm.cloud.sdk.core.http.ServiceCall
<CurrentThroughputInformation> Retrieve the current provisioned throughput capacity consumption.com.ibm.cloud.sdk.core.http.ServiceCall
<CurrentThroughputInformation> getCurrentThroughputInformation
(GetCurrentThroughputInformationOptions getCurrentThroughputInformationOptions) Retrieve the current provisioned throughput capacity consumption.com.ibm.cloud.sdk.core.http.ServiceCall
<DatabaseInformation> getDatabaseInformation
(GetDatabaseInformationOptions getDatabaseInformationOptions) Retrieve information about a database.com.ibm.cloud.sdk.core.http.ServiceCall
<DbUpdates> Deprecated.this method is deprecated and may be removed in a future releasecom.ibm.cloud.sdk.core.http.ServiceCall
<DbUpdates> getDbUpdates
(GetDbUpdatesOptions getDbUpdatesOptions) Deprecated.this method is deprecated and may be removed in a future releasecom.ibm.cloud.sdk.core.http.ServiceCall
<DesignDocument> getDesignDocument
(GetDesignDocumentOptions getDesignDocumentOptions) Retrieve a design document.com.ibm.cloud.sdk.core.http.ServiceCall
<DesignDocumentInformation> getDesignDocumentInformation
(GetDesignDocumentInformationOptions getDesignDocumentInformationOptions) Retrieve information about a design document.com.ibm.cloud.sdk.core.http.ServiceCall
<Document> getDocument
(GetDocumentOptions getDocumentOptions) Retrieve a document.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> getDocumentAsMixed
(GetDocumentOptions getDocumentOptions) Retrieve a document as mixed.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> getDocumentAsRelated
(GetDocumentOptions getDocumentOptions) Retrieve a document as related.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> getDocumentAsStream
(GetDocumentOptions getDocumentOptions) Retrieve a document as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentShardInfo> getDocumentShardsInfo
(GetDocumentShardsInfoOptions getDocumentShardsInfoOptions) Retrieve shard information for a specific document.com.ibm.cloud.sdk.core.http.ServiceCall
<IndexesInformation> getIndexesInformation
(GetIndexesInformationOptions getIndexesInformationOptions) Retrieve information about all indexes.com.ibm.cloud.sdk.core.http.ServiceCall
<Document> getLocalDocument
(GetLocalDocumentOptions getLocalDocumentOptions) Retrieve a local document.com.ibm.cloud.sdk.core.http.ServiceCall
<MembershipInformation> Retrieve cluster membership information.com.ibm.cloud.sdk.core.http.ServiceCall
<MembershipInformation> getMembershipInformation
(GetMembershipInformationOptions getMembershipInformationOptions) Retrieve cluster membership information.com.ibm.cloud.sdk.core.http.ServiceCall
<PartitionInformation> getPartitionInformation
(GetPartitionInformationOptions getPartitionInformationOptions) Retrieve information about a database partition.com.ibm.cloud.sdk.core.http.ServiceCall
<ReplicationDocument> getReplicationDocument
(GetReplicationDocumentOptions getReplicationDocumentOptions) Retrieve a replication document.com.ibm.cloud.sdk.core.http.ServiceCall
<SchedulerDocsResult> Retrieve replication scheduler documents.com.ibm.cloud.sdk.core.http.ServiceCall
<SchedulerDocsResult> getSchedulerDocs
(GetSchedulerDocsOptions getSchedulerDocsOptions) Retrieve replication scheduler documents.com.ibm.cloud.sdk.core.http.ServiceCall
<SchedulerDocument> getSchedulerDocument
(GetSchedulerDocumentOptions getSchedulerDocumentOptions) Retrieve a replication scheduler document.com.ibm.cloud.sdk.core.http.ServiceCall
<SchedulerJob> getSchedulerJob
(GetSchedulerJobOptions getSchedulerJobOptions) Retrieve a replication scheduler job.com.ibm.cloud.sdk.core.http.ServiceCall
<SchedulerJobsResult> Retrieve replication scheduler jobs.com.ibm.cloud.sdk.core.http.ServiceCall
<SchedulerJobsResult> getSchedulerJobs
(GetSchedulerJobsOptions getSchedulerJobsOptions) Retrieve replication scheduler jobs.com.ibm.cloud.sdk.core.http.ServiceCall
<SearchInfoResult> getSearchInfo
(GetSearchInfoOptions getSearchInfoOptions) Retrieve information about a search index.com.ibm.cloud.sdk.core.http.ServiceCall
<Security> getSecurity
(GetSecurityOptions getSecurityOptions) Retrieve database permissions information.com.ibm.cloud.sdk.core.http.ServiceCall
<ServerInformation> Retrieve server instance information.com.ibm.cloud.sdk.core.http.ServiceCall
<ServerInformation> getServerInformation
(GetServerInformationOptions getServerInformationOptions) Retrieve server instance information.com.ibm.cloud.sdk.core.http.ServiceCall
<SessionInformation> Retrieve current session cookie information.com.ibm.cloud.sdk.core.http.ServiceCall
<SessionInformation> getSessionInformation
(GetSessionInformationOptions getSessionInformationOptions) Retrieve current session cookie information.com.ibm.cloud.sdk.core.http.ServiceCall
<ShardsInformation> getShardsInformation
(GetShardsInformationOptions getShardsInformationOptions) Retrieve shard information.com.ibm.cloud.sdk.core.http.ServiceCall
<UpInformation> Retrieve information about whether the server is up.com.ibm.cloud.sdk.core.http.ServiceCall
<UpInformation> getUpInformation
(GetUpInformationOptions getUpInformationOptions) Retrieve information about whether the server is up.com.ibm.cloud.sdk.core.http.ServiceCall
<UuidsResult> getUuids()
Retrieve one or more UUIDs.com.ibm.cloud.sdk.core.http.ServiceCall
<UuidsResult> getUuids
(GetUuidsOptions getUuidsOptions) Retrieve one or more UUIDs.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> headAttachment
(HeadAttachmentOptions headAttachmentOptions) Retrieve the HTTP headers for an attachment.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> headDatabase
(HeadDatabaseOptions headDatabaseOptions) Retrieve the HTTP headers for a database.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> headDesignDocument
(HeadDesignDocumentOptions headDesignDocumentOptions) Retrieve the HTTP headers for a design document.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> headDocument
(HeadDocumentOptions headDocumentOptions) Retrieve the HTTP headers for the document.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> headLocalDocument
(HeadLocalDocumentOptions headLocalDocumentOptions) Retrieve HTTP headers for a local document.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> headReplicationDocument
(HeadReplicationDocumentOptions headReplicationDocumentOptions) Retrieve the HTTP headers for a replication document.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> headSchedulerDocument
(HeadSchedulerDocumentOptions headSchedulerDocumentOptions) Retrieve HTTP headers for a replication scheduler document.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> headSchedulerJob
(HeadSchedulerJobOptions headSchedulerJobOptions) Retrieve the HTTP headers for a replication scheduler job.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> Retrieve HTTP headers about whether the server is up.com.ibm.cloud.sdk.core.http.ServiceCall
<Void> headUpInformation
(HeadUpInformationOptions headUpInformationOptions) Retrieve HTTP headers about whether the server is up.static Cloudant
Class method which constructs an instance of the `Cloudant` client.static Cloudant
newInstance
(String serviceName) Class method which constructs an instance of the `Cloudant` client.com.ibm.cloud.sdk.core.http.ServiceCall
<Ok> postActivityTrackerEvents
(PostActivityTrackerEventsOptions postActivityTrackerEventsOptions) Modify Activity Tracker events configuration.com.ibm.cloud.sdk.core.http.ServiceCall
<AllDocsResult> postAllDocs
(PostAllDocsOptions postAllDocsOptions) Query a list of all documents in a database.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postAllDocsAsStream
(PostAllDocsOptions postAllDocsOptions) Query a list of all documents in a database as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<AllDocsQueriesResult> postAllDocsQueries
(PostAllDocsQueriesOptions postAllDocsQueriesOptions) Multi-query the list of all documents in a database.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postAllDocsQueriesAsStream
(PostAllDocsQueriesOptions postAllDocsQueriesOptions) Multi-query the list of all documents in a database as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<ApiKeysResult> Generates API keys for apps or persons to enable database access.com.ibm.cloud.sdk.core.http.ServiceCall
<ApiKeysResult> postApiKeys
(PostApiKeysOptions postApiKeysOptions) Generates API keys for apps or persons to enable database access.com.ibm.cloud.sdk.core.http.ServiceCall
<List<DocumentResult>> postBulkDocs
(PostBulkDocsOptions postBulkDocsOptions) Bulk modify multiple documents in a database.com.ibm.cloud.sdk.core.http.ServiceCall
<BulkGetResult> postBulkGet
(PostBulkGetOptions postBulkGetOptions) Bulk query revision information for multiple documents.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postBulkGetAsMixed
(PostBulkGetOptions postBulkGetOptions) Bulk query revision information for multiple documents as mixed.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postBulkGetAsRelated
(PostBulkGetOptions postBulkGetOptions) Bulk query revision information for multiple documents as related.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postBulkGetAsStream
(PostBulkGetOptions postBulkGetOptions) Bulk query revision information for multiple documents as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<ChangesResult> postChanges
(PostChangesOptions postChangesOptions) Query the database document changes feed.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postChangesAsStream
(PostChangesOptions postChangesOptions) Query the database document changes feed as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<List<DbsInfoResult>> postDbsInfo
(PostDbsInfoOptions postDbsInfoOptions) Query information about multiple databases.com.ibm.cloud.sdk.core.http.ServiceCall
<AllDocsResult> postDesignDocs
(PostDesignDocsOptions postDesignDocsOptions) Query a list of all design documents in a database.com.ibm.cloud.sdk.core.http.ServiceCall
<AllDocsQueriesResult> postDesignDocsQueries
(PostDesignDocsQueriesOptions postDesignDocsQueriesOptions) Multi-query the list of all design documents.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> postDocument
(PostDocumentOptions postDocumentOptions) Create or modify a document in a database.com.ibm.cloud.sdk.core.http.ServiceCall
<ExplainResult> postExplain
(PostExplainOptions postExplainOptions) Retrieve information about which index is used for a query.com.ibm.cloud.sdk.core.http.ServiceCall
<FindResult> postFind
(PostFindOptions postFindOptions) Query an index by using selector syntax.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postFindAsStream
(PostFindOptions postFindOptions) Query an index by using selector syntax as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<IndexResult> postIndex
(PostIndexOptions postIndexOptions) Create a new index on a database.com.ibm.cloud.sdk.core.http.ServiceCall
<AllDocsResult> postPartitionAllDocs
(PostPartitionAllDocsOptions postPartitionAllDocsOptions) Query a list of all documents in a database partition.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postPartitionAllDocsAsStream
(PostPartitionAllDocsOptions postPartitionAllDocsOptions) Query a list of all documents in a database partition as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<ExplainResult> postPartitionExplain
(PostPartitionExplainOptions postPartitionExplainOptions) Retrieve information about which partition index is used for a query.com.ibm.cloud.sdk.core.http.ServiceCall
<FindResult> postPartitionFind
(PostPartitionFindOptions postPartitionFindOptions) Query a database partition index by using selector syntax.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postPartitionFindAsStream
(PostPartitionFindOptions postPartitionFindOptions) Query a database partition index by using selector syntax as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<SearchResult> postPartitionSearch
(PostPartitionSearchOptions postPartitionSearchOptions) Query a database partition search index.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postPartitionSearchAsStream
(PostPartitionSearchOptions postPartitionSearchOptions) Query a database partition search index as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<ViewResult> postPartitionView
(PostPartitionViewOptions postPartitionViewOptions) Query a database partition MapReduce view function.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postPartitionViewAsStream
(PostPartitionViewOptions postPartitionViewOptions) Query a database partition MapReduce view function as stream.postRevsDiff
(PostRevsDiffOptions postRevsDiffOptions) Query the document revisions and possible ancestors missing from the database.com.ibm.cloud.sdk.core.http.ServiceCall
<SearchResult> postSearch
(PostSearchOptions postSearchOptions) Query a search index.com.ibm.cloud.sdk.core.http.ServiceCall
<SearchAnalyzeResult> postSearchAnalyze
(PostSearchAnalyzeOptions postSearchAnalyzeOptions) Query tokenization of sample text.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postSearchAsStream
(PostSearchOptions postSearchOptions) Query a search index as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<ViewResult> postView
(PostViewOptions postViewOptions) Query a MapReduce view.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postViewAsStream
(PostViewOptions postViewOptions) Query a MapReduce view as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<ViewQueriesResult> postViewQueries
(PostViewQueriesOptions postViewQueriesOptions) Multi-query a MapReduce view.com.ibm.cloud.sdk.core.http.ServiceCall
<InputStream> postViewQueriesAsStream
(PostViewQueriesOptions postViewQueriesOptions) Multi-query a MapReduce view as stream.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> putAttachment
(PutAttachmentOptions putAttachmentOptions) Create or modify an attachment.com.ibm.cloud.sdk.core.http.ServiceCall
<CapacityThroughputInformation> putCapacityThroughputConfiguration
(PutCapacityThroughputConfigurationOptions putCapacityThroughputConfigurationOptions) Update the target provisioned throughput capacity.com.ibm.cloud.sdk.core.http.ServiceCall
<Ok> putCloudantSecurityConfiguration
(PutCloudantSecurityConfigurationOptions putCloudantSecurityConfigurationOptions) Modify only Cloudant related database permissions.com.ibm.cloud.sdk.core.http.ServiceCall
<Ok> putCorsConfiguration
(PutCorsConfigurationOptions putCorsConfigurationOptions) Modify CORS configuration.com.ibm.cloud.sdk.core.http.ServiceCall
<Ok> putDatabase
(PutDatabaseOptions putDatabaseOptions) Create a database.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> putDesignDocument
(PutDesignDocumentOptions putDesignDocumentOptions) Create or modify a design document.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> putDocument
(PutDocumentOptions putDocumentOptions) Create or modify a document.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> putLocalDocument
(PutLocalDocumentOptions putLocalDocumentOptions) Create or modify a local document.com.ibm.cloud.sdk.core.http.ServiceCall
<DocumentResult> putReplicationDocument
(PutReplicationDocumentOptions putReplicationDocumentOptions) Create or modify a replication using a replication document.com.ibm.cloud.sdk.core.http.ServiceCall
<Ok> putSecurity
(PutSecurityOptions putSecurityOptions) Modify database permissions.Methods inherited from class com.ibm.cloud.cloudant.internal.CloudantBaseService
configureClient, setDefaultHeaders, setServiceUrl
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setEndPoint, toString
-
Field Details
-
DEFAULT_SERVICE_NAME
Default service name used when configuring the `Cloudant` client.- See Also:
-
DEFAULT_SERVICE_URL
Default service endpoint URL.- See Also:
-
-
Constructor Details
-
Cloudant
Constructs an instance of the `Cloudant` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
serviceName
- the service name to be used when configuring the client instanceauthenticator
- theAuthenticator
instance to be configured for this client
-
-
Method Details
-
newInstance
Class method which constructs an instance of the `Cloudant` client. The default service name is used to configure the client instance.- Returns:
- an instance of the `Cloudant` client using external configuration
-
newInstance
Class method which constructs an instance of the `Cloudant` client. The specified service name is used to configure the client instance.- Parameters:
serviceName
- the service name to be used when configuring the client instance- Returns:
- an instance of the `Cloudant` client using external configuration
-
getServerInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<ServerInformation> getServerInformation(GetServerInformationOptions getServerInformationOptions) Retrieve server instance information. When you access the root of an instance, IBM Cloudant returns meta-information about the instance. The response includes a JSON structure that contains information about the server, including a welcome message and the server's version. **Tip:** The authentication for this endpoint is only enforced when using IAM.- Parameters:
getServerInformationOptions
- theGetServerInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeServerInformation
-
getServerInformation
Retrieve server instance information. When you access the root of an instance, IBM Cloudant returns meta-information about the instance. The response includes a JSON structure that contains information about the server, including a welcome message and the server's version. **Tip:** The authentication for this endpoint is only enforced when using IAM.- Returns:
- a
ServiceCall
with a result of typeServerInformation
-
getMembershipInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<MembershipInformation> getMembershipInformation(GetMembershipInformationOptions getMembershipInformationOptions) Retrieve cluster membership information. Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a cluster.- Parameters:
getMembershipInformationOptions
- theGetMembershipInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeMembershipInformation
-
getMembershipInformation
Retrieve cluster membership information. Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a cluster.- Returns:
- a
ServiceCall
with a result of typeMembershipInformation
-
getUuids
public com.ibm.cloud.sdk.core.http.ServiceCall<UuidsResult> getUuids(GetUuidsOptions getUuidsOptions) Retrieve one or more UUIDs. Requests one or more Universally Unique Identifiers (UUIDs) from the instance. The response is a JSON object that provides a list of UUIDs. **Tip:** The authentication for this endpoint is only enforced when using IAM.- Parameters:
getUuidsOptions
- theGetUuidsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeUuidsResult
-
getUuids
Retrieve one or more UUIDs. Requests one or more Universally Unique Identifiers (UUIDs) from the instance. The response is a JSON object that provides a list of UUIDs. **Tip:** The authentication for this endpoint is only enforced when using IAM.- Returns:
- a
ServiceCall
with a result of typeUuidsResult
-
getCapacityThroughputInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<CapacityThroughputInformation> getCapacityThroughputInformation(GetCapacityThroughputInformationOptions getCapacityThroughputInformationOptions) Retrieve provisioned throughput capacity information. View the amount of provisioned throughput capacity that is allocated to an IBM Cloudant instance and what is the target provisioned throughput capacity.- Parameters:
getCapacityThroughputInformationOptions
- theGetCapacityThroughputInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeCapacityThroughputInformation
-
getCapacityThroughputInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<CapacityThroughputInformation> getCapacityThroughputInformation()Retrieve provisioned throughput capacity information. View the amount of provisioned throughput capacity that is allocated to an IBM Cloudant instance and what is the target provisioned throughput capacity.- Returns:
- a
ServiceCall
with a result of typeCapacityThroughputInformation
-
putCapacityThroughputConfiguration
public com.ibm.cloud.sdk.core.http.ServiceCall<CapacityThroughputInformation> putCapacityThroughputConfiguration(PutCapacityThroughputConfigurationOptions putCapacityThroughputConfigurationOptions) Update the target provisioned throughput capacity. Sets the target provisioned throughput capacity for an IBM Cloudant instance. When target capacity is changed, the current capacity asynchronously changes to meet the target capacity.- Parameters:
putCapacityThroughputConfigurationOptions
- thePutCapacityThroughputConfigurationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeCapacityThroughputInformation
-
getDbUpdates
@Deprecated public com.ibm.cloud.sdk.core.http.ServiceCall<DbUpdates> getDbUpdates(GetDbUpdatesOptions getDbUpdatesOptions) Deprecated.this method is deprecated and may be removed in a future releaseRetrieve change events for all databases. **This endpoint is not available in IBM Cloudant.** Lists changes to databases, like a global changes feed. Types of changes include updating the database and creating or deleting a database. Like the changes feed, the feed is not guaranteed to return changes in the correct order and might repeat changes. Polling modes for this method work like polling modes for the changes feed.- Parameters:
getDbUpdatesOptions
- theGetDbUpdatesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDbUpdates
-
getDbUpdates
Deprecated.this method is deprecated and may be removed in a future releaseRetrieve change events for all databases. **This endpoint is not available in IBM Cloudant.** Lists changes to databases, like a global changes feed. Types of changes include updating the database and creating or deleting a database. Like the changes feed, the feed is not guaranteed to return changes in the correct order and might repeat changes. Polling modes for this method work like polling modes for the changes feed.- Returns:
- a
ServiceCall
with a result of typeDbUpdates
-
postChanges
public com.ibm.cloud.sdk.core.http.ServiceCall<ChangesResult> postChanges(PostChangesOptions postChangesOptions) Query the database document changes feed. Requests the database changes feed in the same way as `GET /{db}/_changes` does. It is widely used with the `filter` query parameter because it allows one to pass more information to the filter. ### Note Before using the changes feed read the [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-faq-using-changes-feed) to understand the limitations and appropriate use cases. If you need to pass parameters to dynamically change the filtered content use the `_selector` filter type for better performance and compatibility. The SDKs have full support for change requests using selector filters, but don't support passing parameters to design document filters.- Parameters:
postChangesOptions
- thePostChangesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeChangesResult
-
postChangesAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postChangesAsStream(PostChangesOptions postChangesOptions) Query the database document changes feed as stream. Requests the database changes feed in the same way as `GET /{db}/_changes` does. It is widely used with the `filter` query parameter because it allows one to pass more information to the filter. ### Note Before using the changes feed read the [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-faq-using-changes-feed) to understand the limitations and appropriate use cases. If you need to pass parameters to dynamically change the filtered content use the `_selector` filter type for better performance and compatibility. The SDKs have full support for change requests using selector filters, but don't support passing parameters to design document filters.- Parameters:
postChangesOptions
- thePostChangesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
headDatabase
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> headDatabase(HeadDatabaseOptions headDatabaseOptions) Retrieve the HTTP headers for a database. Returns the HTTP headers that contain a minimal amount of information about the specified database. Since the response body is empty, using the HEAD method is a lightweight way to check if the database exists or not.- Parameters:
headDatabaseOptions
- theHeadDatabaseOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
getAllDbs
public com.ibm.cloud.sdk.core.http.ServiceCall<List<String>> getAllDbs(GetAllDbsOptions getAllDbsOptions) Query a list of all database names in the instance. Query to retrieve a list of database names from the instance.- Parameters:
getAllDbsOptions
- theGetAllDbsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeList
-
getAllDbs
Query a list of all database names in the instance. Query to retrieve a list of database names from the instance.- Returns:
- a
ServiceCall
with a result of typeList
-
postDbsInfo
public com.ibm.cloud.sdk.core.http.ServiceCall<List<DbsInfoResult>> postDbsInfo(PostDbsInfoOptions postDbsInfoOptions) Query information about multiple databases. This operation enables you to request information about multiple databases in a single request, instead of issuing multiple `GET /{db}` requests. It returns a list that contains an information object for each database specified in the request.- Parameters:
postDbsInfoOptions
- thePostDbsInfoOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeList
-
deleteDatabase
public com.ibm.cloud.sdk.core.http.ServiceCall<Ok> deleteDatabase(DeleteDatabaseOptions deleteDatabaseOptions) Delete a database. Deletes the specified database and all documents and attachments contained within it. To avoid deleting a database, the server responds with a 400 HTTP status code when the request URL includes a `?rev=` parameter. This response suggests that a user wanted to delete a document but forgot to add the document ID to the URL.- Parameters:
deleteDatabaseOptions
- theDeleteDatabaseOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeOk
-
getDatabaseInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<DatabaseInformation> getDatabaseInformation(GetDatabaseInformationOptions getDatabaseInformationOptions) Retrieve information about a database. Retrieve detailed information about the database.- Parameters:
getDatabaseInformationOptions
- theGetDatabaseInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDatabaseInformation
-
putDatabase
public com.ibm.cloud.sdk.core.http.ServiceCall<Ok> putDatabase(PutDatabaseOptions putDatabaseOptions) Create a database. Create a new database with the requested properties.- Parameters:
putDatabaseOptions
- thePutDatabaseOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeOk
-
headDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> headDocument(HeadDocumentOptions headDocumentOptions) Retrieve the HTTP headers for the document. This method supports the same query arguments as the `GET /{db}/{docid}` method, but only the header information (including document size and the revision as an ETag) is returned. The ETag header shows the current revision for the requested document, and the Content-Length specifies the length of the data if the document was requested in full. Add any of the query arguments, then the resulting HTTP headers that correspond to it are returned.- Parameters:
headDocumentOptions
- theHeadDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
postDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> postDocument(PostDocumentOptions postDocumentOptions) Create or modify a document in a database. Creates or modifies a document in the specified database by using the supplied JSON document. For creation, you may specify the document ID but you should not specify the revision. If you don't specify the document ID, then the server generates an ID for your document. For modification, you must specify the document ID and a revision identifier in the JSON document. If your document ID includes the `_local/` or `_design/` prefix, then this operation creates or modifies a local or a design document respectively.- Parameters:
postDocumentOptions
- thePostDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
postAllDocs
public com.ibm.cloud.sdk.core.http.ServiceCall<AllDocsResult> postAllDocs(PostAllDocsOptions postAllDocsOptions) Query a list of all documents in a database. Queries the primary index (all document IDs). The results that match the request body parameters are returned in a JSON object, including a list of matching documents with basic contents, such as the ID and revision. When no request body parameters are specified, results for all documents in the database are returned. Optionally, document content or additional metadata can be included in the response.- Parameters:
postAllDocsOptions
- thePostAllDocsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeAllDocsResult
-
postAllDocsAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postAllDocsAsStream(PostAllDocsOptions postAllDocsOptions) Query a list of all documents in a database as stream. Queries the primary index (all document IDs). The results that match the request body parameters are returned in a JSON object, including a list of matching documents with basic contents, such as the ID and revision. When no request body parameters are specified, results for all documents in the database are returned. Optionally, document content or additional metadata can be included in the response.- Parameters:
postAllDocsOptions
- thePostAllDocsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
postAllDocsQueries
public com.ibm.cloud.sdk.core.http.ServiceCall<AllDocsQueriesResult> postAllDocsQueries(PostAllDocsQueriesOptions postAllDocsQueriesOptions) Multi-query the list of all documents in a database. Runs multiple queries using the primary index (all document IDs). Returns a JSON object that contains a list of result objects, one for each query, with a structure equivalent to that of a single `_all_docs` request. This enables you to request multiple queries in a single request, in place of multiple `POST /{db}/_all_docs` requests.- Parameters:
postAllDocsQueriesOptions
- thePostAllDocsQueriesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeAllDocsQueriesResult
-
postAllDocsQueriesAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postAllDocsQueriesAsStream(PostAllDocsQueriesOptions postAllDocsQueriesOptions) Multi-query the list of all documents in a database as stream. Runs multiple queries using the primary index (all document IDs). Returns a JSON object that contains a list of result objects, one for each query, with a structure equivalent to that of a single `_all_docs` request. This enables you to request multiple queries in a single request, in place of multiple `POST /{db}/_all_docs` requests.- Parameters:
postAllDocsQueriesOptions
- thePostAllDocsQueriesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
postBulkDocs
public com.ibm.cloud.sdk.core.http.ServiceCall<List<DocumentResult>> postBulkDocs(PostBulkDocsOptions postBulkDocsOptions) Bulk modify multiple documents in a database. The bulk document API allows you to create, update, and delete multiple documents at the same time within a single request. The basic operation is similar to creating, updating, or deleting a single document, except that you batch the document structure and information.- Parameters:
postBulkDocsOptions
- thePostBulkDocsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeList
-
postBulkGet
public com.ibm.cloud.sdk.core.http.ServiceCall<BulkGetResult> postBulkGet(PostBulkGetOptions postBulkGetOptions) Bulk query revision information for multiple documents. Fetch specific revisions or revision histories for multiple documents in bulk as replicators do.- Parameters:
postBulkGetOptions
- thePostBulkGetOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeBulkGetResult
-
postBulkGetAsMixed
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postBulkGetAsMixed(PostBulkGetOptions postBulkGetOptions) Bulk query revision information for multiple documents as mixed. Fetch specific revisions or revision histories for multiple documents in bulk as replicators do.- Parameters:
postBulkGetOptions
- thePostBulkGetOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
postBulkGetAsRelated
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postBulkGetAsRelated(PostBulkGetOptions postBulkGetOptions) Bulk query revision information for multiple documents as related. Fetch specific revisions or revision histories for multiple documents in bulk as replicators do.- Parameters:
postBulkGetOptions
- thePostBulkGetOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
postBulkGetAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postBulkGetAsStream(PostBulkGetOptions postBulkGetOptions) Bulk query revision information for multiple documents as stream. Fetch specific revisions or revision histories for multiple documents in bulk as replicators do.- Parameters:
postBulkGetOptions
- thePostBulkGetOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
deleteDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> deleteDocument(DeleteDocumentOptions deleteDocumentOptions) Delete a document. Marks the specified document as deleted by adding a `_deleted` field with the value `true`. Documents with this field are not returned within requests anymore but stay in the database. You must supply the current (latest) revision, either by using the `rev` parameter or by using the `If-Match` header to specify the revision.- Parameters:
deleteDocumentOptions
- theDeleteDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
getDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<Document> getDocument(GetDocumentOptions getDocumentOptions) Retrieve a document. Returns document with the specified `doc_id` from the specified database. Unless you request a specific revision, the latest revision of the document is always returned.- Parameters:
getDocumentOptions
- theGetDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocument
-
getDocumentAsMixed
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> getDocumentAsMixed(GetDocumentOptions getDocumentOptions) Retrieve a document as mixed. Returns document with the specified `doc_id` from the specified database. Unless you request a specific revision, the latest revision of the document is always returned.- Parameters:
getDocumentOptions
- theGetDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getDocumentAsRelated
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> getDocumentAsRelated(GetDocumentOptions getDocumentOptions) Retrieve a document as related. Returns document with the specified `doc_id` from the specified database. Unless you request a specific revision, the latest revision of the document is always returned.- Parameters:
getDocumentOptions
- theGetDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getDocumentAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> getDocumentAsStream(GetDocumentOptions getDocumentOptions) Retrieve a document as stream. Returns document with the specified `doc_id` from the specified database. Unless you request a specific revision, the latest revision of the document is always returned.- Parameters:
getDocumentOptions
- theGetDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
putDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> putDocument(PutDocumentOptions putDocumentOptions) Create or modify a document. Creates or modifies a document in the specified database. For creation, you must specify the document ID but you should not specify the revision. For modification, you must specify the document ID and a revision identifier.- Parameters:
putDocumentOptions
- thePutDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
headDesignDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> headDesignDocument(HeadDesignDocumentOptions headDesignDocumentOptions) Retrieve the HTTP headers for a design document. This method supports the same query arguments as the `GET /{db}/_design/{ddoc}` method, but the results include only the header information (including design document size, and the revision as an ETag). The ETag header shows the current revision for the requested design document, and if you requested the design document in full, the Content-Length specifies the length of the data. If you add any of the query arguments, then the resulting HTTP headers correspond to what is returned for the equivalent GET request.- Parameters:
headDesignDocumentOptions
- theHeadDesignDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
deleteDesignDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> deleteDesignDocument(DeleteDesignDocumentOptions deleteDesignDocumentOptions) Delete a design document. Marks the specified design document as deleted by adding a `_deleted` field with the value `true`. Documents with this field are not returned with requests but stay in the database. You must supply the current (latest) revision, either by using the `rev` parameter or by using the `If-Match` header to specify the revision.- Parameters:
deleteDesignDocumentOptions
- theDeleteDesignDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
getDesignDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DesignDocument> getDesignDocument(GetDesignDocumentOptions getDesignDocumentOptions) Retrieve a design document. Returns design document with the specified `doc_id` from the specified database. Unless you request a specific revision, the current revision of the design document is always returned.- Parameters:
getDesignDocumentOptions
- theGetDesignDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDesignDocument
-
putDesignDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> putDesignDocument(PutDesignDocumentOptions putDesignDocumentOptions) Create or modify a design document. The PUT method creates a new named design document, or creates a new revision of the existing design document.- Parameters:
putDesignDocumentOptions
- thePutDesignDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
getDesignDocumentInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<DesignDocumentInformation> getDesignDocumentInformation(GetDesignDocumentInformationOptions getDesignDocumentInformationOptions) Retrieve information about a design document. Retrieves information about the specified design document, including the index, index size, and current status of the design document and associated index information.- Parameters:
getDesignDocumentInformationOptions
- theGetDesignDocumentInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDesignDocumentInformation
-
postDesignDocs
public com.ibm.cloud.sdk.core.http.ServiceCall<AllDocsResult> postDesignDocs(PostDesignDocsOptions postDesignDocsOptions) Query a list of all design documents in a database. Queries the index of all design document IDs. The results matching the request body parameters are returned in a JSON object, including a list of matching design documents with basic contents, such as the ID and revision. When no request body parameters are specified, results for all design documents in the database are returned. Optionally, the design document content or additional metadata can be included in the response.- Parameters:
postDesignDocsOptions
- thePostDesignDocsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeAllDocsResult
-
postDesignDocsQueries
public com.ibm.cloud.sdk.core.http.ServiceCall<AllDocsQueriesResult> postDesignDocsQueries(PostDesignDocsQueriesOptions postDesignDocsQueriesOptions) Multi-query the list of all design documents. This operation runs multiple view queries of all design documents in the database. This operation enables you to request numerous queries in a single request, in place of multiple POST `/{db}/_design_docs` requests.- Parameters:
postDesignDocsQueriesOptions
- thePostDesignDocsQueriesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeAllDocsQueriesResult
-
postView
public com.ibm.cloud.sdk.core.http.ServiceCall<ViewResult> postView(PostViewOptions postViewOptions) Query a MapReduce view. This operation queries the specified MapReduce view of the specified design document. By default, the map and reduce functions of the view are run to update the view before returning the response. The advantage of using the HTTP `POST` method is that the query is submitted as a JSON object in the request body. This avoids the limitations of passing query options as URL query parameters of a `GET` request.- Parameters:
postViewOptions
- thePostViewOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeViewResult
-
postViewAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postViewAsStream(PostViewOptions postViewOptions) Query a MapReduce view as stream. This operation queries the specified MapReduce view of the specified design document. By default, the map and reduce functions of the view are run to update the view before returning the response. The advantage of using the HTTP `POST` method is that the query is submitted as a JSON object in the request body. This avoids the limitations of passing query options as URL query parameters of a `GET` request.- Parameters:
postViewOptions
- thePostViewOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
postViewQueries
public com.ibm.cloud.sdk.core.http.ServiceCall<ViewQueriesResult> postViewQueries(PostViewQueriesOptions postViewQueriesOptions) Multi-query a MapReduce view. This operation runs multiple specified view queries against the view function from the specified design document.- Parameters:
postViewQueriesOptions
- thePostViewQueriesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeViewQueriesResult
-
postViewQueriesAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postViewQueriesAsStream(PostViewQueriesOptions postViewQueriesOptions) Multi-query a MapReduce view as stream. This operation runs multiple specified view queries against the view function from the specified design document.- Parameters:
postViewQueriesOptions
- thePostViewQueriesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getPartitionInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<PartitionInformation> getPartitionInformation(GetPartitionInformationOptions getPartitionInformationOptions) Retrieve information about a database partition. Given a partition key, return the database name, sizes, partition, doc count, and doc delete count.- Parameters:
getPartitionInformationOptions
- theGetPartitionInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typePartitionInformation
-
postPartitionAllDocs
public com.ibm.cloud.sdk.core.http.ServiceCall<AllDocsResult> postPartitionAllDocs(PostPartitionAllDocsOptions postPartitionAllDocsOptions) Query a list of all documents in a database partition. Queries the primary index (all document IDs). The results that match the query parameters are returned in a JSON object, including a list of matching documents with basic contents, such as the ID and revision. When no query parameters are specified, results for all documents in the database partition are returned. Optionally, document content or additional metadata can be included in the response.- Parameters:
postPartitionAllDocsOptions
- thePostPartitionAllDocsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeAllDocsResult
-
postPartitionAllDocsAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postPartitionAllDocsAsStream(PostPartitionAllDocsOptions postPartitionAllDocsOptions) Query a list of all documents in a database partition as stream. Queries the primary index (all document IDs). The results that match the query parameters are returned in a JSON object, including a list of matching documents with basic contents, such as the ID and revision. When no query parameters are specified, results for all documents in the database partition are returned. Optionally, document content or additional metadata can be included in the response.- Parameters:
postPartitionAllDocsOptions
- thePostPartitionAllDocsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
postPartitionSearch
public com.ibm.cloud.sdk.core.http.ServiceCall<SearchResult> postPartitionSearch(PostPartitionSearchOptions postPartitionSearchOptions) Query a database partition search index. Partitioned Search indexes, which are defined in design documents, allow partition databases to be queried by using Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce views. The index function decides what data to index and store in the index.- Parameters:
postPartitionSearchOptions
- thePostPartitionSearchOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSearchResult
-
postPartitionSearchAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postPartitionSearchAsStream(PostPartitionSearchOptions postPartitionSearchOptions) Query a database partition search index as stream. Partitioned Search indexes, which are defined in design documents, allow partition databases to be queried by using Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce views. The index function decides what data to index and store in the index.- Parameters:
postPartitionSearchOptions
- thePostPartitionSearchOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
postPartitionView
public com.ibm.cloud.sdk.core.http.ServiceCall<ViewResult> postPartitionView(PostPartitionViewOptions postPartitionViewOptions) Query a database partition MapReduce view function. Runs the specified view function from the specified design document. Unlike `GET /{db}/_design/{ddoc}/_view/{view}` for accessing views, the POST method supports the specification of explicit keys to be retrieved from the view results. The remainder of the POST view functionality is identical to the `GET /{db}/_design/{ddoc}/_view/{view}` API.- Parameters:
postPartitionViewOptions
- thePostPartitionViewOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeViewResult
-
postPartitionViewAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postPartitionViewAsStream(PostPartitionViewOptions postPartitionViewOptions) Query a database partition MapReduce view function as stream. Runs the specified view function from the specified design document. Unlike `GET /{db}/_design/{ddoc}/_view/{view}` for accessing views, the POST method supports the specification of explicit keys to be retrieved from the view results. The remainder of the POST view functionality is identical to the `GET /{db}/_design/{ddoc}/_view/{view}` API.- Parameters:
postPartitionViewOptions
- thePostPartitionViewOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
postPartitionExplain
public com.ibm.cloud.sdk.core.http.ServiceCall<ExplainResult> postPartitionExplain(PostPartitionExplainOptions postPartitionExplainOptions) Retrieve information about which partition index is used for a query. Shows which index is being used by the query. Parameters are the same as the [`/{db}/_partition/{partition_key}/_find` endpoint](#postpartitionfind-queries).- Parameters:
postPartitionExplainOptions
- thePostPartitionExplainOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeExplainResult
-
postPartitionFind
public com.ibm.cloud.sdk.core.http.ServiceCall<FindResult> postPartitionFind(PostPartitionFindOptions postPartitionFindOptions) Query a database partition index by using selector syntax. Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for all fields in selector by using the `_index` endpoint. Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not recommended because it has a noticeable performance impact causing a full scan of the partition with each request. In this case the response body will include a warning field recommending that an index is created.- Parameters:
postPartitionFindOptions
- thePostPartitionFindOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeFindResult
-
postPartitionFindAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postPartitionFindAsStream(PostPartitionFindOptions postPartitionFindOptions) Query a database partition index by using selector syntax as stream. Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for all fields in selector by using the `_index` endpoint. Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not recommended because it has a noticeable performance impact causing a full scan of the partition with each request. In this case the response body will include a warning field recommending that an index is created.- Parameters:
postPartitionFindOptions
- thePostPartitionFindOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
postExplain
public com.ibm.cloud.sdk.core.http.ServiceCall<ExplainResult> postExplain(PostExplainOptions postExplainOptions) Retrieve information about which index is used for a query. Shows which index is being used by the query. Parameters are the same as the [`_find` endpoint](#postfind).- Parameters:
postExplainOptions
- thePostExplainOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeExplainResult
-
postFind
public com.ibm.cloud.sdk.core.http.ServiceCall<FindResult> postFind(PostFindOptions postFindOptions) Query an index by using selector syntax. Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for all fields in selector by using the `_index` endpoint. Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not recommended because it has a significant performance impact causing a full scan of the database with each request. In this case the response body will include a warning field recommending that an index is created.- Parameters:
postFindOptions
- thePostFindOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeFindResult
-
postFindAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postFindAsStream(PostFindOptions postFindOptions) Query an index by using selector syntax as stream. Query documents by using a declarative JSON querying syntax. It's best practice to create an appropriate index for all fields in selector by using the `_index` endpoint. Queries without an appropriate backing index will fallback to using the built-in `_all_docs` index. This is not recommended because it has a significant performance impact causing a full scan of the database with each request. In this case the response body will include a warning field recommending that an index is created.- Parameters:
postFindOptions
- thePostFindOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getIndexesInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<IndexesInformation> getIndexesInformation(GetIndexesInformationOptions getIndexesInformationOptions) Retrieve information about all indexes. When you make a GET request to `/db/_index`, you get a list of all indexes used by Cloudant Query in the database, including the primary index. In addition to the information available through this API, indexes are also stored in the `indexes` property of design documents.- Parameters:
getIndexesInformationOptions
- theGetIndexesInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeIndexesInformation
-
postIndex
public com.ibm.cloud.sdk.core.http.ServiceCall<IndexResult> postIndex(PostIndexOptions postIndexOptions) Create a new index on a database. Create a new index on a database.- Parameters:
postIndexOptions
- thePostIndexOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeIndexResult
-
deleteIndex
public com.ibm.cloud.sdk.core.http.ServiceCall<Ok> deleteIndex(DeleteIndexOptions deleteIndexOptions) Delete an index. Delete the index functions from the design document and index files on the server.- Parameters:
deleteIndexOptions
- theDeleteIndexOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeOk
-
postSearchAnalyze
public com.ibm.cloud.sdk.core.http.ServiceCall<SearchAnalyzeResult> postSearchAnalyze(PostSearchAnalyzeOptions postSearchAnalyzeOptions) Query tokenization of sample text. Returns the results of analyzer tokenization of the provided sample text. This endpoint can be used for testing analyzer tokenization.- Parameters:
postSearchAnalyzeOptions
- thePostSearchAnalyzeOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSearchAnalyzeResult
-
postSearch
public com.ibm.cloud.sdk.core.http.ServiceCall<SearchResult> postSearch(PostSearchOptions postSearchOptions) Query a search index. Search indexes, which are defined in design documents, allow databases to be queried by using Lucene Query Parser Syntax. An index function defines a search index, similar to a map function in MapReduce views. The index function decides what data to index and what data to store in the index. The advantage of using the HTTP `POST` method is that the query is submitted as a JSON object in the request body. This avoids the limitations of passing query options as URL query parameters of a `GET` request.- Parameters:
postSearchOptions
- thePostSearchOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSearchResult
-
postSearchAsStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> postSearchAsStream(PostSearchOptions postSearchOptions) Query a search index as stream. Search indexes, which are defined in design documents, allow databases to be queried by using Lucene Query Parser Syntax. An index function defines a search index, similar to a map function in MapReduce views. The index function decides what data to index and what data to store in the index. The advantage of using the HTTP `POST` method is that the query is submitted as a JSON object in the request body. This avoids the limitations of passing query options as URL query parameters of a `GET` request.- Parameters:
postSearchOptions
- thePostSearchOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getSearchInfo
public com.ibm.cloud.sdk.core.http.ServiceCall<SearchInfoResult> getSearchInfo(GetSearchInfoOptions getSearchInfoOptions) Retrieve information about a search index. Retrieve search index metadata information, such as the size of the index on disk.- Parameters:
getSearchInfoOptions
- theGetSearchInfoOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSearchInfoResult
-
headReplicationDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> headReplicationDocument(HeadReplicationDocumentOptions headReplicationDocumentOptions) Retrieve the HTTP headers for a replication document. Retrieves the HTTP headers containing minimal amount of information about the specified replication document from the `_replicator` database. The method supports the same query arguments as the `GET /_replicator/{doc_id}` method, but only headers like content length and the revision (ETag header) are returned.- Parameters:
headReplicationDocumentOptions
- theHeadReplicationDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
headSchedulerDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> headSchedulerDocument(HeadSchedulerDocumentOptions headSchedulerDocumentOptions) Retrieve HTTP headers for a replication scheduler document. Retrieves the HTTP headers containing minimal amount of information about the specified replication scheduler document. Since the response body is empty, using the HEAD method is a lightweight way to check if the replication scheduler document exists or not.- Parameters:
headSchedulerDocumentOptions
- theHeadSchedulerDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
headSchedulerJob
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> headSchedulerJob(HeadSchedulerJobOptions headSchedulerJobOptions) Retrieve the HTTP headers for a replication scheduler job. Returns the HTTP headers that contain a minimal amount of information about the specified replication task. Only the header information is returned.- Parameters:
headSchedulerJobOptions
- theHeadSchedulerJobOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
deleteReplicationDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> deleteReplicationDocument(DeleteReplicationDocumentOptions deleteReplicationDocumentOptions) Cancel a replication. Cancels a replication by deleting the document that describes it from the `_replicator` database.- Parameters:
deleteReplicationDocumentOptions
- theDeleteReplicationDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
getReplicationDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<ReplicationDocument> getReplicationDocument(GetReplicationDocumentOptions getReplicationDocumentOptions) Retrieve a replication document. Retrieves a replication document from the `_replicator` database to view the configuration of the replication. The status of the replication is no longer recorded in the document but can be checked via the replication scheduler.- Parameters:
getReplicationDocumentOptions
- theGetReplicationDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeReplicationDocument
-
putReplicationDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> putReplicationDocument(PutReplicationDocumentOptions putReplicationDocumentOptions) Create or modify a replication using a replication document. Creates or modifies a document in the `_replicator` database to start a new replication or to edit an existing replication.- Parameters:
putReplicationDocumentOptions
- thePutReplicationDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
getSchedulerDocs
public com.ibm.cloud.sdk.core.http.ServiceCall<SchedulerDocsResult> getSchedulerDocs(GetSchedulerDocsOptions getSchedulerDocsOptions) Retrieve replication scheduler documents. Lists replication documents, including information about all documents, even the ones in a completed or failed state. For each document, the endpoint returns the document ID, database, replication ID, source and target, and other information.- Parameters:
getSchedulerDocsOptions
- theGetSchedulerDocsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSchedulerDocsResult
-
getSchedulerDocs
Retrieve replication scheduler documents. Lists replication documents, including information about all documents, even the ones in a completed or failed state. For each document, the endpoint returns the document ID, database, replication ID, source and target, and other information.- Returns:
- a
ServiceCall
with a result of typeSchedulerDocsResult
-
getSchedulerDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<SchedulerDocument> getSchedulerDocument(GetSchedulerDocumentOptions getSchedulerDocumentOptions) Retrieve a replication scheduler document. Retrieves information about a replication document from the replicator database. The endpoint returns the document ID, database, replication ID, source and target, and other information.- Parameters:
getSchedulerDocumentOptions
- theGetSchedulerDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSchedulerDocument
-
getSchedulerJobs
public com.ibm.cloud.sdk.core.http.ServiceCall<SchedulerJobsResult> getSchedulerJobs(GetSchedulerJobsOptions getSchedulerJobsOptions) Retrieve replication scheduler jobs. Retrieves information about replications that were created via `/_replicate` endpoint, as well as those created from replication documents. It doesn't include replications that completed or failed to start because replication documents were malformed. Each job description includes source and target information, replication ID, history of recent events, and other information.- Parameters:
getSchedulerJobsOptions
- theGetSchedulerJobsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSchedulerJobsResult
-
getSchedulerJobs
Retrieve replication scheduler jobs. Retrieves information about replications that were created via `/_replicate` endpoint, as well as those created from replication documents. It doesn't include replications that completed or failed to start because replication documents were malformed. Each job description includes source and target information, replication ID, history of recent events, and other information.- Returns:
- a
ServiceCall
with a result of typeSchedulerJobsResult
-
getSchedulerJob
public com.ibm.cloud.sdk.core.http.ServiceCall<SchedulerJob> getSchedulerJob(GetSchedulerJobOptions getSchedulerJobOptions) Retrieve a replication scheduler job. Retrieves the state of a single replication task based on its replication ID.- Parameters:
getSchedulerJobOptions
- theGetSchedulerJobOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSchedulerJob
-
getSessionInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<SessionInformation> getSessionInformation(GetSessionInformationOptions getSessionInformationOptions) Retrieve current session cookie information. Retrieves information about the authenticated user's session.- Parameters:
getSessionInformationOptions
- theGetSessionInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSessionInformation
-
getSessionInformation
Retrieve current session cookie information. Retrieves information about the authenticated user's session.- Returns:
- a
ServiceCall
with a result of typeSessionInformation
-
getSecurity
public com.ibm.cloud.sdk.core.http.ServiceCall<Security> getSecurity(GetSecurityOptions getSecurityOptions) Retrieve database permissions information. See who has permission to read, write, and manage the database. The credentials you use to log in to the dashboard automatically include `_admin` permissions to all databases you create. Everyone and everything else, including users you share databases with and API keys you create, must be given a permission level explicitly.- Parameters:
getSecurityOptions
- theGetSecurityOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSecurity
-
putSecurity
public com.ibm.cloud.sdk.core.http.ServiceCall<Ok> putSecurity(PutSecurityOptions putSecurityOptions) Modify database permissions. Modify who has permission to read, write, or manage a database. This endpoint can be used to modify both Cloudant and CouchDB related permissions. Be careful: by removing a Cloudant API key, a member or an admin from the list of users that have access permissions, you remove it from the list of users that have access to the database. ### Note about nobody role The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but did not identify itself, the task can continue only if the `nobody` user has the role `_reader`.- Parameters:
putSecurityOptions
- thePutSecurityOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeOk
-
postApiKeys
public com.ibm.cloud.sdk.core.http.ServiceCall<ApiKeysResult> postApiKeys(PostApiKeysOptions postApiKeysOptions) Generates API keys for apps or persons to enable database access. Generates API keys to enable database access for a person or application, but without creating a new IBM Cloudant account for that person or application. An API key is a randomly generated username and password. The key is given the wanted access permissions for a database.- Parameters:
postApiKeysOptions
- thePostApiKeysOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeApiKeysResult
-
postApiKeys
Generates API keys for apps or persons to enable database access. Generates API keys to enable database access for a person or application, but without creating a new IBM Cloudant account for that person or application. An API key is a randomly generated username and password. The key is given the wanted access permissions for a database.- Returns:
- a
ServiceCall
with a result of typeApiKeysResult
-
putCloudantSecurityConfiguration
public com.ibm.cloud.sdk.core.http.ServiceCall<Ok> putCloudantSecurityConfiguration(PutCloudantSecurityConfigurationOptions putCloudantSecurityConfigurationOptions) Modify only Cloudant related database permissions. Modify only Cloudant related permissions to database. Be careful: by removing an API key from the list, you remove the API key from the list of users that have access to the database. ### Note about nobody role The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but did not identify itself, the task can continue only if the `nobody` user has the role `_reader`.- Parameters:
putCloudantSecurityConfigurationOptions
- thePutCloudantSecurityConfigurationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeOk
-
getCorsInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<CorsInformation> getCorsInformation(GetCorsInformationOptions getCorsInformationOptions) Retrieve CORS configuration information. Lists all Cross-origin resource sharing (CORS) configuration. CORS defines a way in which the browser and the server interact to determine whether or not to allow the request.- Parameters:
getCorsInformationOptions
- theGetCorsInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeCorsInformation
-
getCorsInformation
Retrieve CORS configuration information. Lists all Cross-origin resource sharing (CORS) configuration. CORS defines a way in which the browser and the server interact to determine whether or not to allow the request.- Returns:
- a
ServiceCall
with a result of typeCorsInformation
-
putCorsConfiguration
public com.ibm.cloud.sdk.core.http.ServiceCall<Ok> putCorsConfiguration(PutCorsConfigurationOptions putCorsConfigurationOptions) Modify CORS configuration. Sets the CORS configuration. The configuration applies to all databases and all account level endpoints in your account.- Parameters:
putCorsConfigurationOptions
- thePutCorsConfigurationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeOk
-
headAttachment
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> headAttachment(HeadAttachmentOptions headAttachmentOptions) Retrieve the HTTP headers for an attachment. Returns the HTTP headers that contain a minimal amount of information about the specified attachment. This method supports the same query arguments as the `GET /{db}/{doc_id}/{attachment_name}` method, but only the header information (including attachment size, encoding, and the MD5 hash as an ETag), is returned.- Parameters:
headAttachmentOptions
- theHeadAttachmentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
deleteAttachment
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> deleteAttachment(DeleteAttachmentOptions deleteAttachmentOptions) Delete an attachment. Deletes the attachment with the filename, `{attachment_name}`, from the specified doc. You must supply the `rev` query parameter or `If-Match` header with the current revision to delete the attachment.- Parameters:
deleteAttachmentOptions
- theDeleteAttachmentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
getAttachment
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> getAttachment(GetAttachmentOptions getAttachmentOptions) Retrieve an attachment. Returns the file attachment that is associated with the document. The raw data of the associated attachment is returned, just as if you were accessing a static file. The returned Content-Type header is the same as the content type set when the document attachment was submitted to the database.- Parameters:
getAttachmentOptions
- theGetAttachmentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
putAttachment
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> putAttachment(PutAttachmentOptions putAttachmentOptions) Create or modify an attachment. Uploads the supplied content as an attachment to the specified document. The attachment name that you provide must be a URL encoded string. You must supply the Content-Type header, and for an existing document, you must also supply either the `rev` query argument or the `If-Match` HTTP header. If you omit the revision, a new, otherwise empty, document is created with the provided attachment, or a conflict occurs. If the uploaded attachment uses an existing attachment name in the remote database, it updates the corresponding stored content of the database. Since you must supply the revision information to add an attachment to the document, this serves as validation to update the existing attachment.- Parameters:
putAttachmentOptions
- thePutAttachmentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
headLocalDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> headLocalDocument(HeadLocalDocumentOptions headLocalDocumentOptions) Retrieve HTTP headers for a local document. Retrieves the HTTP headers containing minimal amount of information about the specified local document. Since the response body is empty, using the HEAD method is a lightweight way to check if the local document exists or not.- Parameters:
headLocalDocumentOptions
- theHeadLocalDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
deleteLocalDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> deleteLocalDocument(DeleteLocalDocumentOptions deleteLocalDocumentOptions) Delete a local document. Deletes the specified local document. The semantics are identical to deleting a standard document in the specified database, except that the document is not replicated.- Parameters:
deleteLocalDocumentOptions
- theDeleteLocalDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
getLocalDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<Document> getLocalDocument(GetLocalDocumentOptions getLocalDocumentOptions) Retrieve a local document. Retrieves the specified local document. The semantics are identical to accessing a standard document in the specified database, except that the document is not replicated.- Parameters:
getLocalDocumentOptions
- theGetLocalDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocument
-
putLocalDocument
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentResult> putLocalDocument(PutLocalDocumentOptions putLocalDocumentOptions) Create or modify a local document. Stores the specified local document. The semantics are identical to storing a standard document in the specified database, except that the document is not replicated.- Parameters:
putLocalDocumentOptions
- thePutLocalDocumentOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentResult
-
postRevsDiff
public com.ibm.cloud.sdk.core.http.ServiceCall<Map<String,RevsDiff>> postRevsDiff(PostRevsDiffOptions postRevsDiffOptions) Query the document revisions and possible ancestors missing from the database. The replicator is the primary user of this operation. After receiving a set of new revision IDs from the source database, the replicator sends this set to the destination database's `_revs_diff` to find out which of them already exists there. It can then avoid fetching and sending already-known document bodies.- Parameters:
postRevsDiffOptions
- thePostRevsDiffOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeMap
-
getShardsInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<ShardsInformation> getShardsInformation(GetShardsInformationOptions getShardsInformationOptions) Retrieve shard information. List each shard range and the corresponding replicas for a specified database.- Parameters:
getShardsInformationOptions
- theGetShardsInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeShardsInformation
-
getDocumentShardsInfo
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentShardInfo> getDocumentShardsInfo(GetDocumentShardsInfoOptions getDocumentShardsInfoOptions) Retrieve shard information for a specific document. Retrieves information about a specific shard where a particular document is stored, along with information about the nodes where that shard has a replica.- Parameters:
getDocumentShardsInfoOptions
- theGetDocumentShardsInfoOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDocumentShardInfo
-
headUpInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> headUpInformation(HeadUpInformationOptions headUpInformationOptions) Retrieve HTTP headers about whether the server is up. Retrieves the HTTP headers about whether the server is up.- Parameters:
headUpInformationOptions
- theHeadUpInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
headUpInformation
Retrieve HTTP headers about whether the server is up. Retrieves the HTTP headers about whether the server is up.- Returns:
- a
ServiceCall
with a void result
-
getActiveTasks
public com.ibm.cloud.sdk.core.http.ServiceCall<List<ActiveTask>> getActiveTasks(GetActiveTasksOptions getActiveTasksOptions) Retrieve list of running tasks. Lists running tasks, including the task type, name, status, and process ID. The result includes a JSON array of the currently running tasks, with each task described as a single object. Depending on the operation type, the set of response object fields might be different.- Parameters:
getActiveTasksOptions
- theGetActiveTasksOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeList
-
getActiveTasks
Retrieve list of running tasks. Lists running tasks, including the task type, name, status, and process ID. The result includes a JSON array of the currently running tasks, with each task described as a single object. Depending on the operation type, the set of response object fields might be different.- Returns:
- a
ServiceCall
with a result of typeList
-
getUpInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<UpInformation> getUpInformation(GetUpInformationOptions getUpInformationOptions) Retrieve information about whether the server is up. Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or `nolb`, the endpoint returns a 404 response. **Tip:** The authentication for this endpoint is only enforced when using IAM.- Parameters:
getUpInformationOptions
- theGetUpInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeUpInformation
-
getUpInformation
Retrieve information about whether the server is up. Confirms that the server is up, running, and ready to respond to requests. If `maintenance_mode` is `true` or `nolb`, the endpoint returns a 404 response. **Tip:** The authentication for this endpoint is only enforced when using IAM.- Returns:
- a
ServiceCall
with a result of typeUpInformation
-
getActivityTrackerEvents
public com.ibm.cloud.sdk.core.http.ServiceCall<ActivityTrackerEvents> getActivityTrackerEvents(GetActivityTrackerEventsOptions getActivityTrackerEventsOptions) Retrieve Activity Tracker events information. Check event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.- Parameters:
getActivityTrackerEventsOptions
- theGetActivityTrackerEventsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeActivityTrackerEvents
-
getActivityTrackerEvents
Retrieve Activity Tracker events information. Check event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.- Returns:
- a
ServiceCall
with a result of typeActivityTrackerEvents
-
postActivityTrackerEvents
public com.ibm.cloud.sdk.core.http.ServiceCall<Ok> postActivityTrackerEvents(PostActivityTrackerEventsOptions postActivityTrackerEventsOptions) Modify Activity Tracker events configuration. Configure event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.- Parameters:
postActivityTrackerEventsOptions
- thePostActivityTrackerEventsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeOk
-
getCurrentThroughputInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<CurrentThroughputInformation> getCurrentThroughputInformation(GetCurrentThroughputInformationOptions getCurrentThroughputInformationOptions) Retrieve the current provisioned throughput capacity consumption. View the current consumption of provisioned throughput capacity for an IBM Cloudant instance. The current consumption shows the quantities of reads, writes, and global queries conducted against the instance for a given second.- Parameters:
getCurrentThroughputInformationOptions
- theGetCurrentThroughputInformationOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeCurrentThroughputInformation
-
getCurrentThroughputInformation
public com.ibm.cloud.sdk.core.http.ServiceCall<CurrentThroughputInformation> getCurrentThroughputInformation()Retrieve the current provisioned throughput capacity consumption. View the current consumption of provisioned throughput capacity for an IBM Cloudant instance. The current consumption shows the quantities of reads, writes, and global queries conducted against the instance for a given second.- Returns:
- a
ServiceCall
with a result of typeCurrentThroughputInformation
-