# iscsi.target.query

Sent on iscsi.target changes.

Type: object

##

#### iSCSITargetAddedEvent

Type: object
No Additional Properties

##

#### Id

Type: integer

##

#### iSCSITargetEntry

Type: object
No Additional Properties

##

#### Id

Type: integer

Unique identifier for the iSCSI target.

##

#### Name

Type: string

Name of the iSCSI target (maximum 120 characters).

Must be at least `1` characters long

Must be at most `120` characters long

##

#### Alias

Default: null

Optional alias name for the iSCSI target.

## Any of

Type: string
Type: null

##

#### Mode

Type: enum (of string) Default: "ISCSI"

Protocol mode for the target.

- `ISCSI`: iSCSI protocol only
- `FC`: Fibre Channel protocol only
- `BOTH`: 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 Items

##### Each item of this array must be:

#### IscsiGroup

Type: object
No Additional Properties

##

#### Portal

Type: integer

ID of the iSCSI portal to use for this target group.

##

#### Initiator

Default: null

ID of the authorized initiator group or `null` to allow any initiator.

## Any of

Type: integer
Type: null

##

#### Authmethod

Type: enum (of string) Default: "NONE"

Authentication method for this target group.

##### Must be one of:

- "NONE"
- "CHAP"
- "CHAP_MUTUAL"

##

#### Auth

Default: null

ID of the authentication credential or `null` if no authentication.

## Any of

Type: integer
Type: null

##

#### Auth Networks

Type: array of string Default: []

Array of network addresses allowed to access this target.

No Additional Items

##### Each item of this array must be:

Type: string

##

#### Rel Tgt Id

Type: integer

Relative target ID number assigned by the system.

##

Default: null

Optional iSCSI-specific parameters for this target.

## Any of

#### IscsiTargetParameters

Type: object
No Additional Properties

##

#### Queuedcommands

Default: null

Maximum number of queued commands per iSCSI session.

- `32`: Standard queue depth for most use cases
- `128`: Higher queue depth for performance-critical applications

## Any of

Type: enum (of integer)

##### Must be one of:

- 32
- 128

Type: null
Type: null

##

#### iSCSITargetChangedEvent

Type: object
No Additional Properties

##

#### Id

Type: integer

##

#### iSCSITargetEntry

Type: object
No Additional Properties

##

#### Id

Type: integer

Unique identifier for the iSCSI target.

##

#### Name

Type: string

Name of the iSCSI target (maximum 120 characters).

Must be at least `1` characters long

Must be at most `120` characters long

##

#### Alias

Default: null

Optional alias name for the iSCSI target.

## Any of

Type: string
Type: null

##

#### Mode

Type: enum (of string) Default: "ISCSI"

Protocol mode for the target.

- `ISCSI`: iSCSI protocol only
- `FC`: Fibre Channel protocol only
- `BOTH`: 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 Items

##### Each item of this array must be:

#### IscsiGroup

Type: object
No Additional Properties

##

#### Portal

Type: integer

ID of the iSCSI portal to use for this target group.

##

#### Initiator

Default: null

ID of the authorized initiator group or `null` to allow any initiator.

## Any of

Type: integer
Type: null

##

#### Authmethod

Type: enum (of string) Default: "NONE"

Authentication method for this target group.

##### Must be one of:

- "NONE"
- "CHAP"
- "CHAP_MUTUAL"

##

#### Auth

Default: null

ID of the authentication credential or `null` if no authentication.

## Any of

Type: integer
Type: null

##

#### Auth Networks

Type: array of string Default: []

Array of network addresses allowed to access this target.

No Additional Items

##### Each item of this array must be:

Type: string

##

#### Rel Tgt Id

Type: integer

Relative target ID number assigned by the system.

##

Default: null

Optional iSCSI-specific parameters for this target.

## Any of

#### IscsiTargetParameters

Type: object
No Additional Properties

##

#### Queuedcommands

Default: null

Maximum number of queued commands per iSCSI session.

- `32`: Standard queue depth for most use cases
- `128`: Higher queue depth for performance-critical applications

## Any of

Type: enum (of integer)

##### Must be one of:

- 32
- 128

Type: null
Type: null

##

#### iSCSITargetRemovedEvent

Type: object
No Additional Properties

##

#### Id

Type: integer

Required roles: SHARING_ISCSI_TARGET_READ