1. Packages
  2. Routeros Provider
  3. API Docs
  4. IpTrafficFlowTarget
routeros 1.98.0 published on Monday, Dec 8, 2025 by terraform-routeros
routeros logo
routeros 1.98.0 published on Monday, Dec 8, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const test = new routeros.IpTrafficFlowTarget("test", {
        dstAddress: "192.168.0.2",
        port: 2055,
        version: "9",
    });
    
    import pulumi
    import pulumi_routeros as routeros
    
    test = routeros.IpTrafficFlowTarget("test",
        dst_address="192.168.0.2",
        port=2055,
        version="9")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := routeros.NewIpTrafficFlowTarget(ctx, "test", &routeros.IpTrafficFlowTargetArgs{
    			DstAddress: pulumi.String("192.168.0.2"),
    			Port:       pulumi.Float64(2055),
    			Version:    pulumi.String("9"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Routeros = Pulumi.Routeros;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Routeros.IpTrafficFlowTarget("test", new()
        {
            DstAddress = "192.168.0.2",
            Port = 2055,
            Version = "9",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.IpTrafficFlowTarget;
    import com.pulumi.routeros.IpTrafficFlowTargetArgs;
    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 test = new IpTrafficFlowTarget("test", IpTrafficFlowTargetArgs.builder()
                .dstAddress("192.168.0.2")
                .port(2055.0)
                .version("9")
                .build());
    
        }
    }
    
    resources:
      test:
        type: routeros:IpTrafficFlowTarget
        properties:
          dstAddress: 192.168.0.2
          port: 2055
          version: '9'
    

    Create IpTrafficFlowTarget Resource

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

    Constructor syntax

    new IpTrafficFlowTarget(name: string, args?: IpTrafficFlowTargetArgs, opts?: CustomResourceOptions);
    @overload
    def IpTrafficFlowTarget(resource_name: str,
                            args: Optional[IpTrafficFlowTargetArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def IpTrafficFlowTarget(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            ___id_: Optional[float] = None,
                            ___path_: Optional[str] = None,
                            disabled: Optional[bool] = None,
                            dst_address: Optional[str] = None,
                            ip_traffic_flow_target_id: Optional[str] = None,
                            port: Optional[float] = None,
                            src_address: Optional[str] = None,
                            v9_template_refresh: Optional[float] = None,
                            v9_template_timeout: Optional[str] = None,
                            version: Optional[str] = None)
    func NewIpTrafficFlowTarget(ctx *Context, name string, args *IpTrafficFlowTargetArgs, opts ...ResourceOption) (*IpTrafficFlowTarget, error)
    public IpTrafficFlowTarget(string name, IpTrafficFlowTargetArgs? args = null, CustomResourceOptions? opts = null)
    public IpTrafficFlowTarget(String name, IpTrafficFlowTargetArgs args)
    public IpTrafficFlowTarget(String name, IpTrafficFlowTargetArgs args, CustomResourceOptions options)
    
    type: routeros:IpTrafficFlowTarget
    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 IpTrafficFlowTargetArgs
    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 IpTrafficFlowTargetArgs
    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 IpTrafficFlowTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IpTrafficFlowTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IpTrafficFlowTargetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Disabled bool
    DstAddress string
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    IpTrafficFlowTargetId string
    The ID of this resource.
    Port double
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    SrcAddress string
    IP address used as source when sending Traffic-Flow statistics.
    V9TemplateRefresh double
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    V9TemplateTimeout string
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    Version string
    Which version format of NetFlow to use.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Disabled bool
    DstAddress string
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    IpTrafficFlowTargetId string
    The ID of this resource.
    Port float64
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    SrcAddress string
    IP address used as source when sending Traffic-Flow statistics.
    V9TemplateRefresh float64
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    V9TemplateTimeout string
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    Version string
    Which version format of NetFlow to use.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    disabled Boolean
    dstAddress String
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    ipTrafficFlowTargetId String
    The ID of this resource.
    port Double
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    srcAddress String
    IP address used as source when sending Traffic-Flow statistics.
    v9TemplateRefresh Double
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    v9TemplateTimeout String
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    version String
    Which version format of NetFlow to use.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    disabled boolean
    dstAddress string
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    ipTrafficFlowTargetId string
    The ID of this resource.
    port number
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    srcAddress string
    IP address used as source when sending Traffic-Flow statistics.
    v9TemplateRefresh number
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    v9TemplateTimeout string
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    version string
    Which version format of NetFlow to use.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    disabled bool
    dst_address str
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    ip_traffic_flow_target_id str
    The ID of this resource.
    port float
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    src_address str
    IP address used as source when sending Traffic-Flow statistics.
    v9_template_refresh float
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    v9_template_timeout str
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    version str
    Which version format of NetFlow to use.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    disabled Boolean
    dstAddress String
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    ipTrafficFlowTargetId String
    The ID of this resource.
    port Number
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    srcAddress String
    IP address used as source when sending Traffic-Flow statistics.
    v9TemplateRefresh Number
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    v9TemplateTimeout String
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    version String
    Which version format of NetFlow to use.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IpTrafficFlowTarget 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 IpTrafficFlowTarget Resource

    Get an existing IpTrafficFlowTarget 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?: IpTrafficFlowTargetState, opts?: CustomResourceOptions): IpTrafficFlowTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            disabled: Optional[bool] = None,
            dst_address: Optional[str] = None,
            ip_traffic_flow_target_id: Optional[str] = None,
            port: Optional[float] = None,
            src_address: Optional[str] = None,
            v9_template_refresh: Optional[float] = None,
            v9_template_timeout: Optional[str] = None,
            version: Optional[str] = None) -> IpTrafficFlowTarget
    func GetIpTrafficFlowTarget(ctx *Context, name string, id IDInput, state *IpTrafficFlowTargetState, opts ...ResourceOption) (*IpTrafficFlowTarget, error)
    public static IpTrafficFlowTarget Get(string name, Input<string> id, IpTrafficFlowTargetState? state, CustomResourceOptions? opts = null)
    public static IpTrafficFlowTarget get(String name, Output<String> id, IpTrafficFlowTargetState state, CustomResourceOptions options)
    resources:  _:    type: routeros:IpTrafficFlowTarget    get:      id: ${id}
    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:
    Disabled bool
    DstAddress string
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    IpTrafficFlowTargetId string
    The ID of this resource.
    Port double
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    SrcAddress string
    IP address used as source when sending Traffic-Flow statistics.
    V9TemplateRefresh double
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    V9TemplateTimeout string
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    Version string
    Which version format of NetFlow to use.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Disabled bool
    DstAddress string
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    IpTrafficFlowTargetId string
    The ID of this resource.
    Port float64
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    SrcAddress string
    IP address used as source when sending Traffic-Flow statistics.
    V9TemplateRefresh float64
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    V9TemplateTimeout string
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    Version string
    Which version format of NetFlow to use.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    disabled Boolean
    dstAddress String
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    ipTrafficFlowTargetId String
    The ID of this resource.
    port Double
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    srcAddress String
    IP address used as source when sending Traffic-Flow statistics.
    v9TemplateRefresh Double
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    v9TemplateTimeout String
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    version String
    Which version format of NetFlow to use.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    disabled boolean
    dstAddress string
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    ipTrafficFlowTargetId string
    The ID of this resource.
    port number
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    srcAddress string
    IP address used as source when sending Traffic-Flow statistics.
    v9TemplateRefresh number
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    v9TemplateTimeout string
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    version string
    Which version format of NetFlow to use.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    disabled bool
    dst_address str
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    ip_traffic_flow_target_id str
    The ID of this resource.
    port float
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    src_address str
    IP address used as source when sending Traffic-Flow statistics.
    v9_template_refresh float
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    v9_template_timeout str
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    version str
    Which version format of NetFlow to use.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    disabled Boolean
    dstAddress String
    IP address of the host which receives Traffic-Flow statistic packets from the router.
    ipTrafficFlowTargetId String
    The ID of this resource.
    port Number
    Port (UDP) of the host which receives Traffic-Flow statistic packets from the router.
    srcAddress String
    IP address used as source when sending Traffic-Flow statistics.
    v9TemplateRefresh Number
    Number of packets after which the template is sent to the receiving host (only for NetFlow version 9 and IPFIX).
    v9TemplateTimeout String
    After how long to send the template, if it has not been sent. (only for NetFlow version 9 and IPFIX).
    version String
    Which version format of NetFlow to use.

    Import

    #The ID can be found via API or the terminal

    #The command for the terminal is -> :put [/ip/traffic/flow/target get [print show-ids]]

    $ pulumi import routeros:index/ipTrafficFlowTarget:IpTrafficFlowTarget test *3
    

    #Or you can import a resource using one of its attributes

    $ pulumi import routeros:index/ipTrafficFlowTarget:IpTrafficFlowTarget test "dst_address=xxx"
    

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

    Package Details

    Repository
    routeros terraform-routeros/terraform-provider-routeros
    License
    Notes
    This Pulumi package is based on the routeros Terraform Provider.
    routeros logo
    routeros 1.98.0 published on Monday, Dec 8, 2025 by terraform-routeros
      Meet Neo: Your AI Platform Teammate