Snapshot Stream
Creates a snapshot of a stream.
Subject
$JS.API.STREAM.SNAPSHOT.{stream}
Where {stream} is the name of the stream.
Request
A request to the JetStream $JS.API.STREAM.SNAPSHOT API
deliver_subjectstringrequired
The NATS subject where the snapshot will be delivered
Min length:
1no_consumersboolean
When true consumer states and configurations will not be present in the snapshot
chunk_sizeinteger
The size of data chunks to send to deliver_subject
integer with a dynamic bit size depending on the platform the cluster runs on, can be up to 64bit
Minimum:
1024Maximum:
9223372036854776000window_sizeinteger
The size of the window to use for the snapshot
integer with a dynamic bit size depending on the platform the cluster runs on, can be up to 64bit
Minimum:
1024Maximum:
33554432jsckboolean
Check all message's checksums prior to snapshot
Default:
falseResponse
A response from the JetStream $JS.API.STREAM.SNAPSHOT API
One of the following:
Option 1 (object)
errorobjectrequired
Option 2 (object)
configobjectrequired
stateobjectrequired
typeconst: "io.nats.jetstream.api.v1.stream_snapshot_response"