Table Args
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
Properties
Instruct the system how to handle and charge the logs ingested to this table.
The name of the resource group. The name is case insensitive.
Parameters of the restore operation that initiated this table.
The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
Table schema.
Parameters of the search job that initiated this table.
The table total retention in days, between 4 and 4383. Setting this property to -1 will default to table retention.
The name of the workspace.