def stop_pipeline(url, pipeline_id, auth, verify_ssl):
stop_result = requests.post(url + '<STR_LIT:/>' + pipeline_id + '<STR_LIT>', headers=X_REQ_BY, auth=auth, verify=verify_ssl)<EOL>stop_result.raise_for_status()<EOL>logging.info("<STR_LIT>")<EOL>poll_pipeline_status(STATUS_STOPPED, url, pipeline_id, auth, verify_ssl)<EOL>logging.info('<STR_LIT>')<EOL>return stop_result.json()<EOL>
Stop a running pipeline. The API waits for the pipeline to be 'STOPPED' before returning.

    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