Class GetTables
Inheritance
System.Object
GetTables
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Oss
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetTables
Methods
View SourceInvokeAsync(GetTablesArgs, InvokeOptions)
This data source provides the ots tables of the current Alibaba Cloud user.
NOTE: Available in v1.40.0+.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var tablesDs = Output.Create(AliCloud.Oss.GetTables.InvokeAsync(new AliCloud.Oss.GetTablesArgs
{
InstanceName = "sample-instance",
NameRegex = "sample-table",
OutputFile = "tables.txt",
}));
this.FirstTableId = tablesDs.Apply(tablesDs => tablesDs.Tables[0].Id);
}
[Output("firstTableId")]
public Output<string> FirstTableId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetTablesResult> InvokeAsync(GetTablesArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTablesArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetTablesResult> |