1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. oss
  5. getTables
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.oss.getTables

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
Deprecated: alicloud.oss.getTables has been deprecated in favor of alicloud.ots.getTables

This data source provides the ots tables of the current Alibaba Cloud user.

NOTE: Available in v1.40.0+.

Example Usage

data "alicloud_ots_tables" "tables_ds" {
  instance_name = "sample-instance"
  name_regex    = "sample-table"
  output_file   = "tables.txt"
}

output "first_table_id" {
  value = "${data.alicloud_ots_tables.tables_ds.tables.0.id}"
}
Copy

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>
Copy
def get_tables(ids: Optional[Sequence[str]] = None,
               instance_name: Optional[str] = None,
               name_regex: Optional[str] = None,
               output_file: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetTablesResult
def get_tables_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
               instance_name: Optional[pulumi.Input[str]] = None,
               name_regex: Optional[pulumi.Input[str]] = None,
               output_file: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetTablesResult]
Copy
func GetTables(ctx *Context, args *GetTablesArgs, opts ...InvokeOption) (*GetTablesResult, error)
func GetTablesOutput(ctx *Context, args *GetTablesOutputArgs, opts ...InvokeOption) GetTablesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetTablesResult> getTables(GetTablesArgs args, InvokeOptions options)
public static Output<GetTablesResult> getTables(GetTablesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:oss/getTables:getTables
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of OTS instance.
Ids Changes to this property will trigger replacement. List<string>
A list of table IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by table name.
OutputFile string
File name where to save data source results (after running pulumi preview).
InstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of OTS instance.
Ids Changes to this property will trigger replacement. []string
A list of table IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by table name.
OutputFile string
File name where to save data source results (after running pulumi preview).
instanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of OTS instance.
ids Changes to this property will trigger replacement. List<String>
A list of table IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by table name.
outputFile String
File name where to save data source results (after running pulumi preview).
instanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of OTS instance.
ids Changes to this property will trigger replacement. string[]
A list of table IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by table name.
outputFile string
File name where to save data source results (after running pulumi preview).
instance_name
This property is required.
Changes to this property will trigger replacement.
str
The name of OTS instance.
ids Changes to this property will trigger replacement. Sequence[str]
A list of table IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by table name.
output_file str
File name where to save data source results (after running pulumi preview).
instanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of OTS instance.
ids Changes to this property will trigger replacement. List<String>
A list of table IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by table name.
outputFile String
File name where to save data source results (after running pulumi preview).

getTables Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
A list of table IDs.
InstanceName string
The OTS instance name.
Names List<string>
A list of table names.
Tables List<Pulumi.AliCloud.Oss.Outputs.GetTablesTable>
A list of tables. Each element contains the following attributes:
NameRegex string
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of table IDs.
InstanceName string
The OTS instance name.
Names []string
A list of table names.
Tables []GetTablesTable
A list of tables. Each element contains the following attributes:
NameRegex string
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of table IDs.
instanceName String
The OTS instance name.
names List<String>
A list of table names.
tables List<GetTablesTable>
A list of tables. Each element contains the following attributes:
nameRegex String
outputFile String
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of table IDs.
instanceName string
The OTS instance name.
names string[]
A list of table names.
tables GetTablesTable[]
A list of tables. Each element contains the following attributes:
nameRegex string
outputFile string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of table IDs.
instance_name str
The OTS instance name.
names Sequence[str]
A list of table names.
tables Sequence[GetTablesTable]
A list of tables. Each element contains the following attributes:
name_regex str
output_file str
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of table IDs.
instanceName String
The OTS instance name.
names List<String>
A list of table names.
tables List<Property Map>
A list of tables. Each element contains the following attributes:
nameRegex String
outputFile String

Supporting Types

GetTablesTable

DefinedColumns This property is required. List<Pulumi.AliCloud.Oss.Inputs.GetTablesTableDefinedColumn>
Id This property is required. string
ID of the table. The value is <instance_name>:<table_name>.
InstanceName This property is required. string
The name of OTS instance.
MaxVersion This property is required. int
The maximum number of versions stored in this table.
PrimaryKeys This property is required. List<Pulumi.AliCloud.Oss.Inputs.GetTablesTablePrimaryKey>
The property of TableMeta which indicates the structure information of a table.
TableName This property is required. string
The table name of the OTS which could not be changed.
TimeToLive This property is required. int
The retention time of data stored in this table.
DefinedColumns This property is required. []GetTablesTableDefinedColumn
Id This property is required. string
ID of the table. The value is <instance_name>:<table_name>.
InstanceName This property is required. string
The name of OTS instance.
MaxVersion This property is required. int
The maximum number of versions stored in this table.
PrimaryKeys This property is required. []GetTablesTablePrimaryKey
The property of TableMeta which indicates the structure information of a table.
TableName This property is required. string
The table name of the OTS which could not be changed.
TimeToLive This property is required. int
The retention time of data stored in this table.
definedColumns This property is required. List<GetTablesTableDefinedColumn>
id This property is required. String
ID of the table. The value is <instance_name>:<table_name>.
instanceName This property is required. String
The name of OTS instance.
maxVersion This property is required. Integer
The maximum number of versions stored in this table.
primaryKeys This property is required. List<GetTablesTablePrimaryKey>
The property of TableMeta which indicates the structure information of a table.
tableName This property is required. String
The table name of the OTS which could not be changed.
timeToLive This property is required. Integer
The retention time of data stored in this table.
definedColumns This property is required. GetTablesTableDefinedColumn[]
id This property is required. string
ID of the table. The value is <instance_name>:<table_name>.
instanceName This property is required. string
The name of OTS instance.
maxVersion This property is required. number
The maximum number of versions stored in this table.
primaryKeys This property is required. GetTablesTablePrimaryKey[]
The property of TableMeta which indicates the structure information of a table.
tableName This property is required. string
The table name of the OTS which could not be changed.
timeToLive This property is required. number
The retention time of data stored in this table.
defined_columns This property is required. Sequence[GetTablesTableDefinedColumn]
id This property is required. str
ID of the table. The value is <instance_name>:<table_name>.
instance_name This property is required. str
The name of OTS instance.
max_version This property is required. int
The maximum number of versions stored in this table.
primary_keys This property is required. Sequence[GetTablesTablePrimaryKey]
The property of TableMeta which indicates the structure information of a table.
table_name This property is required. str
The table name of the OTS which could not be changed.
time_to_live This property is required. int
The retention time of data stored in this table.
definedColumns This property is required. List<Property Map>
id This property is required. String
ID of the table. The value is <instance_name>:<table_name>.
instanceName This property is required. String
The name of OTS instance.
maxVersion This property is required. Number
The maximum number of versions stored in this table.
primaryKeys This property is required. List<Property Map>
The property of TableMeta which indicates the structure information of a table.
tableName This property is required. String
The table name of the OTS which could not be changed.
timeToLive This property is required. Number
The retention time of data stored in this table.

GetTablesTableDefinedColumn

Name This property is required. string
Type This property is required. string
Name This property is required. string
Type This property is required. string
name This property is required. String
type This property is required. String
name This property is required. string
type This property is required. string
name This property is required. str
type This property is required. str
name This property is required. String
type This property is required. String

GetTablesTablePrimaryKey

Name This property is required. string
Type This property is required. string
Name This property is required. string
Type This property is required. string
name This property is required. String
type This property is required. String
name This property is required. string
type This property is required. string
name This property is required. str
type This property is required. str
name This property is required. String
type This property is required. String

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi