public interface RestoreService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<byte[]> |
postRestoreBucketID(String bucketID,
byte[] body,
String zapTraceSpan,
String contentType)
Deprecated.
|
retrofit2.Call<RestoredBucketMappings> |
postRestoreBucketMetadata(BucketMetadataManifest bucketMetadataManifest,
String zapTraceSpan)
Create a new bucket pre-seeded with shard info from a backup.
|
retrofit2.Call<PostRestoreKVResponse> |
postRestoreKV(File body,
String zapTraceSpan,
String contentEncoding,
String contentType)
Overwrite the embedded KV store on the server with a backed-up snapshot.
|
retrofit2.Call<Void> |
postRestoreShardId(String shardID,
File body,
String zapTraceSpan,
String contentEncoding,
String contentType)
Restore a TSM snapshot into a shard.
|
retrofit2.Call<Void> |
postRestoreSQL(File body,
String zapTraceSpan,
String contentEncoding,
String contentType)
Overwrite the embedded SQL store on the server with a backed-up snapshot.
|
@Deprecated @Headers(value="Content-Type:text/plain") @POST(value="api/v2/restore/bucket/{bucketID}") retrofit2.Call<byte[]> postRestoreBucketID(@Path(value="bucketID") String bucketID, @Body byte[] body, @Header(value="Zap-Trace-Span") String zapTraceSpan, @Header(value="Content-Type") String contentType)
bucketID
- The bucket ID. (required)body
- Database info serialized as protobuf. (required)zapTraceSpan
- OpenTracing span context (optional)contentType
- (optional, default to application/octet-stream)@Headers(value="Content-Type:application/json") @POST(value="api/v2/restore/bucketMetadata") retrofit2.Call<RestoredBucketMappings> postRestoreBucketMetadata(@Body BucketMetadataManifest bucketMetadataManifest, @Header(value="Zap-Trace-Span") String zapTraceSpan)
bucketMetadataManifest
- Metadata manifest for a bucket. (required)zapTraceSpan
- OpenTracing span context (optional)@Headers(value="Content-Type:text/plain") @POST(value="api/v2/restore/kv") retrofit2.Call<PostRestoreKVResponse> postRestoreKV(@Body File body, @Header(value="Zap-Trace-Span") String zapTraceSpan, @Header(value="Content-Encoding") String contentEncoding, @Header(value="Content-Type") String contentType)
body
- Full KV snapshot. (required)zapTraceSpan
- OpenTracing span context (optional)contentEncoding
- The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. (optional, default to identity)contentType
- (optional, default to application/octet-stream)@Headers(value="Content-Type:text/plain") @POST(value="api/v2/restore/sql") retrofit2.Call<Void> postRestoreSQL(@Body File body, @Header(value="Zap-Trace-Span") String zapTraceSpan, @Header(value="Content-Encoding") String contentEncoding, @Header(value="Content-Type") String contentType)
body
- Full SQL snapshot. (required)zapTraceSpan
- OpenTracing span context (optional)contentEncoding
- The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. (optional, default to identity)contentType
- (optional, default to application/octet-stream)@Headers(value="Content-Type:text/plain") @POST(value="api/v2/restore/shards/{shardID}") retrofit2.Call<Void> postRestoreShardId(@Path(value="shardID") String shardID, @Body File body, @Header(value="Zap-Trace-Span") String zapTraceSpan, @Header(value="Content-Encoding") String contentEncoding, @Header(value="Content-Type") String contentType)
shardID
- The shard ID. (required)body
- TSM snapshot. (required)zapTraceSpan
- OpenTracing span context (optional)contentEncoding
- The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. (optional, default to identity)contentType
- (optional, default to application/octet-stream)Copyright © 2018–2022 InfluxData, Inc.. All rights reserved.