Table
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",
});
});
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
})
}
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());
}
}
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
Properties
The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays)
The timestamp that table plan was last modified (UTC).
Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded.
Parameters of the restore operation that initiated this table.
Search job execution statistics.
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.
Metadata pertaining to creation and last modification of the resource.
The table total retention in days, between 4 and 2555. Setting this property to -1 will default to table retention.