create_iscsi_target
Create an iSCSI target for Kubernetes block storage by specifying the target name, dataset for storage, extent size, and portal ID in TrueNAS Core MCP Server.
Instructions
Create an iSCSI target for Kubernetes block storage
Args:
name: Target name (e.g., "k8s-block-01")
dataset: Dataset for storing the iSCSI extent
size: Size of the iSCSI extent (e.g., "100G")
portal_id: iSCSI portal ID to use
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"dataset": "<dataset>",
"size": "<size>"
},
"name": "create_iscsi_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | Yes | ||
| name | Yes | ||
| portal_id | No | ||
| size | Yes |