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?
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?
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.