The following example is a successful request is to add a sub folder with one job to an existing sub folder:
<?xml version="1.0" encoding="iso-8859-1"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<ctmem:request_def_add_folder xmlns:ctmem="http://www.bmc.com/ctmem/schema800">
<ctmem:user_token>D71B430E6A1B00071D4BE91A64E41AA4</ctmem:user_token>
<ctmem:parent_folder>
<ctmem:control_m>my700</ctmem:control_m>
<ctmem:folder_name>apiTestSMARTFolder/subFolder_1</ctmem:folder_name>
</ctmem:parent_folder>
<ctmem:sub_folder>
<ctmem:folder_name>subFolder_2</ctmem:folder_name>
<ctmem:folder_attributes>
<ctmem:application>apiWinApp</ctmem:application>
<ctmem:sub_application>apiGroup</ctmem:sub_application>
<ctmem:run_as>controlm</ctmem:run_as>
<ctmem:created_by>emuser</ctmem:created_by>
<ctmem:sub_folder_rule_based_cals>
<ctmem:sub_rule_based_cal>
<ctmem:rule_based_cal_name>rule_based_cal2</ctmem:rule_based_cal_name>
</ctmem:sub_rule_based_cal>
</ctmem:sub_folder_rule_based_cals>
</ctmem:folder_attributes>
<ctmem:jobs>
<ctmem:job>
<ctmem:job_name>In-SubFolder_2_job1</ctmem:job_name>
<ctmem:mem_name>In-SubFolder_2_job1</ctmem:mem_name>
<ctmem:task_type>command</ctmem:task_type>
<ctmem:application>apiWinApp</ctmem:application>
<ctmem:sub_application>apiGroup</ctmem:sub_application>
<ctmem:command>ls -l</ctmem:command>
<ctmem:run_as>controlm</ctmem:run_as>
<ctmem:created_by>emuser</ctmem:created_by>
<ctmem:job_rule_based_cals>
<ctmem:job_rule_based_cal>
<ctmem:rule_based_cal_name>rule_based_cal2</ctmem:rule_based_cal_name>
</ctmem:job_rule_based_cal>
</ctmem:job_rule_based_cals>
</ctmem:job>
</ctmem:jobs>
</ctmem:sub_folder>
</ctmem:request_def_add_folder>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Parent Topic |