async def METHOD_NAME(
    name: str,
    request: Optional[ScanDatasetRecordsRequest] = None,
    limit: int = Query(
        default=100,
        gte=0,
        le=1000,
        description="Number of records to retrieve",
    ),
    request_deps: CommonTaskHandlerDependencies = Depends(),
    service: DatasetsService = Depends(DatasetsService.get_instance),
    engine: GenericElasticEngineBackend = Depends(GenericElasticEngineBackend.get_instance),
    current_user: User = Security(auth.get_current_user),