# iscsi.auth.create

Create an iSCSI Authorized Access.

tag should be unique among all configured iSCSI Authorized Accesses.

secret and peersecret should have length between 12-16 letters inclusive.

peeruser and peersecret are provided only when configuring mutual CHAP. peersecret should not be similar to secret.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: data

#### data

Type: object

iSCSI authentication credential configuration data for creation.

No Additional Properties

##

#### Tag

Type: integer

Numeric tag used to associate this credential with iSCSI targets.

##

#### User

Type: string

Username for iSCSI CHAP authentication.

##

#### Secret

Type: string

Password/secret for iSCSI CHAP authentication.

##

#### Peeruser

Type: string Default: ""

Username for mutual CHAP authentication or empty string if not configured.

##

#### Peersecret

Type: string Default: ""

Password/secret for mutual CHAP authentication or empty string if not configured.

##

#### Discovery Auth

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

Authentication method for target discovery. If "CHAP_MUTUAL" is selected for target discovery, it is only permitted for a single entry systemwide.

##### Must be one of:

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

##

#### iSCSITargetAuthCredentialEntry

Type: object

The created iSCSI authentication credential.

No Additional Properties

##

#### Id

Type: integer

Unique identifier for the iSCSI authentication credential.

##

#### Tag

Type: integer

Numeric tag used to associate this credential with iSCSI targets.

##

#### User

Type: string

Username for iSCSI CHAP authentication.

##

#### Secret

Type: string

Password/secret for iSCSI CHAP authentication.

##

#### Peeruser

Type: string Default: ""

Username for mutual CHAP authentication or empty string if not configured.

##

#### Peersecret

Type: string Default: ""

Password/secret for mutual CHAP authentication or empty string if not configured.

##

#### Discovery Auth

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

Authentication method for target discovery. If "CHAP_MUTUAL" is selected for target discovery, it is only permitted for a single entry systemwide.

##### Must be one of:

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

Required roles: SHARING_ISCSI_AUTH_WRITE