oci.Nosql.getTables
Explore with Pulumi AI
This data source provides the list of Tables in Oracle Cloud Infrastructure NoSQL Database service.
Get a list of tables in a compartment.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testTables = Oci.Nosql.GetTables.Invoke(new()
{
CompartmentId = @var.Compartment_id,
Name = @var.Table_name,
State = @var.Table_state,
});
});
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.GetTables(ctx, &nosql.GetTablesArgs{
CompartmentId: _var.Compartment_id,
Name: pulumi.StringRef(_var.Table_name),
State: pulumi.StringRef(_var.Table_state),
}, 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.GetTablesArgs;
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 testTables = NosqlFunctions.getTables(GetTablesArgs.builder()
.compartmentId(var_.compartment_id())
.name(var_.table_name())
.state(var_.table_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_tables = oci.Nosql.get_tables(compartment_id=var["compartment_id"],
name=var["table_name"],
state=var["table_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTables = oci.Nosql.getTables({
compartmentId: _var.compartment_id,
name: _var.table_name,
state: _var.table_state,
});
variables:
testTables:
fn::invoke:
Function: oci:Nosql:getTables
Arguments:
compartmentId: ${var.compartment_id}
name: ${var.table_name}
state: ${var.table_state}
Using getTables
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 getTables(args: GetTablesArgs, opts?: InvokeOptions): Promise<GetTablesResult>
function getTablesOutput(args: GetTablesOutputArgs, opts?: InvokeOptions): Output<GetTablesResult>
def get_tables(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_nosql.GetTablesFilter]] = None,
name: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTablesResult
def get_tables_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_nosql.GetTablesFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTablesResult]
func GetTables(ctx *Context, args *GetTablesArgs, opts ...InvokeOption) (*GetTablesResult, error)
func GetTablesOutput(ctx *Context, args *GetTablesOutputArgs, opts ...InvokeOption) GetTablesResultOutput
> Note: This function is named GetTables
in the Go SDK.
public static class GetTables
{
public static Task<GetTablesResult> InvokeAsync(GetTablesArgs args, InvokeOptions? opts = null)
public static Output<GetTablesResult> Invoke(GetTablesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTablesResult> getTables(GetTablesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Nosql/getTables:getTables
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The ID of a table's compartment.
- Filters
List<Get
Tables Filter> - Name string
A shell-globbing-style (*?[]) filter for names.
- State string
Filter list by the lifecycle state of the item.
- Compartment
Id string The ID of a table's compartment.
- Filters
[]Get
Tables Filter - Name string
A shell-globbing-style (*?[]) filter for names.
- State string
Filter list by the lifecycle state of the item.
- compartment
Id String The ID of a table's compartment.
- filters
List<Get
Tables Filter> - name String
A shell-globbing-style (*?[]) filter for names.
- state String
Filter list by the lifecycle state of the item.
- compartment
Id string The ID of a table's compartment.
- filters
Get
Tables Filter[] - name string
A shell-globbing-style (*?[]) filter for names.
- state string
Filter list by the lifecycle state of the item.
- compartment_
id str The ID of a table's compartment.
- filters
Get
Tables Filter] - name str
A shell-globbing-style (*?[]) filter for names.
- state str
Filter list by the lifecycle state of the item.
- compartment
Id String The ID of a table's compartment.
- filters List<Property Map>
- name String
A shell-globbing-style (*?[]) filter for names.
- state String
Filter list by the lifecycle state of the item.
getTables Result
The following output properties are available:
- Compartment
Id string Compartment Identifier.
- Id string
The provider-assigned unique ID for this managed resource.
- Table
Collections List<GetTables Table Collection> The list of table_collection.
- Filters
List<Get
Tables Filter> - Name string
Human-friendly table name, immutable.
- State string
The state of a table.
- Compartment
Id string Compartment Identifier.
- Id string
The provider-assigned unique ID for this managed resource.
- Table
Collections []GetTables Table Collection The list of table_collection.
- Filters
[]Get
Tables Filter - Name string
Human-friendly table name, immutable.
- State string
The state of a table.
- compartment
Id String Compartment Identifier.
- id String
The provider-assigned unique ID for this managed resource.
- table
Collections List<GetTables Table Collection> The list of table_collection.
- filters
List<Get
Tables Filter> - name String
Human-friendly table name, immutable.
- state String
The state of a table.
- compartment
Id string Compartment Identifier.
- id string
The provider-assigned unique ID for this managed resource.
- table
Collections GetTables Table Collection[] The list of table_collection.
- filters
Get
Tables Filter[] - name string
Human-friendly table name, immutable.
- state string
The state of a table.
- compartment_
id str Compartment Identifier.
- id str
The provider-assigned unique ID for this managed resource.
- table_
collections GetTables Table Collection] The list of table_collection.
- filters
Get
Tables Filter] - name str
Human-friendly table name, immutable.
- state str
The state of a table.
- compartment
Id String Compartment Identifier.
- id String
The provider-assigned unique ID for this managed resource.
- table
Collections List<Property Map> The list of table_collection.
- filters List<Property Map>
- name String
Human-friendly table name, immutable.
- state String
The state of a table.
Supporting Types
GetTablesFilter
GetTablesTableCollection
- Compartment
Id string The ID of a table's compartment.
- Ddl
Statement string - 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
A shell-globbing-style (*?[]) filter for names.
- Schemas
List<Get
Tables Table Collection Schema> - State string
Filter list by the lifecycle state of the item.
- 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<GetTables Table Collection Table Limit> Throughput and storage limits configuration of a table.
- 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 The ID of a table's compartment.
- Ddl
Statement string - 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
A shell-globbing-style (*?[]) filter for names.
- Schemas
[]Get
Tables Table Collection Schema - State string
Filter list by the lifecycle state of the item.
- 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 []GetTables Table Collection Table Limit Throughput and storage limits configuration of a table.
- 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 The ID of a table's compartment.
- ddl
Statement String - 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
A shell-globbing-style (*?[]) filter for names.
- schemas
List<Get
Tables Table Collection Schema> - state String
Filter list by the lifecycle state of the item.
- 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<GetTables Table Collection Table Limit> Throughput and storage limits configuration of a table.
- 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 The ID of a table's compartment.
- ddl
Statement string - {[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
A shell-globbing-style (*?[]) filter for names.
- schemas
Get
Tables Table Collection Schema[] - state string
Filter list by the lifecycle state of the item.
- {[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 GetTables Table Collection Table Limit[] Throughput and storage limits configuration of a table.
- 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 The ID of a table's compartment.
- ddl_
statement str - 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
A shell-globbing-style (*?[]) filter for names.
- schemas
Get
Tables Table Collection Schema] - state str
Filter list by the lifecycle state of the item.
- 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 GetTables Table Collection Table Limit] Throughput and storage limits configuration of a table.
- 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 The ID of a table's compartment.
- ddl
Statement String - 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
A shell-globbing-style (*?[]) filter for names.
- schemas List<Property Map>
- state String
Filter list by the lifecycle state of the item.
- 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.
- 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.
GetTablesTableCollectionSchema
- Columns
List<Get
Tables Table Collection Schema Column> - Identities
List<Get
Tables Table Collection Schema Identity> - Primary
Keys List<string> - List<string>
- Ttl int
- columns
List<Get
Tables Table Collection Schema Column> - identities
List<Get
Tables Table Collection Schema Identity> - primary
Keys List<String> - List<String>
- ttl Integer
- columns
Get
Tables Table Collection Schema Column] - identities
Get
Tables Table Collection Schema Identity] - primary_
keys Sequence[str] - Sequence[str]
- ttl int
- columns List<Property Map>
- identities List<Property Map>
- primary
Keys List<String> - List<String>
- ttl Number
GetTablesTableCollectionSchemaColumn
- Default
Value string - Is
As boolUuid - Is
Generated bool - Is
Nullable bool - Name string
A shell-globbing-style (*?[]) filter for names.
- Type string
- Default
Value string - Is
As boolUuid - Is
Generated bool - Is
Nullable bool - Name string
A shell-globbing-style (*?[]) filter for names.
- Type string
- default
Value String - is
As BooleanUuid - is
Generated Boolean - is
Nullable Boolean - name String
A shell-globbing-style (*?[]) filter for names.
- type String
- default
Value string - is
As booleanUuid - is
Generated boolean - is
Nullable boolean - name string
A shell-globbing-style (*?[]) filter for names.
- type string
- default_
value str - is_
as_ booluuid - is_
generated bool - is_
nullable bool - name str
A shell-globbing-style (*?[]) filter for names.
- type str
- default
Value String - is
As BooleanUuid - is
Generated Boolean - is
Nullable Boolean - name String
A shell-globbing-style (*?[]) filter for names.
- type String
GetTablesTableCollectionSchemaIdentity
- Column
Name string - Is
Always bool - Is
Null bool
- Column
Name string - Is
Always bool - Is
Null bool
- column
Name String - is
Always Boolean - is
Null Boolean
- column
Name string - is
Always boolean - is
Null boolean
- column_
name str - is_
always bool - is_
null bool
- column
Name String - is
Always Boolean - is
Null Boolean
GetTablesTableCollectionTableLimit
- 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.