TableArgs

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. Uses Azure REST API version 2023-09-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01. Other available API versions: 2021-12-01-preview, 2022-10-01, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native operationalinsights [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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 = AzureNative.OperationalInsights.ColumnTypeEnum.Guid,
},
},
Name = "AzureNetworkFlow",
},
TableName = "AzureNetworkFlow",
TotalRetentionInDays = 70,
WorkspaceName = "oiautorest6685",
});
});
package main
import (
operationalinsights "github.com/pulumi/pulumi-azure-native-sdk/operationalinsights/v2"
"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.SchemaArgs{
Columns: operationalinsights.ColumnArray{
&operationalinsights.ColumnArgs{
Name: pulumi.String("MyNewColumn"),
Type: pulumi.String(operationalinsights.ColumnTypeEnumGuid),
},
},
Name: pulumi.String("AzureNetworkFlow"),
},
TableName: pulumi.String("AzureNetworkFlow"),
TotalRetentionInDays: pulumi.Int(70),
WorkspaceName: pulumi.String("oiautorest6685"),
})
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.azurenative.operationalinsights.Table;
import com.pulumi.azurenative.operationalinsights.TableArgs;
import com.pulumi.azurenative.operationalinsights.inputs.SchemaArgs;
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(SchemaArgs.builder()
.columns(ColumnArgs.builder()
.name("MyNewColumn")
.type("guid")
.build())
.name("AzureNetworkFlow")
.build())
.tableName("AzureNetworkFlow")
.totalRetentionInDays(70)
.workspaceName("oiautorest6685")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:operationalinsights:Table AzureNetworkFlow /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}

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
val plan: Output<Either<String, TablePlanEnum>>? = null

Instruct the system how to handle and charge the logs ingested to this table.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val restoredLogs: Output<RestoredLogsArgs>? = null

Parameters of the restore operation that initiated this table.

Link copied to clipboard
val retentionInDays: Output<Int>? = null

The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.

Link copied to clipboard
val schema: Output<SchemaArgs>? = null

Table schema.

Link copied to clipboard
val searchResults: Output<SearchResultsArgs>? = null

Parameters of the search job that initiated this table.

Link copied to clipboard
val tableName: Output<String>? = null

The name of the table.

Link copied to clipboard
val totalRetentionInDays: Output<Int>? = null

The table total retention in days, between 4 and 4383. Setting this property to -1 will default to table retention.

Link copied to clipboard
val workspaceName: Output<String>? = null

The name of the workspace.

Functions

Link copied to clipboard
open override fun toJava(): TableArgs