Table

class Table : KotlinCustomResource

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}

Properties

Link copied to clipboard

The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays)

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The timestamp that table plan was last modified (UTC).

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val plan: Output<String>?

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

Link copied to clipboard

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.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Parameters of the restore operation that initiated this table.

Link copied to clipboard

Search job execution statistics.

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

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

Link copied to clipboard

True - Value originates from workspace retention in days, False - Customer specific.

Link copied to clipboard
val schema: Output<SchemaResponse>?

Table schema.

Link copied to clipboard

Parameters of the search job that initiated this table.

Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard

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

Link copied to clipboard

True - Value originates from retention in days, False - Customer specific.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>