Data Source: oci_nosql_index
This data source provides details about a specific Index resource in Oracle Cloud Infrastructure NoSQL Database service.
Get information about a single index.
Example Usage
data "oci_nosql_index" "test_index" {
#Required
index_name = oci_nosql_index.test_index.name
table_name_or_id = oci_nosql_table_name_or.test_table_name_or.id
#Optional
compartment_id = var.compartment_id
}
Argument Reference
The following arguments are supported:
compartment_id
- (Optional) 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.index_name
- (Required) The name of a table’s index.table_name_or_id
- (Required) A table name within the compartment, or a table OCID.
Attributes Reference
The following attributes are exported:
compartment_id
- Compartment Identifier.keys
- A set of keys for a secondary index.column_name
- The name of a column to be included as an index key.json_field_type
- If the specified column is of type JSON, jsonFieldType contains the type of the field indicated by jsonPath.json_path
- 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.
lifecycle_details
- A message describing the current state in more detail.name
- Index name.state
- The state of an index.table_id
- the OCID of the table to which this index belongs.table_name
- The name of the table to which this index belongs.