1. Packages
  2. Dynatrace
  3. API Docs
  4. NetworkTraffic
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.NetworkTraffic

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    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:

    HostId 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 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 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 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 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 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)
    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.
    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 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 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 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 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 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 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

    IpAddress string
    IP address
    IpAddress string
    IP address
    ipAddress String
    IP address
    ipAddress string
    IP address
    ip_address str
    IP address
    ipAddress 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
    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
    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
    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
    interface str
    Network interface
    os 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 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.
    dynatrace logo
    Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse