vinfra node iscsi target delete

Delete an iSCSI target from a node:

usage: vinfra node iscsi target delete --node <node> <target-name>
--node <node>
Node ID or hostname
<target-name>
Target name

Example:

# vinfra node iscsi target delete iqn.2014-06.com.vstorage:target1 \
--node f1931be7-0a01-4977-bfef-51a392adcd94
+---------+--------------------------------------+
| Field   | Value                                |
+---------+--------------------------------------+
| task_id | c8dc74ee-86d6-4b89-8b6f-153ff1e78cb7 |
+---------+--------------------------------------+

This command creates a task to disconnect a remote iSCSI target iqn.2014-06.com.vstorage:target1 from the node with the ID f1931be7-0a01-4977-bfef-51a392adcd94.

Task outcome:

# vinfra task show c8dc74ee-86d6-4b89-8b6f-153ff1e78cb7
+---------+------------------------------------------------------------------+
| Field   | Value                                                            |
+---------+------------------------------------------------------------------+
| args    | - f1931be7-0a01-4977-bfef-51a392adcd94                           |
| kwargs  | target_name: iqn.2014-06.com.vstorage:target1                    |
| name    | backend.presentation.nodes.iscsi_initiators.tasks.DisconnectTask |
| state   | success                                                          |
| task_id | c8dc74ee-86d6-4b89-8b6f-153ff1e78cb7                             |
+---------+------------------------------------------------------------------+