# iscsi.target.validate_name

Return a validation error message for the given iSCSI target name or `null` if the name is valid.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: name

#### name

Type: string

Target name to validate.

##### Parameter 2: existing_id

#### existing_id

Default: null

ID of existing target to exclude from validation or `null` for new targets.

## Any of

Type: integer
Type: null

##

#### Result

Error message if name is invalid or `null` if name is valid.

## Any of

Type: string
Type: null

Required roles: SHARING_ISCSI_TARGET_WRITE