DataExport

class DataExport : KotlinCustomResource

The top level data export resource container. API Version: 2020-08-01.

Example Usage

DataExportCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataExport = new AzureNative.OperationalInsights.DataExport("dataExport", new()
{
DataExportName = "export1",
ResourceGroupName = "RgTest1",
ResourceId = "/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test",
TableNames = new[]
{
"Heartbeat",
},
WorkspaceName = "DeWnTest1234",
});
});
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.NewDataExport(ctx, "dataExport", &operationalinsights.DataExportArgs{
DataExportName: pulumi.String("export1"),
ResourceGroupName: pulumi.String("RgTest1"),
ResourceId: pulumi.String("/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test"),
TableNames: pulumi.StringArray{
pulumi.String("Heartbeat"),
},
WorkspaceName: pulumi.String("DeWnTest1234"),
})
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.DataExport;
import com.pulumi.azurenative.operationalinsights.DataExportArgs;
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 dataExport = new DataExport("dataExport", DataExportArgs.builder()
.dataExportName("export1")
.resourceGroupName("RgTest1")
.resourceId("/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test")
.tableNames("Heartbeat")
.workspaceName("DeWnTest1234")
.build());
}
}

Import

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

$ pulumi import azure-native:operationalinsights:DataExport export1 /subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/RgTest1/providers/microsoft.operationalinsights/workspaces/DeWnTest1234/export/export1

Properties

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

The latest data export rule modification time.

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

The data export rule ID.

Link copied to clipboard
val enable: Output<Boolean>?

Active when enabled.

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

Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.

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

Date and time when the export was last modified.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceId: Output<String>

The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.

Link copied to clipboard
val tableNames: Output<List<String>>

An array of tables to export, for example: “Heartbeat, SecurityEvent”.

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>