Get daily extract dates
get
/rest/ofscCore/v1/folders/dailyExtract/folders
This operation retrieves a list of dates where a daily extract file is available.
Note: The daily extract files are deleted after 90 days.
Request
There are no request parameters for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
This section describes the 200 status response for this operation.
Root Schema : Daily Extract Subfolders
Type:
objectTitle:
Daily Extract SubfoldersThe list of subfolders with daily extract files. Each subfolder is named in the 'YYYY-MM-DD' format.
Show Source
-
items:
array Items
Title:
ItemsThe list of subfolders with daily extract files.
Nested Schema : Items
Type:
arrayTitle:
ItemsThe list of subfolders with daily extract files.
Show Source
-
Array of:
object Folder
Title:
FolderThe folder that has the daily extract files.
Nested Schema : Folder
Type:
objectTitle:
FolderThe folder that has the daily extract files.
Show Source
-
links:
array Links
Title:
LinksThe links to access the subfolders. -
name:
string
Title:
NameThe name of the folder.
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 get daily extract dates 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'Example of Request Header
The following shows an example of the resquest header.
GET /rest/ofscCore/v1/folders/dailyExtract/folders 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": "folders",
"folders":
{
"items":
[
{
"name": "2015-07-01",
"links": [
{
"rel": "canonical",
"href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-01"
}
]
},
{
"name": "2015-07-02",
"links": [
{
"rel": "canonical",
"href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02"
}
]
}
],
"links": [
{
"rel": "canonical",
"href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders"
}
]
},
"links": [
{
"rel": "canonical",
"href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders"
},
{
"rel": "describedby",
"href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/metadata-catalog/folders"
}
]
}