azure-native.operationalinsights.DataExport
Explore with Pulumi AI
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 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
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: "string",
ResourceId: "string",
TableNames: []string{
"string",
},
WorkspaceName: "string",
CreatedDate: "string",
DataExportId: "string",
DataExportName: "string",
Enable: false,
EventHubName: "string",
LastModifiedDate: "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
The DataExport resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Id string - The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- Table
Names List<string> - An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- Workspace
Name string - The name of the workspace.
- Created
Date string - The latest data export rule modification time.
- Data
Export stringId - The data export rule ID.
- Data
Export stringName - The data export rule name.
- Enable bool
- Active when enabled.
- Event
Hub stringName - Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- Last
Modified stringDate - Date and time when the export was last modified.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Id string - The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- Table
Names []string - An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- Workspace
Name string - The name of the workspace.
- Created
Date string - The latest data export rule modification time.
- Data
Export stringId - The data export rule ID.
- Data
Export stringName - The data export rule name.
- Enable bool
- Active when enabled.
- Event
Hub stringName - Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- Last
Modified stringDate - Date and time when the export was last modified.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Id String - The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- table
Names List<String> - An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- workspace
Name String - The name of the workspace.
- created
Date String - The latest data export rule modification time.
- data
Export StringId - The data export rule ID.
- data
Export StringName - The data export rule name.
- enable Boolean
- Active when enabled.
- event
Hub StringName - Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- last
Modified StringDate - Date and time when the export was last modified.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- resource
Id string - The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- table
Names string[] - An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- workspace
Name string - The name of the workspace.
- created
Date string - The latest data export rule modification time.
- data
Export stringId - The data export rule ID.
- data
Export stringName - The data export rule name.
- enable boolean
- Active when enabled.
- event
Hub stringName - Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- last
Modified 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.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Id String - The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
- table
Names List<String> - An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
- workspace
Name String - The name of the workspace.
- created
Date String - The latest data export rule modification time.
- data
Export StringId - The data export rule ID.
- data
Export StringName - The data export rule name.
- enable Boolean
- Active when enabled.
- event
Hub StringName - Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
- last
Modified 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/00000000-0000-0000-0000-00000000000/resourcegroups/RgTest1/providers/microsoft.operationalinsights/workspaces/DeWnTest1234/export/export1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0