Create a view
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/views
Creates a view.
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 view.
Root Schema : CreateViewDetails
Type:
objectThe data to create a view.
Show Source
-
catalogKey(required):
string
The name of the catalog to which this view belongs.
-
description:
string
The description of the view.
-
displayName(required):
string
A user-friendly name. Has to be unique within the scope of the schema and is changeable.
-
schemaKey(required):
string
The name of the Schema to which this view belongs.
-
viewFields:
array viewFields
Maximum Number of Items:
1000Columns for view. -
viewProperties:
array viewProperties
Maximum Number of Items:
10View Properties. -
viewText(required):
string
The Query used to create the view.
Nested Schema : viewFields
Type:
arrayMaximum Number of Items:
1000Columns for view.
Show Source
-
Array of:
object ViewFieldDetails
Columns for view.
Nested Schema : viewProperties
Type:
arrayMaximum Number of Items:
10View Properties.
Show Source
-
Array of:
object ViewProperty
The property of the view.
Nested Schema : ViewFieldDetails
Type:
objectColumns for view.
Show Source
-
fieldDescription:
string
Description of the column.
-
fieldName(required):
string
Minimum Length:
1Maximum Length:767Name of the column. -
fieldPrecision:
string
Precision of the column.
-
fieldScale:
string
Scale of the column.
-
fieldType:
string
Minimum Length:
1Maximum Length:9999Type of the column.
Nested Schema : ViewProperty
Type:
objectThe property of the view.
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
200 Response
Successful operation. View is created.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
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 : View
Type:
objectInformation about the view in the schema.
Show Source
-
catalogKey:
string
The name of the catalog to which this view belongs.
-
createdBy:
string
Minimum Length:
1Maximum Length:255The ID of the user/principal who created the view. -
description:
string
The description of the view.
-
displayName(required):
string
A user-friendly name. Has to be unique within the scope of the schema and is changeable.
-
key:
string
The fully qualified name of the view in the format
. . -
lifecycleState:
string
Allowed Values:
[ "ACTIVE" ]The state of the view. -
lifecycleStateDetails:
string
A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
-
schemaKey:
string
The name of the Schema to which this view belongs.
-
timeCreated:
string(date-time)
The date and time the View was created, in the format defined by RFC 3339. Example: `2016-08-25T21:10:29.600Z`
-
timeUpdated:
string(date-time)
The date and time the View was updated, in the format defined by RFC 3339. Example: `2016-08-25T21:10:29.600Z`
-
updatedBy:
string
Minimum Length:
1Maximum Length:255The ID of the user who last updated the view. -
viewFields:
array viewFields
Maximum Number of Items:
1000Columns for view. -
viewProperties:
array viewProperties
Maximum Number of Items:
10View Properties. -
viewText:
string
The Query used to create the view.
Nested Schema : viewFields
Type:
arrayMaximum Number of Items:
1000Columns for view.
Show Source
-
Array of:
object ViewFieldDetails
Columns for view.
Nested Schema : viewProperties
Type:
arrayMaximum Number of Items:
10View Properties.
Show Source
-
Array of:
object ViewProperty
The property of the view.
Nested Schema : ViewFieldDetails
Type:
objectColumns for view.
Show Source
-
fieldDescription:
string
Description of the column.
-
fieldName(required):
string
Minimum Length:
1Maximum Length:767Name of the column. -
fieldPrecision:
string
Precision of the column.
-
fieldScale:
string
Scale of the column.
-
fieldType:
string
Minimum Length:
1Maximum Length:9999Type of the column.
Nested Schema : ViewProperty
Type:
objectThe property of the view.
Show Source
-
propertyName(required):
string
Minimum Length:
1Maximum Length:255Property name. -
propertyValue:
string
Minimum Length:
1Maximum Length:255Property value.
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.