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 string
- The unique name of the resource.
- args NetworkTrafficArgs
- 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 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 string
- The unique name of the resource.
- args NetworkTrafficArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkTrafficArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 string - 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 string - 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 String - 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 string - 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 str - 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 String - 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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 string - 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 string - 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 String - 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 string - 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 str - 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 String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
Supporting Types
NetworkTrafficExcludeIp, NetworkTrafficExcludeIpArgs
NetworkTrafficExcludeIpIpAddressForm, NetworkTrafficExcludeIpIpAddressFormArgs
- Ip
Address string - IP address
- Ip
Address string - IP address
- ip
Address String - IP address
- ip
Address string - IP address
- ip_
address str - IP address
- ip
Address String - IP address
NetworkTrafficExcludeNic, NetworkTrafficExcludeNicArgs
NetworkTrafficExcludeNicNicForm, NetworkTrafficExcludeNicNicFormArgs
- interface_ String
- Network interface
- os 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.