oci.Nosql.getTable
Explore with Pulumi AI
This data source provides details about a specific Table resource in Oracle Cloud Infrastructure NoSQL Database service.
Get table info by identifier.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testTable = Oci.Nosql.GetTable.Invoke(new()
{
TableNameOrId = oci_nosql_table_name_or.Test_table_name_or.Id,
CompartmentId = @var.Compartment_id,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Nosql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Nosql.GetTable(ctx, &nosql.GetTableArgs{
TableNameOrId: oci_nosql_table_name_or.Test_table_name_or.Id,
CompartmentId: _var.Compartment_id,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Nosql.NosqlFunctions;
import com.pulumi.oci.Nosql.inputs.GetTableArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testTable = NosqlFunctions.getTable(GetTableArgs.builder()
.tableNameOrId(oci_nosql_table_name_or.test_table_name_or().id())
.compartmentId(var_.compartment_id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_table = oci.Nosql.get_table(table_name_or_id=oci_nosql_table_name_or["test_table_name_or"]["id"],
compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTable = oci.Nosql.getTable({
tableNameOrId: oci_nosql_table_name_or.test_table_name_or.id,
compartmentId: _var.compartment_id,
});
variables:
testTable:
fn::invoke:
Function: oci:Nosql:getTable
Arguments:
tableNameOrId: ${oci_nosql_table_name_or.test_table_name_or.id}
compartmentId: ${var.compartment_id}
Using getTable
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTable(args: GetTableArgs, opts?: InvokeOptions): Promise<GetTableResult>
function getTableOutput(args: GetTableOutputArgs, opts?: InvokeOptions): Output<GetTableResult>
def get_table(compartment_id: Optional[str] = None,
table_name_or_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTableResult
def get_table_output(compartment_id: Optional[pulumi.Input[str]] = None,
table_name_or_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTableResult]
func GetTable(ctx *Context, args *GetTableArgs, opts ...InvokeOption) (*GetTableResult, error)
func GetTableOutput(ctx *Context, args *GetTableOutputArgs, opts ...InvokeOption) GetTableResultOutput
> Note: This function is named GetTable
in the Go SDK.
public static class GetTable
{
public static Task<GetTableResult> InvokeAsync(GetTableArgs args, InvokeOptions? opts = null)
public static Output<GetTableResult> Invoke(GetTableInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Nosql/getTable:getTable
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id 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.
- Table
Name stringOr Id A table name within the compartment, or a table OCID.
- Compartment
Id 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.
- Table
Name stringOr Id A table name within the compartment, or a table OCID.
- compartment
Id 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.
- table
Name StringOr Id A table name within the compartment, or a table OCID.
- compartment
Id 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.
- table
Name stringOr Id A table name within the compartment, or a table OCID.
- compartment_
id str 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.
- table_
name_ stror_ id A table name within the compartment, or a table OCID.
- compartment
Id 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.
- table
Name StringOr Id A table name within the compartment, or a table OCID.
getTable Result
The following output properties are available:
- Compartment
Id string Compartment Identifier.
- Ddl
Statement string A DDL statement representing the schema.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace": {"bar-key": "value"}}
- Dictionary<string, object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
Unique identifier that is immutable.
- Is
Auto boolReclaimable True if this table can be reclaimed after an idle period.
- Lifecycle
Details string A message describing the current state in more detail.
- Name string
The column name.
- Schemas
List<Get
Table Schema> The table schema information as a JSON object.
- State string
The state of a table.
- Dictionary<string, object>
Read-only system tag. These predefined keys are scoped to namespaces. At present the only supported namespace is
"orcl-cloud"
; and the only key in that namespace is"free-tier-retained"
. Example:{"orcl-cloud"": {"free-tier-retained": "true"}}
- Table
Limits List<GetTable Table Limit> Throughput and storage limits configuration of a table.
- Table
Name stringOr Id - Time
Created string The time the the table was created. An RFC3339 formatted datetime string.
- Time
Of stringExpiration If lifecycleState is INACTIVE, indicates when this table will be automatically removed. An RFC3339 formatted datetime string.
- Time
Updated string The time the the table's metadata was last updated. An RFC3339 formatted datetime string.
- Compartment
Id string Compartment Identifier.
- Ddl
Statement string A DDL statement representing the schema.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace": {"bar-key": "value"}}
- map[string]interface{}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
Unique identifier that is immutable.
- Is
Auto boolReclaimable True if this table can be reclaimed after an idle period.
- Lifecycle
Details string A message describing the current state in more detail.
- Name string
The column name.
- Schemas
[]Get
Table Schema The table schema information as a JSON object.
- State string
The state of a table.
- map[string]interface{}
Read-only system tag. These predefined keys are scoped to namespaces. At present the only supported namespace is
"orcl-cloud"
; and the only key in that namespace is"free-tier-retained"
. Example:{"orcl-cloud"": {"free-tier-retained": "true"}}
- Table
Limits []GetTable Table Limit Throughput and storage limits configuration of a table.
- Table
Name stringOr Id - Time
Created string The time the the table was created. An RFC3339 formatted datetime string.
- Time
Of stringExpiration If lifecycleState is INACTIVE, indicates when this table will be automatically removed. An RFC3339 formatted datetime string.
- Time
Updated string The time the the table's metadata was last updated. An RFC3339 formatted datetime string.
- compartment
Id String Compartment Identifier.
- ddl
Statement String A DDL statement representing the schema.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace": {"bar-key": "value"}}
- Map<String,Object>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
Unique identifier that is immutable.
- is
Auto BooleanReclaimable True if this table can be reclaimed after an idle period.
- lifecycle
Details String A message describing the current state in more detail.
- name String
The column name.
- schemas
List<Get
Table Schema> The table schema information as a JSON object.
- state String
The state of a table.
- Map<String,Object>
Read-only system tag. These predefined keys are scoped to namespaces. At present the only supported namespace is
"orcl-cloud"
; and the only key in that namespace is"free-tier-retained"
. Example:{"orcl-cloud"": {"free-tier-retained": "true"}}
- table
Limits List<GetTable Table Limit> Throughput and storage limits configuration of a table.
- table
Name StringOr Id - time
Created String The time the the table was created. An RFC3339 formatted datetime string.
- time
Of StringExpiration If lifecycleState is INACTIVE, indicates when this table will be automatically removed. An RFC3339 formatted datetime string.
- time
Updated String The time the the table's metadata was last updated. An RFC3339 formatted datetime string.
- compartment
Id string Compartment Identifier.
- ddl
Statement string A DDL statement representing the schema.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace": {"bar-key": "value"}}
- {[key: string]: any}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
Unique identifier that is immutable.
- is
Auto booleanReclaimable True if this table can be reclaimed after an idle period.
- lifecycle
Details string A message describing the current state in more detail.
- name string
The column name.
- schemas
Get
Table Schema[] The table schema information as a JSON object.
- state string
The state of a table.
- {[key: string]: any}
Read-only system tag. These predefined keys are scoped to namespaces. At present the only supported namespace is
"orcl-cloud"
; and the only key in that namespace is"free-tier-retained"
. Example:{"orcl-cloud"": {"free-tier-retained": "true"}}
- table
Limits GetTable Table Limit[] Throughput and storage limits configuration of a table.
- table
Name stringOr Id - time
Created string The time the the table was created. An RFC3339 formatted datetime string.
- time
Of stringExpiration If lifecycleState is INACTIVE, indicates when this table will be automatically removed. An RFC3339 formatted datetime string.
- time
Updated string The time the the table's metadata was last updated. An RFC3339 formatted datetime string.
- compartment_
id str Compartment Identifier.
- ddl_
statement str A DDL statement representing the schema.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace": {"bar-key": "value"}}
- Mapping[str, Any]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
Unique identifier that is immutable.
- is_
auto_ boolreclaimable True if this table can be reclaimed after an idle period.
- lifecycle_
details str A message describing the current state in more detail.
- name str
The column name.
- schemas
Get
Table Schema] The table schema information as a JSON object.
- state str
The state of a table.
- Mapping[str, Any]
Read-only system tag. These predefined keys are scoped to namespaces. At present the only supported namespace is
"orcl-cloud"
; and the only key in that namespace is"free-tier-retained"
. Example:{"orcl-cloud"": {"free-tier-retained": "true"}}
- table_
limits GetTable Table Limit] Throughput and storage limits configuration of a table.
- table_
name_ stror_ id - time_
created str The time the the table was created. An RFC3339 formatted datetime string.
- time_
of_ strexpiration If lifecycleState is INACTIVE, indicates when this table will be automatically removed. An RFC3339 formatted datetime string.
- time_
updated str The time the the table's metadata was last updated. An RFC3339 formatted datetime string.
- compartment
Id String Compartment Identifier.
- ddl
Statement String A DDL statement representing the schema.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace": {"bar-key": "value"}}
- Map<Any>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
Unique identifier that is immutable.
- is
Auto BooleanReclaimable True if this table can be reclaimed after an idle period.
- lifecycle
Details String A message describing the current state in more detail.
- name String
The column name.
- schemas List<Property Map>
The table schema information as a JSON object.
- state String
The state of a table.
- Map<Any>
Read-only system tag. These predefined keys are scoped to namespaces. At present the only supported namespace is
"orcl-cloud"
; and the only key in that namespace is"free-tier-retained"
. Example:{"orcl-cloud"": {"free-tier-retained": "true"}}
- table
Limits List<Property Map> Throughput and storage limits configuration of a table.
- table
Name StringOr Id - time
Created String The time the the table was created. An RFC3339 formatted datetime string.
- time
Of StringExpiration If lifecycleState is INACTIVE, indicates when this table will be automatically removed. An RFC3339 formatted datetime string.
- time
Updated String The time the the table's metadata was last updated. An RFC3339 formatted datetime string.
Supporting Types
GetTableSchema
- Columns
List<Get
Table Schema Column> The columns of a table.
- Identities
List<Get
Table Schema Identity> The identity properties of a table, if any.
- Primary
Keys List<string> A list of column names that make up a key.
- List<string>
A list of column names that make up a key.
- Ttl int
The default Time-to-Live for the table, in days.
- Columns
[]Get
Table Schema Column The columns of a table.
- Identities
[]Get
Table Schema Identity The identity properties of a table, if any.
- Primary
Keys []string A list of column names that make up a key.
- []string
A list of column names that make up a key.
- Ttl int
The default Time-to-Live for the table, in days.
- columns
List<Get
Table Schema Column> The columns of a table.
- identities
List<Get
Table Schema Identity> The identity properties of a table, if any.
- primary
Keys List<String> A list of column names that make up a key.
- List<String>
A list of column names that make up a key.
- ttl Integer
The default Time-to-Live for the table, in days.
- columns
Get
Table Schema Column[] The columns of a table.
- identities
Get
Table Schema Identity[] The identity properties of a table, if any.
- primary
Keys string[] A list of column names that make up a key.
- string[]
A list of column names that make up a key.
- ttl number
The default Time-to-Live for the table, in days.
- columns
Get
Table Schema Column] The columns of a table.
- identities
Get
Table Schema Identity] The identity properties of a table, if any.
- primary_
keys Sequence[str] A list of column names that make up a key.
- Sequence[str]
A list of column names that make up a key.
- ttl int
The default Time-to-Live for the table, in days.
- columns List<Property Map>
The columns of a table.
- identities List<Property Map>
The identity properties of a table, if any.
- primary
Keys List<String> A list of column names that make up a key.
- List<String>
A list of column names that make up a key.
- ttl Number
The default Time-to-Live for the table, in days.
GetTableSchemaColumn
- Default
Value string The column default value.
- Is
As boolUuid True if the STRING column was declared AS UUID.
- Is
Generated bool True if the STRING AS UUID column is also GENERATED BY DEFAULT.
- Is
Nullable bool The column nullable flag.
- Name string
The column name.
- Type string
The column type.
- Default
Value string The column default value.
- Is
As boolUuid True if the STRING column was declared AS UUID.
- Is
Generated bool True if the STRING AS UUID column is also GENERATED BY DEFAULT.
- Is
Nullable bool The column nullable flag.
- Name string
The column name.
- Type string
The column type.
- default
Value String The column default value.
- is
As BooleanUuid True if the STRING column was declared AS UUID.
- is
Generated Boolean True if the STRING AS UUID column is also GENERATED BY DEFAULT.
- is
Nullable Boolean The column nullable flag.
- name String
The column name.
- type String
The column type.
- default
Value string The column default value.
- is
As booleanUuid True if the STRING column was declared AS UUID.
- is
Generated boolean True if the STRING AS UUID column is also GENERATED BY DEFAULT.
- is
Nullable boolean The column nullable flag.
- name string
The column name.
- type string
The column type.
- default_
value str The column default value.
- is_
as_ booluuid True if the STRING column was declared AS UUID.
- is_
generated bool True if the STRING AS UUID column is also GENERATED BY DEFAULT.
- is_
nullable bool The column nullable flag.
- name str
The column name.
- type str
The column type.
- default
Value String The column default value.
- is
As BooleanUuid True if the STRING column was declared AS UUID.
- is
Generated Boolean True if the STRING AS UUID column is also GENERATED BY DEFAULT.
- is
Nullable Boolean The column nullable flag.
- name String
The column name.
- type String
The column type.
GetTableSchemaIdentity
- Column
Name string The name of the identity column.
- Is
Always bool True if the identity value is GENERATED ALWAYS.
- Is
Null bool True if the identity value is GENERATED BY DEFAULT ON NULL.
- Column
Name string The name of the identity column.
- Is
Always bool True if the identity value is GENERATED ALWAYS.
- Is
Null bool True if the identity value is GENERATED BY DEFAULT ON NULL.
- column
Name String The name of the identity column.
- is
Always Boolean True if the identity value is GENERATED ALWAYS.
- is
Null Boolean True if the identity value is GENERATED BY DEFAULT ON NULL.
- column
Name string The name of the identity column.
- is
Always boolean True if the identity value is GENERATED ALWAYS.
- is
Null boolean True if the identity value is GENERATED BY DEFAULT ON NULL.
- column_
name str The name of the identity column.
- is_
always bool True if the identity value is GENERATED ALWAYS.
- is_
null bool True if the identity value is GENERATED BY DEFAULT ON NULL.
- column
Name String The name of the identity column.
- is
Always Boolean True if the identity value is GENERATED ALWAYS.
- is
Null Boolean True if the identity value is GENERATED BY DEFAULT ON NULL.
GetTableTableLimit
- Capacity
Mode string The capacity mode of the table. If capacityMode = ON_DEMAND, maxReadUnits and maxWriteUnits are not used, and both will have the value of zero.
- Max
Read intUnits Maximum sustained read throughput limit for the table.
- Max
Storage intIn Gbs Maximum size of storage used by the table.
- Max
Write intUnits Maximum sustained write throughput limit for the table.
- Capacity
Mode string The capacity mode of the table. If capacityMode = ON_DEMAND, maxReadUnits and maxWriteUnits are not used, and both will have the value of zero.
- Max
Read intUnits Maximum sustained read throughput limit for the table.
- Max
Storage intIn Gbs Maximum size of storage used by the table.
- Max
Write intUnits Maximum sustained write throughput limit for the table.
- capacity
Mode String The capacity mode of the table. If capacityMode = ON_DEMAND, maxReadUnits and maxWriteUnits are not used, and both will have the value of zero.
- max
Read IntegerUnits Maximum sustained read throughput limit for the table.
- max
Storage IntegerIn Gbs Maximum size of storage used by the table.
- max
Write IntegerUnits Maximum sustained write throughput limit for the table.
- capacity
Mode string The capacity mode of the table. If capacityMode = ON_DEMAND, maxReadUnits and maxWriteUnits are not used, and both will have the value of zero.
- max
Read numberUnits Maximum sustained read throughput limit for the table.
- max
Storage numberIn Gbs Maximum size of storage used by the table.
- max
Write numberUnits Maximum sustained write throughput limit for the table.
- capacity_
mode str The capacity mode of the table. If capacityMode = ON_DEMAND, maxReadUnits and maxWriteUnits are not used, and both will have the value of zero.
- max_
read_ intunits Maximum sustained read throughput limit for the table.
- max_
storage_ intin_ gbs Maximum size of storage used by the table.
- max_
write_ intunits Maximum sustained write throughput limit for the table.
- capacity
Mode String The capacity mode of the table. If capacityMode = ON_DEMAND, maxReadUnits and maxWriteUnits are not used, and both will have the value of zero.
- max
Read NumberUnits Maximum sustained read throughput limit for the table.
- max
Storage NumberIn Gbs Maximum size of storage used by the table.
- max
Write NumberUnits Maximum sustained write throughput limit for the table.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.