1. Packages
  2. Dynatrace
  3. API Docs
  4. NetworkTraffic
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.NetworkTraffic

Explore with Pulumi AI

Create NetworkTraffic Resource

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

Constructor syntax

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

@overload
def NetworkTraffic(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   host_id: Optional[str] = None,
                   exclude_ip: Optional[NetworkTrafficExcludeIpArgs] = None,
                   exclude_nic: Optional[NetworkTrafficExcludeNicArgs] = None)
func NewNetworkTraffic(ctx *Context, name string, args NetworkTrafficArgs, opts ...ResourceOption) (*NetworkTraffic, error)
public NetworkTraffic(string name, NetworkTrafficArgs args, CustomResourceOptions? opts = null)
public NetworkTraffic(String name, NetworkTrafficArgs args)
public NetworkTraffic(String name, NetworkTrafficArgs args, CustomResourceOptions options)
type: dynatrace:NetworkTraffic
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. NetworkTrafficArgs
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. NetworkTrafficArgs
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. NetworkTrafficArgs
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. NetworkTrafficArgs
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. NetworkTrafficArgs
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 networkTrafficResource = new Dynatrace.NetworkTraffic("networkTrafficResource", new()
{
    HostId = "string",
    ExcludeIp = new Dynatrace.Inputs.NetworkTrafficExcludeIpArgs
    {
        IpAddressForms = new[]
        {
            new Dynatrace.Inputs.NetworkTrafficExcludeIpIpAddressFormArgs
            {
                IpAddress = "string",
            },
        },
    },
    ExcludeNic = new Dynatrace.Inputs.NetworkTrafficExcludeNicArgs
    {
        NicForms = new[]
        {
            new Dynatrace.Inputs.NetworkTrafficExcludeNicNicFormArgs
            {
                Interface = "string",
                Os = "string",
            },
        },
    },
});
Copy
example, err := dynatrace.NewNetworkTraffic(ctx, "networkTrafficResource", &dynatrace.NetworkTrafficArgs{
	HostId: pulumi.String("string"),
	ExcludeIp: &dynatrace.NetworkTrafficExcludeIpArgs{
		IpAddressForms: dynatrace.NetworkTrafficExcludeIpIpAddressFormArray{
			&dynatrace.NetworkTrafficExcludeIpIpAddressFormArgs{
				IpAddress: pulumi.String("string"),
			},
		},
	},
	ExcludeNic: &dynatrace.NetworkTrafficExcludeNicArgs{
		NicForms: dynatrace.NetworkTrafficExcludeNicNicFormArray{
			&dynatrace.NetworkTrafficExcludeNicNicFormArgs{
				Interface: pulumi.String("string"),
				Os:        pulumi.String("string"),
			},
		},
	},
})
Copy
var networkTrafficResource = new NetworkTraffic("networkTrafficResource", NetworkTrafficArgs.builder()
    .hostId("string")
    .excludeIp(NetworkTrafficExcludeIpArgs.builder()
        .ipAddressForms(NetworkTrafficExcludeIpIpAddressFormArgs.builder()
            .ipAddress("string")
            .build())
        .build())
    .excludeNic(NetworkTrafficExcludeNicArgs.builder()
        .nicForms(NetworkTrafficExcludeNicNicFormArgs.builder()
            .interface_("string")
            .os("string")
            .build())
        .build())
    .build());
Copy
network_traffic_resource = dynatrace.NetworkTraffic("networkTrafficResource",
    host_id="string",
    exclude_ip={
        "ip_address_forms": [{
            "ip_address": "string",
        }],
    },
    exclude_nic={
        "nic_forms": [{
            "interface": "string",
            "os": "string",
        }],
    })
Copy
const networkTrafficResource = new dynatrace.NetworkTraffic("networkTrafficResource", {
    hostId: "string",
    excludeIp: {
        ipAddressForms: [{
            ipAddress: "string",
        }],
    },
    excludeNic: {
        nicForms: [{
            "interface": "string",
            os: "string",
        }],
    },
});
Copy
type: dynatrace:NetworkTraffic
properties:
    excludeIp:
        ipAddressForms:
            - ipAddress: string
    excludeNic:
        nicForms:
            - interface: string
              os: string
    hostId: string
Copy

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

HostId
This property is required.
Changes to this property will trigger replacement.
string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
ExcludeIp Pulumiverse.Dynatrace.Inputs.NetworkTrafficExcludeIp
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
ExcludeNic Pulumiverse.Dynatrace.Inputs.NetworkTrafficExcludeNic
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
HostId
This property is required.
Changes to this property will trigger replacement.
string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
ExcludeIp NetworkTrafficExcludeIpArgs
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
ExcludeNic NetworkTrafficExcludeNicArgs
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
hostId
This property is required.
Changes to this property will trigger replacement.
String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
excludeIp NetworkTrafficExcludeIp
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
excludeNic NetworkTrafficExcludeNic
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
hostId
This property is required.
Changes to this property will trigger replacement.
string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
excludeIp NetworkTrafficExcludeIp
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
excludeNic NetworkTrafficExcludeNic
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
host_id
This property is required.
Changes to this property will trigger replacement.
str
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
exclude_ip NetworkTrafficExcludeIpArgs
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
exclude_nic NetworkTrafficExcludeNicArgs
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
hostId
This property is required.
Changes to this property will trigger replacement.
String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
excludeIp Property Map
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
excludeNic Property Map
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing NetworkTraffic Resource

Get an existing NetworkTraffic resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: NetworkTrafficState, opts?: CustomResourceOptions): NetworkTraffic
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        exclude_ip: Optional[NetworkTrafficExcludeIpArgs] = None,
        exclude_nic: Optional[NetworkTrafficExcludeNicArgs] = None,
        host_id: Optional[str] = None) -> NetworkTraffic
func GetNetworkTraffic(ctx *Context, name string, id IDInput, state *NetworkTrafficState, opts ...ResourceOption) (*NetworkTraffic, error)
public static NetworkTraffic Get(string name, Input<string> id, NetworkTrafficState? state, CustomResourceOptions? opts = null)
public static NetworkTraffic get(String name, Output<String> id, NetworkTrafficState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:NetworkTraffic    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ExcludeIp Pulumiverse.Dynatrace.Inputs.NetworkTrafficExcludeIp
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
ExcludeNic Pulumiverse.Dynatrace.Inputs.NetworkTrafficExcludeNic
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
HostId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
ExcludeIp NetworkTrafficExcludeIpArgs
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
ExcludeNic NetworkTrafficExcludeNicArgs
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
HostId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
excludeIp NetworkTrafficExcludeIp
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
excludeNic NetworkTrafficExcludeNic
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
hostId Changes to this property will trigger replacement. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
excludeIp NetworkTrafficExcludeIp
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
excludeNic NetworkTrafficExcludeNic
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
hostId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
exclude_ip NetworkTrafficExcludeIpArgs
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
exclude_nic NetworkTrafficExcludeNicArgs
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
host_id Changes to this property will trigger replacement. str
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
excludeIp Property Map
Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
excludeNic Property Map
Selecting a network interface, you will exclude all network traffic on that interface from being monitored. You can select from the list below what to not monitor, or input it manually using the "other one" option.
hostId Changes to this property will trigger replacement. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.

Supporting Types

NetworkTrafficExcludeIp
, NetworkTrafficExcludeIpArgs

ipAddressForms This property is required. List<Property Map>

NetworkTrafficExcludeIpIpAddressForm
, NetworkTrafficExcludeIpIpAddressFormArgs

IpAddress This property is required. string
IP address
IpAddress This property is required. string
IP address
ipAddress This property is required. String
IP address
ipAddress This property is required. string
IP address
ip_address This property is required. str
IP address
ipAddress This property is required. String
IP address

NetworkTrafficExcludeNic
, NetworkTrafficExcludeNicArgs

NicForms This property is required. []NetworkTrafficExcludeNicNicForm
nicForms This property is required. NetworkTrafficExcludeNicNicForm[]
nicForms This property is required. List<Property Map>

NetworkTrafficExcludeNicNicForm
, NetworkTrafficExcludeNicNicFormArgs

Interface This property is required. string
Network interface
Os This property is required. string
Possible Values: OS_TYPE_AIX, OS_TYPE_DARWIN, OS_TYPE_HPUX, OS_TYPE_LINUX, OS_TYPE_SOLARIS, OS_TYPE_UNKNOWN, OS_TYPE_WINDOWS, OS_TYPE_ZOS
Interface This property is required. string
Network interface
Os This property is required. string
Possible Values: OS_TYPE_AIX, OS_TYPE_DARWIN, OS_TYPE_HPUX, OS_TYPE_LINUX, OS_TYPE_SOLARIS, OS_TYPE_UNKNOWN, OS_TYPE_WINDOWS, OS_TYPE_ZOS
interface_ This property is required. String
Network interface
os This property is required. String
Possible Values: OS_TYPE_AIX, OS_TYPE_DARWIN, OS_TYPE_HPUX, OS_TYPE_LINUX, OS_TYPE_SOLARIS, OS_TYPE_UNKNOWN, OS_TYPE_WINDOWS, OS_TYPE_ZOS
interface This property is required. string
Network interface
os This property is required. string
Possible Values: OS_TYPE_AIX, OS_TYPE_DARWIN, OS_TYPE_HPUX, OS_TYPE_LINUX, OS_TYPE_SOLARIS, OS_TYPE_UNKNOWN, OS_TYPE_WINDOWS, OS_TYPE_ZOS
interface This property is required. str
Network interface
os This property is required. str
Possible Values: OS_TYPE_AIX, OS_TYPE_DARWIN, OS_TYPE_HPUX, OS_TYPE_LINUX, OS_TYPE_SOLARIS, OS_TYPE_UNKNOWN, OS_TYPE_WINDOWS, OS_TYPE_ZOS
interface This property is required. String
Network interface
os This property is required. String
Possible Values: OS_TYPE_AIX, OS_TYPE_DARWIN, OS_TYPE_HPUX, OS_TYPE_LINUX, OS_TYPE_SOLARIS, OS_TYPE_UNKNOWN, OS_TYPE_WINDOWS, OS_TYPE_ZOS

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.