POST persistence/clusters/<clus_name>/stores/<stor_name>/durables

This web method sends a command to purge, rewind, or delete selected durables, or delete all durables from a specific store.

  • <clus_name> in the URI is the cluster name.
  • <stor_name> in the URI is the store name.

Commands

Command Description
{"cmd":"purge_durables","args"} Purge the durables supplied in args.
{"cmd":"delete_durables","args"} Delete the durables supplied in args.
{"cmd":"delete_all_durables"} Delete all durables from a store.

{"cmd":"rewind_durables", "args"}

Rewind the durables supplied in args.

Filtering

See Filters for Durables.

Example Requests

curl http://<host>:<port>/api/v1/persistence/clusters/<clus_name>/stores/<stor_name>/durables -X POST -d '{"cmd":"purge_durables", "args": [{"names": ["dur1","dur2"]}]}'
curl http://<host>:<port>/api/v1/persistence/clusters/<clus_name>/stores/<stor_name>/durables -X POST -d '{"cmd":"delete_durables", "args": [{"names": ["dur1", "dur2"]}]}'
curl http://<host>:<port>/api/v1/persistence/clusters/<clus_name>/stores/<stor_name>/durables -X POST -d '{"cmd":"delete_all_durables"}'
curl http://<host>:<port>/api/v1/persistence/clusters/<clus_name>/stores/<stor_name>/durables -X POST -d '{"cmd":"rewind_durables", "args": [{"names": ["dur1","dur2]}]}