def export_pipeline(conf, args):
<EOL>src = conf.config['<STR_LIT>'][args.src_instance]<EOL>src_url = api.build_pipeline_url(build_instance_url(src))<EOL>src_auth = tuple([conf.creds['<STR_LIT>'][args.src_instance]['<STR_LIT:user>'],<EOL>conf.creds['<STR_LIT>'][args.src_instance]['<STR_LIT>']])<EOL>verify_ssl = src.get('<STR_LIT>', True)<EOL>export_json = api.export_pipeline(src_url, args.src_pipeline_id, src_auth, verify_ssl)<EOL>with open(args.out, '<STR_LIT:w>') as outFile:<EOL><INDENT>outFile.write(json.dumps(export_json, indent=<NUM_LIT:4>, sort_keys=False))<EOL>return (<NUM_LIT:0>, '<STR_LIT>')<EOL><DEDENT>
Export a pipeline to json.