enable_iscsi
Enables the software iSCSI adapter on an ESXi host, the required prerequisite before adding iSCSI targets. Preview the blast radius first, then apply with confirmation.
Instructions
[WRITE] Enable the software iSCSI adapter (vmhba) on an ESXi host.
Required prerequisite before add_iscsi_target. Without confirm=True this only previews: it returns blast_radius (the host, its current adapters, whether the software adapter already exists) and changes nothing. Show it to the user. Do not set confirm=True on your own because the user asked earlier — they have not seen the preview yet. Already enabled returns action "noop" with the HBA device and IQN. Non-disruptive (no reboot, no impact on existing datastores). Refused when the host's storage view cannot be read. Returns a dict; check state first with get_iscsi_status.
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": {
"host_name": "<host_name>"
},
"name": "enable_iscsi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional vCenter/ESXi target name from config. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| host_name | Yes | ESXi host name exactly as shown in vCenter inventory (FQDN or IP). Errors if not found. |