iscsi.target.validate_name

Returns validation error for iSCSI target name :param name: name to be validated :param existing_id: id of an existing iSCSI target that will receive this name (or None if a new target is being created) :return: error message (or None if there is no error)

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.

Type: integer
Type: null

Result


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

Type: string
Type: null


Required roles: SHARING_ISCSI_TARGET_WRITE