Changes between Version 1 and Version 2 of RemoteOutputFiles


Ignore:
Timestamp:
Feb 1, 2013, 6:19:25 PM (12 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RemoteOutputFiles

    v1 v2  
    11= Remote access to output files =
    22
     3== Web service interface ==
     4
     5Output files can be downloaded using web services of several forms:
     6{{{
     7PROJECT_URL/get_output.php?cmd=result_file&auth_str=AUTH&result_name=NAME&file_num=N
     8PROJECT_URL/get_output.php?cmd=batch_files&auth_str=AUTH&batch_id=N
     9PROJECT_URL/get_output.php?cmd=workunit_file&auth_str=AUTH&wu_name=NAME&file_num=N
     10PROJECT_URL/get_output.php?cmd=workunit_files&auth_str=AUTH&wu_id=N
     11}}}
     12
     13The variants are:
     14
     15 * '''result_file''': download the Nth output file of the given result.
     16 * '''batch_file''': download all the output files of the given batch, as a zip archive.
     17 * '''workunit_file''': download the Nth output file of the canonical instance of the given workunit.
     18 * '''workunit_files''': download all the output files of the canonical instance of the given workunit,
     19  as a zip archive.
     20
     21In each case, '''auth_str''' is the authenticator of the requesting user,
     22who must be the creator of the jobs involved.
     23
     24Notes:
     25
     26 * These operations work only for jobs that are part of a batch.
     27 * In case of error, the resulting file will have the work "error" in the first line.
     28
    329== C++ interface ==
     30
     31{{{
     32extern int get_output_file(
     33    const char* project_url,
     34    const char* authenticator,
     35    const char* job_name,
     36    int file_num,
     37    const char* dst_path
     38);
     39}}}
    440
    541== PHP interface ==