API: create snapshot, run replication

Hi *,

not sure, if this is the right place for API questions, but:
I’d like to create snapshots and start replication tasks using the API.
From the docs I got the impression, that I can run either existing snapshot/replication tasks or create new ones using the API, but not just call an API command to run a job on the fly. Is that correct?

TIA.

By.
Michael.

There is a one off replication command. You’d need to take a snapshot first.

Thx for the answer.
The command to take a snapshot is zfs.snapshot.create? I didn’t find it at first, because it’s name starts with zfs.
And the other one is replication.run_onetime, I guess? But that one seems to start an existing task, so I’d have to create one first?

Got it:
Run replication task without creating it.

And as I saw, in 25.04 the calls are named pool.snapshot.* instead of zfs.snapshot.*, but we don’t have pool.snapshot.create any more, only pool.snapshottask.create.

Any idea, if there will be a pool.snapshot.create call in 25.10?