Get information about an index
get
/20190828/tables/{tableNameOrId}/indexes/{indexName}
Get information about a single index.
Request
Path Parameters
-
indexName: string
The name of a table's index.
-
tableNameOrId: string
A table name within the compartment, or a table OCID.
Query Parameters
-
compartmentId(optional): string
The ID of a table's compartment. When a table is identified by name, the compartmentId is often needed to provide context for interpreting the name.
Header Parameters
-
opc-request-id: string
The client request ID for tracing.
Response
Supported Media Types
- application/json
200 Response
Index metadata.
Headers
-
etag: string
For optimistic concurrency control. See `if-match`.
-
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 : Index
Type:
object
Information about an index.
Show Source
-
compartmentId(optional):
string
Compartment Identifier.
-
keys(optional):
array keys
A set of keys for a secondary index.
-
lifecycleDetails(optional):
string
A message describing the current state in more detail.
-
lifecycleState(optional):
string
Allowed Values:
[ "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" ]
The state of an index. -
name(optional):
string
Index name.
-
tableId(optional):
string
the OCID of the table to which this index belongs.
-
tableName(optional):
string
The name of the table to which this index belongs.
Nested Schema : keys
Type:
array
A set of keys for a secondary index.
Show Source
-
Array of:
object IndexKey
Specifies a single key in a secondary index.
Nested Schema : IndexKey
Type:
object
Specifies a single key in a secondary index.
Show Source
-
columnName:
string
The name of a column to be included as an index key.
-
jsonFieldType(optional):
string
If the specified column is of type JSON, jsonFieldType contains the type of the field indicated by jsonPath.
-
jsonPath(optional):
string
If the specified column is of type JSON, jsonPath contains a dotted path indicating the field within the JSON object that will be the index key.
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 : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
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 : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
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 : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
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.
-
retry-after: number(float)
A decimal number representing the number of seconds the client should wait before polling this endpoint again.
Root Schema : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
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 : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
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 : Error
Type:
object
Error Information.
Show Source
-
code:
string
A short error code that defines the error, meant for programmatic parsing.
-
message:
string
A human-readable error string.