The present invention relates to a retaining device for retaining at least one external functional apparatus comprising at least two tube ports on a treatment apparatus, wherein the retaining device comprises at least two stops which restrict a rotational movement of the external functional apparatus inside the retaining device. It further relates to an external functional apparatus as well as a treatment apparatus.