azure-native.operationalinsights.DataExport
Explore with Pulumi AI
The top level data export resource container. Azure REST API version: 2020-08-01. Prior API version in Azure Native 1.x: 2020-08-01.
Other available API versions: 2023-09-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/v2"
	"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 * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const dataExport = new azure_native.operationalinsights.DataExport("dataExport", {
    dataExportName: "export1",
    resourceGroupName: "RgTest1",
    resourceId: "/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test",
    tableNames: ["Heartbeat"],
    workspaceName: "DeWnTest1234",
});
import pulumi
import pulumi_azure_native as azure_native
data_export = azure_native.operationalinsights.DataExport("dataExport",
    data_export_name="export1",
    resource_group_name="RgTest1",
    resource_id="/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test",
    table_names=["Heartbeat"],
    workspace_name="DeWnTest1234")
resources:
  dataExport:
    type: azure-native:operationalinsights:DataExport
    properties:
      dataExportName: export1
      resourceGroupName: RgTest1
      resourceId: /subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test
      tableNames:
        - Heartbeat
      workspaceName: DeWnTest1234
Create DataExport Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataExport(name: string, args: DataExportArgs, opts?: CustomResourceOptions);@overload
def DataExport(resource_name: str,
               args: DataExportArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def DataExport(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               resource_group_name: Optional[str] = None,
               resource_id: Optional[str] = None,
               table_names: Optional[Sequence[str]] = None,
               workspace_name: Optional[str] = None,
               created_date: Optional[str] = None,
               data_export_id: Optional[str] = None,
               data_export_name: Optional[str] = None,
               enable: Optional[bool] = None,
               event_hub_name: Optional[str] = None,
               last_modified_date: Optional[str] = None)func NewDataExport(ctx *Context, name string, args DataExportArgs, opts ...ResourceOption) (*DataExport, error)public DataExport(string name, DataExportArgs args, CustomResourceOptions? opts = null)
public DataExport(String name, DataExportArgs args)
public DataExport(String name, DataExportArgs args, CustomResourceOptions options)
type: azure-native:operationalinsights:DataExport
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataExportArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dataExportResource = new AzureNative.OperationalInsights.DataExport("dataExportResource", new()
{
    ResourceGroupName = "string",
    ResourceId = "string",
    TableNames = new[]
    {
        "string",
    },
    WorkspaceName = "string",
    CreatedDate = "string",
    DataExportId = "string",
    DataExportName = "string",
    Enable = false,
    EventHubName = "string",
    LastModifiedDate = "string",
});
example, err := operationalinsights.NewDataExport(ctx, "dataExportResource", &operationalinsights.DataExportArgs{
	ResourceGroupName: pulumi.String("string"),
	ResourceId:        pulumi.String("string"),
	TableNames: pulumi.StringArray{
		pulumi.String("string"),
	},
	WorkspaceName:    pulumi.String("string"),
	CreatedDate:      pulumi.String("string"),
	DataExportId:     pulumi.String("string"),
	DataExportName:   pulumi.String("string"),
	Enable:           pulumi.Bool(false),
	EventHubName:     pulumi.String("string"),
	LastModifiedDate: pulumi.String("string"),
})
var dataExportResource = new DataExport("dataExportResource", DataExportArgs.builder()
    .resourceGroupName("string")
    .resourceId("string")
    .tableNames("string")
    .workspaceName("string")
    .createdDate("string")
    .dataExportId("string")
    .dataExportName("string")
    .enable(false)
    .eventHubName("string")
    .lastModifiedDate("string")
    .build());
data_export_resource = azure_native.operationalinsights.DataExport("dataExportResource",
    resource_group_name="string",
    resource_id="string",
    table_names=["string"],
    workspace_name="string",
    created_date="string",
    data_export_id="string",
    data_export_name="string",
    enable=False,
    event_hub_name="string",
    last_modified_date="string")
const dataExportResource = new azure_native.operationalinsights.DataExport("dataExportResource", {
    resourceGroupName: "string",
    resourceId: "string",
    tableNames: ["string"],
    workspaceName: "string",
    createdDate: "string",
    dataExportId: "string",
    dataExportName: "string",
    enable: false,
    eventHubName: "string",
    lastModifiedDate: "string",
});
type: azure-native:operationalinsights:DataExport
properties:
    createdDate: string
    dataExportId: string
    dataExportName: string
    enable: false
    eventHubName: string
    lastModifiedDate: string
    resourceGroupName: string
    resourceId: string
    tableNames:
        - string
    workspaceName: string
DataExport Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DataExport resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceId string
- The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- TableNames List<string>
- An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- WorkspaceName string
- The name of the workspace.
- CreatedDate string
- The latest data export rule modification time.
- DataExport stringId 
- The data export rule ID.
- DataExport stringName 
- The data export rule name.
- Enable bool
- Active when enabled.
- EventHub stringName 
- Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- LastModified stringDate 
- Date and time when the export was last modified.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceId string
- The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- TableNames []string
- An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- WorkspaceName string
- The name of the workspace.
- CreatedDate string
- The latest data export rule modification time.
- DataExport stringId 
- The data export rule ID.
- DataExport stringName 
- The data export rule name.
- Enable bool
- Active when enabled.
- EventHub stringName 
- Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- LastModified stringDate 
- Date and time when the export was last modified.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceId String
- The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- tableNames List<String>
- An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- workspaceName String
- The name of the workspace.
- createdDate String
- The latest data export rule modification time.
- dataExport StringId 
- The data export rule ID.
- dataExport StringName 
- The data export rule name.
- enable Boolean
- Active when enabled.
- eventHub StringName 
- Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- lastModified StringDate 
- Date and time when the export was last modified.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- resourceId string
- The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- tableNames string[]
- An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- workspaceName string
- The name of the workspace.
- createdDate string
- The latest data export rule modification time.
- dataExport stringId 
- The data export rule ID.
- dataExport stringName 
- The data export rule name.
- enable boolean
- Active when enabled.
- eventHub stringName 
- Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- lastModified stringDate 
- Date and time when the export was last modified.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- resource_id str
- The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- table_names Sequence[str]
- An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- workspace_name str
- The name of the workspace.
- created_date str
- The latest data export rule modification time.
- data_export_ strid 
- The data export rule ID.
- data_export_ strname 
- The data export rule name.
- enable bool
- Active when enabled.
- event_hub_ strname 
- Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- last_modified_ strdate 
- Date and time when the export was last modified.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceId String
- The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- tableNames List<String>
- An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- workspaceName String
- The name of the workspace.
- createdDate String
- The latest data export rule modification time.
- dataExport StringId 
- The data export rule ID.
- dataExport StringName 
- The data export rule name.
- enable Boolean
- Active when enabled.
- eventHub StringName 
- Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- lastModified StringDate 
- Date and time when the export was last modified.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataExport resource produces the following output properties:
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:operationalinsights:DataExport export1 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0