Table Args
data class TableArgs(val plan: Output<Either<String, TablePlanEnum>>? = null, val resourceGroupName: Output<String>? = null, val restoredLogs: Output<RestoredLogsArgs>? = null, val retentionInDays: Output<Int>? = null, val schema: Output<SchemaArgs>? = null, val searchResults: Output<SearchResultsArgs>? = null, val tableName: Output<String>? = null, val totalRetentionInDays: Output<Int>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<TableArgs>
Workspace data table definition. API Version: 2021-12-01-preview.
Example Usage
TablesUpsert
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var table = new AzureNative.OperationalInsights.Table("table", new()
{
ResourceGroupName = "oiautorest6685",
RetentionInDays = 45,
Schema = new AzureNative.OperationalInsights.Inputs.SchemaArgs
{
Columns = new[]
{
new AzureNative.OperationalInsights.Inputs.ColumnArgs
{
Name = "MyNewColumn",
Type = "guid",
},
},
Name = "AzureNetworkFlow",
},
TableName = "AzureNetworkFlow",
TotalRetentionInDays = 70,
WorkspaceName = "oiautorest6685",
});
});
Content copied to clipboard
package main
import (
operationalinsights "github.com/pulumi/pulumi-azure-native-sdk/operationalinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := operationalinsights.NewTable(ctx, "table", &operationalinsights.TableArgs{
ResourceGroupName: pulumi.String("oiautorest6685"),
RetentionInDays: pulumi.Int(45),
Schema: operationalinsights.SchemaResponse{
Columns: operationalinsights.ColumnArray{
&operationalinsights.ColumnArgs{
Name: pulumi.String("MyNewColumn"),
Type: pulumi.String("guid"),
},
},
Name: pulumi.String("AzureNetworkFlow"),
},
TableName: pulumi.String("AzureNetworkFlow"),
TotalRetentionInDays: pulumi.Int(70),
WorkspaceName: pulumi.String("oiautorest6685"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.operationalinsights.Table;
import com.pulumi.azurenative.operationalinsights.TableArgs;
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) {
var table = new Table("table", TableArgs.builder()
.resourceGroupName("oiautorest6685")
.retentionInDays(45)
.schema(Map.ofEntries(
Map.entry("columns", Map.ofEntries(
Map.entry("name", "MyNewColumn"),
Map.entry("type", "guid")
)),
Map.entry("name", "AzureNetworkFlow")
))
.tableName("AzureNetworkFlow")
.totalRetentionInDays(70)
.workspaceName("oiautorest6685")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:operationalinsights:Table AzureNetworkFlow /subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/AzureNetworkFlow
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(plan: Output<Either<String, TablePlanEnum>>? = null, resourceGroupName: Output<String>? = null, restoredLogs: Output<RestoredLogsArgs>? = null, retentionInDays: Output<Int>? = null, schema: Output<SchemaArgs>? = null, searchResults: Output<SearchResultsArgs>? = null, tableName: Output<String>? = null, totalRetentionInDays: Output<Int>? = null, workspaceName: Output<String>? = null)
Properties
Link copied to clipboard
Instruct the system how to handle and charge the logs ingested to this table.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Parameters of the restore operation that initiated this table.
Link copied to clipboard
The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
Link copied to clipboard
Table schema.
Link copied to clipboard
Parameters of the search job that initiated this table.
Link copied to clipboard
The table total retention in days, between 4 and 2555. Setting this property to -1 will default to table retention.
Link copied to clipboard
The name of the workspace.