The following table lists the REST samples added as part of the Data Mover REST package. If an input file is required, the name is provided.
Data Mover Command | REST Sample Script File | Input File Used by Script |
---|---|---|
cleanup | cleanup.py | |
create | createjob_td2td.py | createjob_td2td.json |
create | createjob_td2aster.py | createjob_td2aster.json |
create | createjob_td2hadoop.py | createjob_td2hadoop.json |
create | createjob_aster2td.py | createjob_aster2td.json |
create | createjob_hadoop2td.py | createjob_hadoop2td.json |
delete_job | delete_job.py | |
edit | edit_job.py | createjob.json |
list_agents | list_agents.py | |
list_job_definition | listjobdefinition.py | |
list_jobs | listjobs.py | |
list_job_steps | list_job_steps.py | |
list_tasks | list_tasks.py | |
restart | restart_job.py | |
save_configuration | saveconfiguration.py | saveconfiguration.json |
start | startjob_td2td.py | startjob_td2td.json |
start | startjob_td2aster.py | startjob_td2aster.json |
start | startjob_td2hadoop.py | startjob_td2hadoop.json |
start | startjob_aster2td.py | startjob_aster2td.json |
start | startjob_hadoop2td.py | startjob_hadoop2td.json |
status | jobstatus.py | |
stop | stop_job.py | |
update_job_steps | update_job_steps.py |
- On the Data Mover server, locate the /opt/teradata/datamover/rest/tdmrest/samples directory.
- Run the command: ./runsamples.py script
- When prompted, enter the name of the desired script, for example: createjob_td2td.py