1. Packages
  2. Azure Native
  3. API Docs
  4. operationalinsights
  5. DataExport
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.8.0 published on Monday, Sep 18, 2023 by Pulumi

azure-native.operationalinsights.DataExport

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.8.0 published on Monday, Sep 18, 2023 by Pulumi

    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

    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 (
    	"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 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")
    
    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",
    });
    
    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

    new DataExport(name: string, args: DataExportArgs, opts?: CustomResourceOptions);
    @overload
    def DataExport(resource_name: str,
                   opts: Optional[ResourceOptions] = 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,
                   resource_group_name: Optional[str] = None,
                   resource_id: Optional[str] = None,
                   table_names: Optional[Sequence[str]] = None,
                   workspace_name: Optional[str] = None)
    @overload
    def DataExport(resource_name: str,
                   args: DataExportArgs,
                   opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The DataExport resource accepts the following input properties:

    ResourceGroupName string

    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.

    DataExportId string

    The data export rule ID.

    DataExportName string

    The data export rule name.

    Enable bool

    Active when enabled.

    EventHubName string

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

    LastModifiedDate string

    Date and time when the export was last modified.

    ResourceGroupName string

    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.

    DataExportId string

    The data export rule ID.

    DataExportName string

    The data export rule name.

    Enable bool

    Active when enabled.

    EventHubName string

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

    LastModifiedDate string

    Date and time when the export was last modified.

    resourceGroupName String

    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.

    dataExportId String

    The data export rule ID.

    dataExportName String

    The data export rule name.

    enable Boolean

    Active when enabled.

    eventHubName String

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

    lastModifiedDate String

    Date and time when the export was last modified.

    resourceGroupName string

    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.

    dataExportId string

    The data export rule ID.

    dataExportName string

    The data export rule name.

    enable boolean

    Active when enabled.

    eventHubName string

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

    lastModifiedDate string

    Date and time when the export was last modified.

    resource_group_name str

    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_id str

    The data export rule ID.

    data_export_name str

    The data export rule name.

    enable bool

    Active when enabled.

    event_hub_name str

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

    last_modified_date str

    Date and time when the export was last modified.

    resourceGroupName String

    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.

    dataExportId String

    The data export rule ID.

    dataExportName String

    The data export rule name.

    enable Boolean

    Active when enabled.

    eventHubName String

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

    lastModifiedDate String

    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:

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The name of the resource

    Type string

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

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The name of the resource

    Type string

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

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The name of the resource

    type String

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

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    The name of the resource

    type string

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

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    The name of the resource

    type str

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

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The name of the resource

    type String

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

    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} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.8.0 published on Monday, Sep 18, 2023 by Pulumi