Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
Batch.writeJSONSolution()
writeJSONSolution ( filename )
This method returns the stored solution of a completed batch request from a Cluster Manager. The solution is returned in a gzip-compressed JSON file. The file name you provide must end with a .json.gz extension. The JSON format is described in the JSON solution format section. Note that for this call to succeed, the status of the batch request must be COMPLETED. Please refer to the Batch Status Codes section for further details.
Arguments:
filename: Name of file where the solution should be stored (in JSON format).
Example usage:
# Write the full JSON solution string to a file batch.writeJSONSolution('batch-sol.json.gz')