Get a list of daily extract files for a date

get

/rest/ofscCore/v1/folders/dailyExtract/folders/{dailyExtractDate}/files

This operation retrieves a list of daily extract files for the specified date.

Note: The daily extract files are deleted after 90 days.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

This section describes the 200 status response for this operation.
Body ()
Root Schema : Daily Extract Files
Type: object
Title: Daily Extract Files
The list of daily extract files available for the specified date.
Show Source
Nested Schema : Items
Type: array
Title: Items
The list of daily extract files.
Show Source
Nested Schema : File
Type: object
Title: File
The array of file objects.
Show Source

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

The following example shows how to get list of daily extract files for a date by submitting a GET request on the REST resource using cURL.

curl -u '<CLIENT-ID>@<INSTANCE-NAME>:<CLIENT-SECRET>' \
     -H 'Accept: application/json' \
     'https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02/files'

Example of Request Header

The following shows an example of the resquest header.

GET /rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02/files HTTP/1.1
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:30:56 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
   "name": "files",
   "files":
     {
       "items": 
         [
           {
              "name": "activity-data.tar.gz",
              "bytes": "3943529
              "mediaType": "application/octet-stream",
              "links": [
                        {
                            "rel": "canonical",
                            "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02/files/activity-data.tar.gz"
                        }
                       ]
             },
                {
                    "name": "inventory-data.tar.gz",
                    "bytes": "32727812",
                    "mediaType": "application/octet-stream",
                    "links": [
                        {
                            "rel": "canonical",
                            "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02/files/inventory-data.tar.gz"
                        }
                              ]
                }
            ]
        },
        "links": [
            {
                "rel": "canonical",
                "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02/files"
            },
            {
                "rel": "describedby",
                "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/metadata-catalog/folders"
            }
                  ]
}
Back to Top