Get a daily extract file
get
/rest/ofscCore/v1/folders/dailyExtract/folders/{dailyExtractDate}/files/{dailyExtractFilename}
This operation retrieves a daily extract file for the specified date.
The daily extract file is a binary file with archived table content.
Note:The daily extract files are deleted after 90 days.
Request
Path Parameters
-
dailyExtractDate(required): string
The date for which the daily extract file is downloaded. Specify the date in YYYY-MM-DD format.
-
dailyExtractFilename(required): string
The name of the daily extract file.
Response
Supported Media Types
- application/octet-stream
200 Response
This section describes the 200 status response for this operation.
Root Schema : File
Type:
string(binary)
Title:
File
The contents of the file. This is usually binary data.
Default Response
This section describes the default error response for this operation.
Root Schema : Error
Type:
Show Source
object
-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.
Examples
The following example shows how to download daily extract file by submitting a GET request on the REST resource using cURL. To download binary data, the client must specify the value of the "Accept" header as "application/octet-stream".
curl -u '<CLIENT-ID>@<INSTANCE-NAME>:<CLIENT-SECRET>' \ -H 'Accept: application/octet-stream' \ 'https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02/files/activity-data.tar.gz'
Example of Request Header
The following shows an example of the resquest header.
GET /rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02/files/activity-data.tar.gz HTTP/1.1 Accept: application/octet-stream Accept-Encoding: gzip,deflate Authorization: Basic c29hcEB0ZXN0YXBpY29yZS5pbjQwMDox Host: <instance_name>.fs.ocs.oraclecloud.com Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Server: nginx/1.6.2 Date: Wed, 15 Jul 2015 12:31:55 GMT Content-Type: application/octet-stream Content-Length: 3943529 Connection: keep-alive content-description: File Transfer content-disposition: attachment; filename="activity-data.tar.gz"
Example of Response Body
The following example shows the contents of the response body in JSON format.
<File content in binary format>