zfs.resource.attachments

Retrieve the shares, tasks and services that depend on the ZFS resource named by path.

A filesystem reports the consumers of it and its descendants; one whose mountpoint is legacy reports nothing. A validation error is raised when the resource does not exist or is a protected internal resource (ENOENT).

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "zfs.resource.attachments",
    "params": ["tank/work"]
}
Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: path

path

Type: string

Path of the zfs resource (filesystem or volume) whose dependents to list.

Result

Type: array of object

Array of the shares, tasks and services using the resource, grouped by kind.

No Additional Items
Each item of this array must be:

PoolAttachment

Type: object
No Additional Properties

Type

Type: string

Type of attachment.

Service


Name of the service using this pool. null if not a service attachment.

Type: string
Type: null

Attachments

Type: array of string

Array of specific attachment identifiers or paths.

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


Required roles: ZFS_RESOURCE_READ