1. Packages
  2. Azure Native v2
  3. API Docs
  4. networkanalytics
  5. DataType
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.networkanalytics.DataType

Explore with Pulumi AI

The data type resource. Azure REST API version: 2023-11-15.

Example Usage

DataTypes_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var dataType = new AzureNative.NetworkAnalytics.DataType("dataType", new()
    {
        DataProductName = "dataproduct01",
        DataTypeName = "datatypename",
        DatabaseCacheRetention = 23,
        DatabaseRetention = 6,
        ResourceGroupName = "aoiresourceGroupName",
        State = "STARTED",
        StorageOutputRetention = 27,
    });

});
Copy
package main

import (
	networkanalytics "github.com/pulumi/pulumi-azure-native-sdk/networkanalytics/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := networkanalytics.NewDataType(ctx, "dataType", &networkanalytics.DataTypeArgs{
			DataProductName:        pulumi.String("dataproduct01"),
			DataTypeName:           pulumi.String("datatypename"),
			DatabaseCacheRetention: pulumi.Int(23),
			DatabaseRetention:      pulumi.Int(6),
			ResourceGroupName:      pulumi.String("aoiresourceGroupName"),
			State:                  pulumi.String("STARTED"),
			StorageOutputRetention: pulumi.Int(27),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.networkanalytics.DataType;
import com.pulumi.azurenative.networkanalytics.DataTypeArgs;
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 dataType = new DataType("dataType", DataTypeArgs.builder()
            .dataProductName("dataproduct01")
            .dataTypeName("datatypename")
            .databaseCacheRetention(23)
            .databaseRetention(6)
            .resourceGroupName("aoiresourceGroupName")
            .state("STARTED")
            .storageOutputRetention(27)
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const dataType = new azure_native.networkanalytics.DataType("dataType", {
    dataProductName: "dataproduct01",
    dataTypeName: "datatypename",
    databaseCacheRetention: 23,
    databaseRetention: 6,
    resourceGroupName: "aoiresourceGroupName",
    state: "STARTED",
    storageOutputRetention: 27,
});
Copy
import pulumi
import pulumi_azure_native as azure_native

data_type = azure_native.networkanalytics.DataType("dataType",
    data_product_name="dataproduct01",
    data_type_name="datatypename",
    database_cache_retention=23,
    database_retention=6,
    resource_group_name="aoiresourceGroupName",
    state="STARTED",
    storage_output_retention=27)
Copy
resources:
  dataType:
    type: azure-native:networkanalytics:DataType
    properties:
      dataProductName: dataproduct01
      dataTypeName: datatypename
      databaseCacheRetention: 23
      databaseRetention: 6
      resourceGroupName: aoiresourceGroupName
      state: STARTED
      storageOutputRetention: 27
Copy

DataTypes_Create_MaximumSet_Gen - generated by [MinimumSet] rule_MinimumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var dataType = new AzureNative.NetworkAnalytics.DataType("dataType", new()
    {
        DataProductName = "dataproduct01",
        DataTypeName = "datatypename",
        ResourceGroupName = "aoiresourceGroupName",
    });

});
Copy
package main

import (
	networkanalytics "github.com/pulumi/pulumi-azure-native-sdk/networkanalytics/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := networkanalytics.NewDataType(ctx, "dataType", &networkanalytics.DataTypeArgs{
			DataProductName:   pulumi.String("dataproduct01"),
			DataTypeName:      pulumi.String("datatypename"),
			ResourceGroupName: pulumi.String("aoiresourceGroupName"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.networkanalytics.DataType;
import com.pulumi.azurenative.networkanalytics.DataTypeArgs;
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 dataType = new DataType("dataType", DataTypeArgs.builder()
            .dataProductName("dataproduct01")
            .dataTypeName("datatypename")
            .resourceGroupName("aoiresourceGroupName")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const dataType = new azure_native.networkanalytics.DataType("dataType", {
    dataProductName: "dataproduct01",
    dataTypeName: "datatypename",
    resourceGroupName: "aoiresourceGroupName",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

data_type = azure_native.networkanalytics.DataType("dataType",
    data_product_name="dataproduct01",
    data_type_name="datatypename",
    resource_group_name="aoiresourceGroupName")
Copy
resources:
  dataType:
    type: azure-native:networkanalytics:DataType
    properties:
      dataProductName: dataproduct01
      dataTypeName: datatypename
      resourceGroupName: aoiresourceGroupName
Copy

Create DataType Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DataType(name: string, args: DataTypeArgs, opts?: CustomResourceOptions);
@overload
def DataType(resource_name: str,
             args: DataTypeArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def DataType(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             data_product_name: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             data_type_name: Optional[str] = None,
             database_cache_retention: Optional[int] = None,
             database_retention: Optional[int] = None,
             state: Optional[Union[str, DataTypeState]] = None,
             storage_output_retention: Optional[int] = None)
func NewDataType(ctx *Context, name string, args DataTypeArgs, opts ...ResourceOption) (*DataType, error)
public DataType(string name, DataTypeArgs args, CustomResourceOptions? opts = null)
public DataType(String name, DataTypeArgs args)
public DataType(String name, DataTypeArgs args, CustomResourceOptions options)
type: azure-native:networkanalytics:DataType
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DataTypeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DataTypeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DataTypeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DataTypeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DataTypeArgs
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 dataTypeResource = new AzureNative.Networkanalytics.DataType("dataTypeResource", new()
{
    DataProductName = "string",
    ResourceGroupName = "string",
    DataTypeName = "string",
    DatabaseCacheRetention = 0,
    DatabaseRetention = 0,
    State = "string",
    StorageOutputRetention = 0,
});
Copy
example, err := networkanalytics.NewDataType(ctx, "dataTypeResource", &networkanalytics.DataTypeArgs{
	DataProductName:        "string",
	ResourceGroupName:      "string",
	DataTypeName:           "string",
	DatabaseCacheRetention: 0,
	DatabaseRetention:      0,
	State:                  "string",
	StorageOutputRetention: 0,
})
Copy
var dataTypeResource = new DataType("dataTypeResource", DataTypeArgs.builder()
    .dataProductName("string")
    .resourceGroupName("string")
    .dataTypeName("string")
    .databaseCacheRetention(0)
    .databaseRetention(0)
    .state("string")
    .storageOutputRetention(0)
    .build());
Copy
data_type_resource = azure_native.networkanalytics.DataType("dataTypeResource",
    data_product_name=string,
    resource_group_name=string,
    data_type_name=string,
    database_cache_retention=0,
    database_retention=0,
    state=string,
    storage_output_retention=0)
Copy
const dataTypeResource = new azure_native.networkanalytics.DataType("dataTypeResource", {
    dataProductName: "string",
    resourceGroupName: "string",
    dataTypeName: "string",
    databaseCacheRetention: 0,
    databaseRetention: 0,
    state: "string",
    storageOutputRetention: 0,
});
Copy
type: azure-native:networkanalytics:DataType
properties:
    dataProductName: string
    dataTypeName: string
    databaseCacheRetention: 0
    databaseRetention: 0
    resourceGroupName: string
    state: string
    storageOutputRetention: 0
Copy

DataType 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 DataType resource accepts the following input properties:

DataProductName
This property is required.
Changes to this property will trigger replacement.
string
The data product resource name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
DataTypeName Changes to this property will trigger replacement. string
The data type name.
DatabaseCacheRetention int
Field for database cache retention in days.
DatabaseRetention int
Field for database data retention in days.
State string | Pulumi.AzureNative.NetworkAnalytics.DataTypeState
State of data type.
StorageOutputRetention int
Field for storage output retention in days.
DataProductName
This property is required.
Changes to this property will trigger replacement.
string
The data product resource name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
DataTypeName Changes to this property will trigger replacement. string
The data type name.
DatabaseCacheRetention int
Field for database cache retention in days.
DatabaseRetention int
Field for database data retention in days.
State string | DataTypeStateEnum
State of data type.
StorageOutputRetention int
Field for storage output retention in days.
dataProductName
This property is required.
Changes to this property will trigger replacement.
String
The data product resource name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
dataTypeName Changes to this property will trigger replacement. String
The data type name.
databaseCacheRetention Integer
Field for database cache retention in days.
databaseRetention Integer
Field for database data retention in days.
state String | DataTypeState
State of data type.
storageOutputRetention Integer
Field for storage output retention in days.
dataProductName
This property is required.
Changes to this property will trigger replacement.
string
The data product resource name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
dataTypeName Changes to this property will trigger replacement. string
The data type name.
databaseCacheRetention number
Field for database cache retention in days.
databaseRetention number
Field for database data retention in days.
state string | DataTypeState
State of data type.
storageOutputRetention number
Field for storage output retention in days.
data_product_name
This property is required.
Changes to this property will trigger replacement.
str
The data product resource name
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
data_type_name Changes to this property will trigger replacement. str
The data type name.
database_cache_retention int
Field for database cache retention in days.
database_retention int
Field for database data retention in days.
state str | DataTypeState
State of data type.
storage_output_retention int
Field for storage output retention in days.
dataProductName
This property is required.
Changes to this property will trigger replacement.
String
The data product resource name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
dataTypeName Changes to this property will trigger replacement. String
The data type name.
databaseCacheRetention Number
Field for database cache retention in days.
databaseRetention Number
Field for database data retention in days.
state String | "Stopped" | "Running"
State of data type.
storageOutputRetention Number
Field for storage output retention in days.

Outputs

All input properties are implicitly available as output properties. Additionally, the DataType resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
ProvisioningState string
Latest provisioning state of data product.
StateReason string
Reason for the state of data type.
SystemData Pulumi.AzureNative.NetworkAnalytics.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
VisualizationUrl string
Url for data visualization.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
ProvisioningState string
Latest provisioning state of data product.
StateReason string
Reason for the state of data type.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
VisualizationUrl string
Url for data visualization.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
provisioningState String
Latest provisioning state of data product.
stateReason String
Reason for the state of data type.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
visualizationUrl String
Url for data visualization.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
provisioningState string
Latest provisioning state of data product.
stateReason string
Reason for the state of data type.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
visualizationUrl string
Url for data visualization.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
provisioning_state str
Latest provisioning state of data product.
state_reason str
Reason for the state of data type.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
visualization_url str
Url for data visualization.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
provisioningState String
Latest provisioning state of data product.
stateReason String
Reason for the state of data type.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
visualizationUrl String
Url for data visualization.

Supporting Types

DataTypeState
, DataTypeStateArgs

Stopped
StoppedField to specify stopped state.
Running
RunningField to specify running state.
DataTypeStateStopped
StoppedField to specify stopped state.
DataTypeStateRunning
RunningField to specify running state.
Stopped
StoppedField to specify stopped state.
Running
RunningField to specify running state.
Stopped
StoppedField to specify stopped state.
Running
RunningField to specify running state.
STOPPED
StoppedField to specify stopped state.
RUNNING
RunningField to specify running state.
"Stopped"
StoppedField to specify stopped state.
"Running"
RunningField to specify running state.

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Import

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

$ pulumi import azure-native:networkanalytics:DataType datatypeName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/dataTypes/{dataTypeName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0