Ejemplo n.º 1
0
 /// <summary>
 /// This endpoint generates and returns an atomic, point-in-time snapshot of the Consul server state. Snapshots are exposed as gzipped tar archives which internally contain the Raft metadata required to restore, as well as a binary serialized version of the Consul server state.The contents are covered internally by SHA-256 hashes.These hashes are verified during snapshot restore operations.The structure of the archive is internal to Consul and not intended to be used other than for restore operations.The archives are not designed to be modified before a restore.
 /// </summary>
 /// <param name="generateSnapshotParmeter"></param>
 /// <returns></returns>
 public async Task GenerateSnapshot(GenerateSnapshotParmeter generateSnapshotParmeter)
 {
     await Get <string, GenerateSnapshotParmeter>($"/kv", generateSnapshotParmeter);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This endpoint generates and returns an atomic, point-in-time snapshot of the Consul server state. Snapshots are exposed as gzipped tar archives which internally contain the Raft metadata required to restore, as well as a binary serialized version of the Consul server state.The contents are covered internally by SHA-256 hashes.These hashes are verified during snapshot restore operations.The structure of the archive is internal to Consul and not intended to be used other than for restore operations.The archives are not designed to be modified before a restore.
 /// </summary>
 /// <param name="generateSnapshotParmeter"></param>
 /// <returns></returns>
 public async Task <string> GenerateSnapshot(GenerateSnapshotParmeter generateSnapshotParmeter)
 {
     return(await Get <string, GenerateSnapshotParmeter>($"/snapshot", generateSnapshotParmeter));
 }