Create a table
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/tables
Creates a table.
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 table.
Root Schema : CreateTableDetails
Type:
objectThe data to create a table.
Show Source
-
catalogKey(required):
string
The name of the catalog to which this table belongs.
-
description:
string
Table description.
-
displayName(required):
string
Table name.
-
externalTableDefinition:
object ExternalTableDefinition
The details about the new external table.
-
managedTableDefinition:
object ManagedTableDefinition
The details about the new managed table.
-
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.
-
tableFields:
array tableFields
Maximum Number of Items:
100Columns for table. -
tableProperties:
array tableProperties
Maximum Number of Items:
10Table properties. -
tableType(required):
string
Allowed Values:
[ "MANAGED", "EXTERNAL" ]Type of table. Managed, external or mount table.
Nested Schema : ExternalTableDefinition
Type:
objectThe details about the new external table.
Show Source
-
externalTableDataFormat(required):
string
Allowed Values:
[ "AVRO", "ORC", "PARQUET", "TEXTFILE", "JSON", "CSV", "DELTA", "ICEBERG" ]External table data format. -
externalTableLocationType:
string
Allowed Values:
[ "OBJECT_STORAGE", "MOUNT" ]External table location type, either object store location or mount location. -
objectStorageLocationPath:
string
Minimum Length:
1Maximum Length:1024The file location from which table properties are loaded. -
txtFileDefinition:
object TxtFileDefinition
Properties specific to a text file.
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 : 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 : TxtFileDefinition
Type:
objectProperties specific to a text file.
Show Source
-
delimiter:
string
Minimum Length:
1Maximum Length:255Delimiter to be used with text file. -
quote:
string
Minimum Length:
1Maximum Length:255Type of quote to be used with text file.
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. 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.
-
content-location: string(uri-reference)
Same as location.
-
location: string(uri-reference)
URL for the created Table. The table key is generated after this request is sent.
-
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.
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.