core.bulk

Will sequentially call method with arguments from the params list. For example, running

call(“core.bulk”, “zfs.snapshot.delete”, [[”tank@snap-1”, true], [”tank@snap-2”, false]])

will call

call(“zfs.snapshot.delete”, “tank@snap-1”, true) call(“zfs.snapshot.delete”, “tank@snap-2”, false)

If the first call fails and the seconds succeeds (returning true), the result of the overall call will be:

[ {“result”: null, “error”: “Error deleting snapshot”}, {“result”: true, “error”: null} ]

Important note: the execution status of core.bulk will always be a SUCCESS (unless an unlikely internal error occurs). Caller must check for individual call results to ensure the absence of any call errors.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: method

method

Type: string
Parameter 2: params

params

Type: array of array
No Additional Items
Each item of this array must be:
Type: array
No Additional Items
Each item of this array must be:
Type: object
Parameter 3: description

description

Default: null

Format string for job progress (e.g. "Deleting snapshot {0[dataset]}@{0[name]}")

Type: string
Type: null

Result

Type: array of object
No Additional Items
Each item of this array must be:

CoreBulkResultItem

Type: object
No Additional Properties

Job Id


Type: integer
Type: null

Error


Type: string
Type: null

Result

Type: object


Required roles: