A flexible tube base made of metal and a resin coating layer covering the outer periphery thereof, and a primer layer containing a compound of the following formula (1) between the flexible tube base and the resin coating layer; A flexible tube for an endoscope containing a polyurethane elastomer on the side where the resin coating layer is in contact with the primer layer, an endoscope-type medical device provided with the flexible tube for an endoscope, the flexible tube for an endoscope, A method for manufacturing an endoscope-type medical device. X1 and X2 are a hydrogen atom, an alkyl group, a cycloalkyl group, an alkenyl group, an aryl group, an acyl group, an alkoxycarbonyl group or a carbamoyl group, Y1 is a hydroxy group or an alkoxy group, Y2 and Y3 are a hydroxy group, an alkoxy group or Shows an alkyl group. L represents a single bond or a specific divalent group.金属製の可撓管基材とその外周を覆う樹脂被覆層とを有し、可撓管基材と樹脂被覆層との間には下記式(1)の化合物を含むプライマー層を有し、樹脂被覆層がプライマー層と接する側にポリウレタンエラストマーを含む内視鏡用可撓管、この内視鏡用可撓管を備えた内視鏡型医療機器、これら内視鏡用可撓管及び内視鏡型医療機器の製造方法。 X1及びX2は水素原子、アルキル基、シクロアルキル基、アルケニル基、アリール基、アシル基、アルコキシカルボニル基又はカルバモイル基を、Y1はヒドロキシ基又はアルコキシ基を、Y2及びY3はヒドロキシ基、アルコキシ基又はアルキル基を示す。 Lは単結合又は特定の2価の基を示す。