Create a managed table from sample file
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/dataTables
Creates a managed table with data loaded from a sample file.
Request
Path Parameters
-
aiDataPlatformId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance.
Header Parameters
-
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. The only valid characters for request IDs are letters, numbers, underscore, and dash.
-
opc-retry-token: string
Minimum Length:
1Maximum Length:64A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of running that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and removed from the system, then a retry of the original creation request might be rejected. -
should-update-recent: boolean
A flag to identify if the recent list should be updated.Default Value:
false
Details for the new managed table with data.
Root Schema : CreateDataTableDetails
Type:
objectThe details to create a managed table with data.
Show Source
-
catalogKey(required):
string
The name of the catalog to which this table belongs.
-
description:
string
Table description.
-
displayName(required):
string
Table name.
-
fileFormat(required):
string
Allowed Values:
[ "AVRO", "ORC", "PARQUET", "TEXTFILE", "JSON", "CSV", "DELTA", "ICEBERG" ]Format of the sample file from which data needs to be copied. -
managedTableDefinition(required):
object ManagedTableDefinition
The details about the new managed table.
-
objectStorageLocationPath(required):
string
Minimum Length:
1Maximum Length:1024The file location from which table details will be used. -
partitionKeys:
array partitionKeys
Maximum Number of Items:
100Columns to be used in partition for table. -
schemaKey(required):
string
The name of the schema to which this table belongs.
-
selectedColumns(required):
array selectedColumns
Maximum Number of Items:
100The list of the columns from which data needs to be copied. -
tableFields(required):
array tableFields
Maximum Number of Items:
100Columns for table. -
tableProperties:
array tableProperties
Maximum Number of Items:
10Table properties.
Nested Schema : ManagedTableDefinition
Type:
objectThe details about the new managed table.
Show Source
-
managedTableDataFormat(required):
string
Allowed Values:
[ "AVRO", "ORC", "PARQUET", "TEXTFILE", "JSON", "CSV", "DELTA", "ICEBERG" ]Data format of the managed table.
Nested Schema : partitionKeys
Type:
arrayMaximum Number of Items:
100Columns to be used in partition for table.
Show Source
-
Array of:
object TableFieldDetails
Columns for table.
Nested Schema : selectedColumns
Type:
arrayMaximum Number of Items:
100The list of the columns from which data needs to be copied.
Show Source
Nested Schema : tableFields
Type:
arrayMaximum Number of Items:
100Columns for table.
Show Source
-
Array of:
object TableFieldDetails
Columns for table.
Nested Schema : tableProperties
Type:
arrayMaximum Number of Items:
10Table properties.
Show Source
-
Array of:
object TableProperty
The property of the table.
Nested Schema : TableFieldDetails
Type:
objectColumns for table.
Show Source
-
fieldDescription:
string
Description of the column.
-
fieldName(required):
string
Minimum Length:
1Maximum Length:767Name of the column. -
fieldPrecision:
string
Minimum Length:
1Maximum Length:64Precision of the column. -
fieldScale:
string
Minimum Length:
1Maximum Length:64Scale of the column. -
fieldType:
string
Minimum Length:
1Maximum Length:9999Type of the column.
Nested Schema : TableProperty
Type:
objectThe property of the table.
Show Source
-
propertyName(required):
string
Minimum Length:
1Maximum Length:255Property name. -
propertyValue:
string
Minimum Length:
1Maximum Length:255Property value.
Response
Supported Media Types
- application/json
202 Response
Request accepted. Managed table is created.
Headers
-
aidp-async-operation-key: string
The key of the asynchronous operations associated with an AI Data Platform instance. Use GetAsyncOperation with this key to track the status of the request.
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
-
opc-work-request-id: string
The OCID of the asynchronous work request. Use GetWorkRequest with this ID to track the status of the request.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
409 Response
Conflict. Request conflicts with the current state of the resource.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.