Package com.influxdb.client.service
Interface ReplicationsService
public interface ReplicationsService
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call
<Void> deleteReplicationByID
(String replicationID, String zapTraceSpan) Delete a replicationretrofit2.Call
<Replication> getReplicationByID
(String replicationID, String zapTraceSpan) Retrieve a replicationretrofit2.Call
<Replications> getReplications
(String orgID, String zapTraceSpan, String name, String remoteID, String localBucketID) List all replicationsretrofit2.Call
<Replication> patchReplicationByID
(String replicationID, ReplicationUpdateRequest replicationUpdateRequest, String zapTraceSpan, Boolean validate) Update a replicationretrofit2.Call
<Replication> postReplication
(ReplicationCreationRequest replicationCreationRequest, String zapTraceSpan, Boolean validate) Register a new replicationretrofit2.Call
<Void> postValidateReplicationByID
(String replicationID, String zapTraceSpan) Validate a replication
-
Method Details
-
deleteReplicationByID
@DELETE("api/v2/replications/{replicationID}") retrofit2.Call<Void> deleteReplicationByID(@Path("replicationID") String replicationID, @Header("Zap-Trace-Span") String zapTraceSpan) Delete a replication- Parameters:
replicationID
- (required)zapTraceSpan
- OpenTracing span context (optional)- Returns:
- Call<Void>
-
getReplicationByID
@GET("api/v2/replications/{replicationID}") retrofit2.Call<Replication> getReplicationByID(@Path("replicationID") String replicationID, @Header("Zap-Trace-Span") String zapTraceSpan) Retrieve a replication- Parameters:
replicationID
- (required)zapTraceSpan
- OpenTracing span context (optional)- Returns:
- Call<Replication>
-
getReplications
@GET("api/v2/replications") retrofit2.Call<Replications> getReplications(@Query("orgID") String orgID, @Header("Zap-Trace-Span") String zapTraceSpan, @Query("name") String name, @Query("remoteID") String remoteID, @Query("localBucketID") String localBucketID) List all replications- Parameters:
orgID
- The organization ID. (required)zapTraceSpan
- OpenTracing span context (optional)name
- (optional)remoteID
- (optional)localBucketID
- (optional)- Returns:
- Call<Replications>
-
patchReplicationByID
@Headers("Content-Type:application/json") @PATCH("api/v2/replications/{replicationID}") retrofit2.Call<Replication> patchReplicationByID(@Path("replicationID") String replicationID, @Body ReplicationUpdateRequest replicationUpdateRequest, @Header("Zap-Trace-Span") String zapTraceSpan, @Query("validate") Boolean validate) Update a replication- Parameters:
replicationID
- (required)replicationUpdateRequest
- (required)zapTraceSpan
- OpenTracing span context (optional)validate
- If true, validate the updated information, but don't save it. (optional, default to false)- Returns:
- Call<Replication>
-
postReplication
@Headers("Content-Type:application/json") @POST("api/v2/replications") retrofit2.Call<Replication> postReplication(@Body ReplicationCreationRequest replicationCreationRequest, @Header("Zap-Trace-Span") String zapTraceSpan, @Query("validate") Boolean validate) Register a new replication- Parameters:
replicationCreationRequest
- (required)zapTraceSpan
- OpenTracing span context (optional)validate
- If true, validate the replication, but don't save it. (optional, default to false)- Returns:
- Call<Replication>
-
postValidateReplicationByID
@POST("api/v2/replications/{replicationID}/validate") retrofit2.Call<Void> postValidateReplicationByID(@Path("replicationID") String replicationID, @Header("Zap-Trace-Span") String zapTraceSpan) Validate a replication- Parameters:
replicationID
- (required)zapTraceSpan
- OpenTracing span context (optional)- Returns:
- Call<Void>
-