Rest APIs : REST API : Observer REST : Extracting GigaStor data : How to extract data to a file in a specific location
How to extract data to a file in a specific location
You may save your trace file to a specific, known location on the local system or a network drive by setting saveTo to specifiedPath along with defining the path. Unlike a temporary file, it is not automatically deleted after 24 hours.
Prerequisite(s):  
Knowledge of your base URI
 
1. Send a POST command to /obs/api/v1/gs/traces using the following request body object.
Any backslash (\) characters in the path must be properly escaped in the JSON. For example, "path": "G:\\UsersChoice\\Of\\Directory" or "path": "\\\\server\\share\\traces".
 
Figure 8: Select All
{
"instanceName": "Instance 1",
"traceFormat": "pcap",
"traceFileName": "MyFileName",
"saveTo": "specifiedPath",
"path": "G:\\UsersChoice\\Of\\Directory",
"extractionTimeRange": {
"timeStart": "2016-01-27T00:00:00.000Z",
"timeEnd": "2016-01-28T00:00:00.000Z"
},
"filter": "ip 10.1.20.50[tcp/80]"
}
 
 
On success, a 202 Accepted response is returned along with a jobs object in the response body. Inside of the job, the location field indicates where the final location of the trace file is.