iscsi.target.update¶
Update iSCSI Target of id.
No Additional Items
Tuple Validation
Parameter 1: id
id
Type: integerID of the iSCSI target to update.
Parameter 2: iscsi_target_update
iscsi_target_update
Type: objectUpdated iSCSI target configuration data.
No Additional PropertiesName
Type: stringName of the iSCSI target (maximum 120 characters).
Must be at least 1
characters long
Must be at most 120
characters long
Alias
Optional alias name for the iSCSI target.
Mode
Type: enum (of string)Protocol mode for the target.
ISCSI
: iSCSI protocol onlyFC
: Fibre Channel protocol onlyBOTH
: Both iSCSI and Fibre Channel protocols
Fibre Channel may only be selected on TrueNAS Enterprise-licensed systems with a suitable Fibre Channel HBA.
Must be one of:
- "ISCSI"
- "FC"
- "BOTH"
Groups
Type: array of objectArray of portal-initiator group associations for this target.
No Additional ItemsEach item of this array must be:
IscsiGroup
Type: objectNo Additional Properties
Portal
Type: integerID of the iSCSI portal to use for this target group.
Initiator
Default: nullID of the authorized initiator group or null
to allow any initiator.
Authmethod
Type: enum (of string) Default: "NONE"Authentication method for this target group.
Must be one of:
- "NONE"
- "CHAP"
- "CHAP_MUTUAL"
Auth
Default: nullID of the authentication credential or null
if no authentication.
Auth Networks
Type: array of stringArray of network addresses allowed to access this target.
No Additional ItemsEach item of this array must be:
Optional iSCSI-specific parameters for this target.
IscsiTargetParameters
Type: objectNo Additional Properties
Queuedcommands
Default: nullMaximum number of queued commands per iSCSI session.
32
: Standard queue depth for most use cases128
: Higher queue depth for performance-critical applications
Must be one of:
- 32
- 128
IscsiTargetEntry
Type: objectThe updated iSCSI target configuration.
No Additional PropertiesId
Type: integerUnique identifier for the iSCSI target.
Name
Type: stringName of the iSCSI target (maximum 120 characters).
Must be at least 1
characters long
Must be at most 120
characters long
Alias
Default: nullOptional alias name for the iSCSI target.
Mode
Type: enum (of string) Default: "ISCSI"Protocol mode for the target.
ISCSI
: iSCSI protocol onlyFC
: Fibre Channel protocol onlyBOTH
: Both iSCSI and Fibre Channel protocols
Fibre Channel may only be selected on TrueNAS Enterprise-licensed systems with a suitable Fibre Channel HBA.
Must be one of:
- "ISCSI"
- "FC"
- "BOTH"
Groups
Type: array of object Default: []Array of portal-initiator group associations for this target.
No Additional ItemsEach item of this array must be:
IscsiGroup
Type: objectNo Additional Properties
Portal
Type: integerID of the iSCSI portal to use for this target group.
Initiator
Default: nullID of the authorized initiator group or null
to allow any initiator.
Authmethod
Type: enum (of string) Default: "NONE"Authentication method for this target group.
Must be one of:
- "NONE"
- "CHAP"
- "CHAP_MUTUAL"
Auth
Default: nullID of the authentication credential or null
if no authentication.
Auth Networks
Type: array of string Default: []Array of network addresses allowed to access this target.
No Additional ItemsEach item of this array must be:
Rel Tgt Id
Type: integerRelative target ID number assigned by the system.
Optional iSCSI-specific parameters for this target.
IscsiTargetParameters
Type: objectNo Additional Properties
Queuedcommands
Default: nullMaximum number of queued commands per iSCSI session.
32
: Standard queue depth for most use cases128
: Higher queue depth for performance-critical applications
Must be one of:
- 32
- 128
Required roles: SHARING_ISCSI_TARGET_WRITE