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",
},
},
},
});
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"),
},
},
},
})
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());
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",
}],
})
const networkTrafficResource = new dynatrace.NetworkTraffic("networkTrafficResource", {
hostId: "string",
excludeIp: {
ipAddressForms: [{
ipAddress: "string",
}],
},
excludeNic: {
nicForms: [{
"interface": "string",
os: "string",
}],
},
});
type: dynatrace:NetworkTraffic
properties:
excludeIp:
ipAddressForms:
- ipAddress: string
excludeNic:
nicForms:
- interface: string
os: string
hostId: string
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:
- Host
Id This property is required. Changes to this property will trigger replacement.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Exclude
Ip Pulumiverse.Dynatrace. Inputs. Network Traffic Exclude Ip - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- Exclude
Nic Pulumiverse.Dynatrace. Inputs. Network Traffic Exclude Nic - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Exclude
Ip NetworkTraffic Exclude Ip Args - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- Exclude
Nic NetworkTraffic Exclude Nic Args - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- exclude
Ip NetworkTraffic Exclude Ip - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- exclude
Nic NetworkTraffic Exclude Nic - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- exclude
Ip NetworkTraffic Exclude Ip - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- exclude
Nic NetworkTraffic Exclude Nic - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- exclude_
ip NetworkTraffic Exclude Ip Args - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- exclude_
nic NetworkTraffic Exclude Nic Args - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- exclude
Ip Property Map - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- exclude
Nic 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.
- Exclude
Ip Pulumiverse.Dynatrace. Inputs. Network Traffic Exclude Ip - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- Exclude
Nic Pulumiverse.Dynatrace. Inputs. Network Traffic Exclude Nic - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Exclude
Ip NetworkTraffic Exclude Ip Args - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- Exclude
Nic NetworkTraffic Exclude Nic Args - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- exclude
Ip NetworkTraffic Exclude Ip - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- exclude
Nic NetworkTraffic Exclude Nic - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- exclude
Ip NetworkTraffic Exclude Ip - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- exclude
Nic NetworkTraffic Exclude Nic - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- exclude_
ip NetworkTraffic Exclude Ip Args - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- exclude_
nic NetworkTraffic Exclude Nic Args - 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.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- exclude
Ip Property Map - Providing a host IP address, you will exclude network traffic only in calculating connectivity (other metrics will still be calculated).
- exclude
Nic 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.
- host
Id Changes to this property will trigger replacement.
- The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
Supporting Types
NetworkTrafficExcludeIp, NetworkTrafficExcludeIpArgs
- Ip
Address Forms This property is required. List<Pulumiverse.Dynatrace. Inputs. Network Traffic Exclude Ip Ip Address Form>
- Ip
Address Forms This property is required. []NetworkTraffic Exclude Ip Ip Address Form
- ip
Address Forms This property is required. List<NetworkTraffic Exclude Ip Ip Address Form>
- ip
Address Forms This property is required. NetworkTraffic Exclude Ip Ip Address Form[]
- ip_
address_ forms This property is required. Sequence[NetworkTraffic Exclude Ip Ip Address Form]
- ip
Address Forms This property is required. List<Property Map>
NetworkTrafficExcludeIpIpAddressForm, NetworkTrafficExcludeIpIpAddressFormArgs
- Ip
Address This property is required. string - IP address
- Ip
Address This property is required. string - IP address
- ip
Address This property is required. String - IP address
- ip
Address This property is required. string - IP address
- ip_
address This property is required. str - IP address
- ip
Address This property is required. String - IP address
NetworkTrafficExcludeNic, NetworkTrafficExcludeNicArgs
- Nic
Forms This property is required. List<Pulumiverse.Dynatrace. Inputs. Network Traffic Exclude Nic Nic Form>
- Nic
Forms This property is required. []NetworkTraffic Exclude Nic Nic Form
- nic
Forms This property is required. List<NetworkTraffic Exclude Nic Nic Form>
- nic
Forms This property is required. NetworkTraffic Exclude Nic Nic Form[]
- nic_
forms This property is required. Sequence[NetworkTraffic Exclude Nic Nic Form]
- nic
Forms 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
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.