Conscious sedation, which is not the same thing as general anesthesia, is often used for endoscopy:
https://www.northerncarealliance.nhs.uk/patient-information/...
https://www.northerncarealliance.nhs.uk/patient-information/...
Surgery uses propofol plus a gas anesthesia for "general anesthesia", but it is considered "general anesthesia" even if only propofol is used.