Pre-General Availability: 2022-08-18. This documentation is in pre-General Availability status and is intended for demonstration and preliminary use only. It may not be specific to the hardware on which you are using the software. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to this documentation and will not be responsible for any loss, costs, or damages incurred due to the use of this documentation.
Preview object data
post
/20210831/projects/{projectId}/n/{namespace}/b/{bucketName}/o/{objectName}/actions/previewObject
Get Object Preview, the first 10 rows from Object.
Request
Path Parameters
-
bucketName: string
Minimum Length:
1
Maximum Length:255
The name of Object Store bucket -
namespace: string
Minimum Length:
1
Maximum Length:255
The name of Object Store namespace -
objectName: string
Minimum Length:
1
Maximum Length:255
The name of object -
projectId: string
Minimum Length:
1
Maximum Length:255
The OCID of Query Service project
Header Parameters
-
opc-request-id: string
The client request ID for tracing.
Details for tweaking of object preview. Provided parameters can influence
how the rows and fields are parsed for the preview.
Root Schema : PreviewObjectDetails
Type:
object
Details for tweaking of object preview. Provided parameters can influence
how the rows and fields are parsed for the preview.
Show Source
-
csvFormattingDetails(optional):
object CsvFormattingDetails
Preview formatting details specific to objects in the CSV format.
Nested Schema : CsvFormattingDetails
Type:
object
Preview formatting details specific to objects in the CSV format.
Show Source
-
areBlankAsNull(optional):
boolean
Default Value:
true
When set to true, loads fields consisting of spaces as null. -
areIgnoreBlankLines(optional):
boolean
Default Value:
true
Blank lines are ignored when set to true. -
areRemoveQuotes(optional):
boolean
Default Value:
true
Removes any quotes that are around any field in the source file. -
areTrimSpaces(optional):
string
Default Value:
LDRTRIM
Allowed Values:[ "RTRIM", "LTRIM", "NOTRIM", "LRTRIM", "LDRTRIM" ]
Specifies how the leading and trailing spaces of the fields are trimmed. -
areTruncateColumn(optional):
boolean
Default Value:
true
If the data in the file is too long for a field, then this option will truncate the value of the field rather than reject the row. -
conversionErrorsType(optional):
string
Allowed Values:
[ "REJECT_RECORD", "STORE_NULL" ]
If a row is rejected because of data type conversion errors, the related columns are stored as null or the row is rejected. -
dateFormat(optional):
string
Minimum Length:
1
Maximum Length:255
Specifies the date format in the source file. See the Format Models reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Format-Models.htmlExample:MM-DD-YYYYBC MM-DD-YYYY YYYYMMDD HHMISS YYMMDD HHMISS YYYY.DDD YYYY-MM-DD
-
delimiterCharacter(optional):
string
Minimum Length:
1
Maximum Length:1
Specifies the field delimiter character. -
isEscape(optional):
boolean
Default Value:
true
The character '\' is used as the escape character when specified. -
quoteCharacter(optional):
string
Minimum Length:
1
Maximum Length:1
Specifies the quote character for the fields, the quote characters are removed during loading when specified. -
rejectLimit(optional):
integer(int32)
Maximum Value:
1000
The operation will error out after specified number of rows are rejected. -
skipHeadersLimit(optional):
integer(int32)
Maximum Value:
10
Specifies how many rows should be skipped from the start of the file. -
timestampFormat(optional):
string
Minimum Length:
1
Maximum Length:255
Specifies the timestamp format in the source file. See the Format Models reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Format-Models.htmlExample:YYYY-MM-DD HH:MI:SS.FF YYYY-MM-DD HH:MI:SS.FF3 MM/DD/YYYY HH:MI:SS.FF3
-
timestampLocalTimeZoneFormat(optional):
string
Minimum Length:
1
Maximum Length:255
Specifies the timestamp with local timezone format in the source file. See the Format Models reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Format-Models.htmlExample:DD Mon YYYY HH:MI:SS.FF TZR MM/DD/YYYY HH:MI:SS.FF TZR YYYY-MM-DD HH:MI:SS+/-TZR YYYY-MM-DD HH:MI:SS.FF3 DD.MM.YYYY HH:MI:SS TZR
-
timestampTimeZoneFormat(optional):
string
Minimum Length:
1
Maximum Length:255
Specifies the timestamp with timezone format in the source file. See the Format Models reference: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Format-Models.htmlExample:DD Mon YYYY HH:MI:SS.FF TZR MM/DD/YYYY HH:MI:SS.FF TZR YYYY-MM-DD HH:MI:SS+/-TZR YYYY-MM-DD HH:MI:SS.FF3 DD.MM.YYYY HH:MI:SS TZR
Response
Supported Media Types
- application/json
200 Response
Retrieves data of the given object for preview
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : RowCollection
Type:
object
Rows of Object Select preview, first row is column names
Show Source
-
items:
array items
Maximum Number of Items:
10
Collection of rows which together form an object preview.
Example:
{"items": [["col1Name", "col2Name"], ["col1Row1Value", "col2Row1Value"], ["col1Row2Value", "col2Row2Value"], ["col1Row3Value", "col2Row3Value"]]}
Nested Schema : items
Type:
array
Maximum Number of Items:
10
Collection of rows which together form an object preview.
Show Source
400 Response
Bad Request
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
object
Error Information.
Show Source
-
code:
string
Minimum Length:
1
Maximum Length:255
A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1
Maximum Length:1024
A human-readable error string.
401 Response
Unauthorized
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
object
Error Information.
Show Source
-
code:
string
Minimum Length:
1
Maximum Length:255
A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1
Maximum Length:1024
A human-readable error string.
404 Response
Not Found
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
object
Error Information.
Show Source
-
code:
string
Minimum Length:
1
Maximum Length:255
A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1
Maximum Length:1024
A human-readable error string.
429 Response
Too Many Requests
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
object
Error Information.
Show Source
-
code:
string
Minimum Length:
1
Maximum Length:255
A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1
Maximum Length:1024
A human-readable error string.
500 Response
Internal Server Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
object
Error Information.
Show Source
-
code:
string
Minimum Length:
1
Maximum Length:255
A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1
Maximum Length:1024
A human-readable error string.
Default Response
Unknown Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
object
Error Information.
Show Source
-
code:
string
Minimum Length:
1
Maximum Length:255
A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1
Maximum Length:1024
A human-readable error string.