code: def export_pipeline(url, pipeline_id, auth, verify_ssl):
      
      export_result = requests.get(url + '/' + pipeline_id + '/export', headers=X_REQ_BY, auth=auth, verify=verify_ssl)
      if export_result.status_code == 404:
          logging.error('Pipeline not found: ' + pipeline_id)
      export_result.raise_for_status()
      return export_result.json()
docs: Export the config and rules for a pipeline.
  
      Args:
          url        (str): the host url in the form 'http://host:port/'.
          pipeline_id (str): the ID of of the exported pipeline.
          auth     (tuple): a tuple of username, and password.
          verify_ssl   (bool): whether to verify ssl certificates
  
      Returns:
          dict: the response json