Data Export Args
data class DataExportArgs(val createdDate: Output<String>? = null, val dataExportId: Output<String>? = null, val dataExportName: Output<String>? = null, val enable: Output<Boolean>? = null, val eventHubName: Output<String>? = null, val lastModifiedDate: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceId: Output<String>? = null, val tableNames: Output<List<String>>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<DataExportArgs>
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(createdDate: Output<String>? = null, dataExportId: Output<String>? = null, dataExportName: Output<String>? = null, enable: Output<Boolean>? = null, eventHubName: Output<String>? = null, lastModifiedDate: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceId: Output<String>? = null, tableNames: Output<List<String>>? = null, workspaceName: Output<String>? = null)
Properties
Link copied to clipboard
The latest data export rule modification time.
Link copied to clipboard
The data export rule ID.
Link copied to clipboard
The data export rule name.
Link copied to clipboard
Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
Link copied to clipboard
Date and time when the export was last modified.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
Link copied to clipboard
An array of tables to export, for example: “Heartbeat, SecurityEvent”.
Link copied to clipboard
The name of the workspace.