TrafficSelector

f5bigip.TrafficSelector Manage IPSec Traffic Selectors on BIG-IP

Resources should be named with their “full path”. The full path is the combination of the partition + name (example: /Common/test-selector)

Example Usage

using Pulumi;
using F5BigIP = Pulumi.F5BigIP;

class MyStack : Stack
{
    public MyStack()
    {
        var test_selector = new F5BigIP.TrafficSelector("test-selector", new F5BigIP.TrafficSelectorArgs
        {
            DestinationAddress = "3.10.11.2/32",
            Name = "/Common/test-selector",
            SourceAddress = "2.10.11.12/32",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := f5bigip.NewTrafficSelector(ctx, "test_selector", &f5bigip.TrafficSelectorArgs{
			DestinationAddress: pulumi.String("3.10.11.2/32"),
			Name:               pulumi.String("/Common/test-selector"),
			SourceAddress:      pulumi.String("2.10.11.12/32"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_f5bigip as f5bigip

test_selector = f5bigip.TrafficSelector("test-selector",
    destination_address="3.10.11.2/32",
    name="/Common/test-selector",
    source_address="2.10.11.12/32")
import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";

const test_selector = new f5bigip.TrafficSelector("test-selector", {
    destinationAddress: "3.10.11.2/32",
    name: "/Common/test-selector",
    sourceAddress: "2.10.11.12/32",
});

Create a TrafficSelector Resource

new TrafficSelector(name: string, args: TrafficSelectorArgs, opts?: CustomResourceOptions);
@overload
def TrafficSelector(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    destination_address: Optional[str] = None,
                    destination_port: Optional[int] = None,
                    direction: Optional[str] = None,
                    ip_protocol: Optional[int] = None,
                    ipsec_policy: Optional[str] = None,
                    name: Optional[str] = None,
                    order: Optional[int] = None,
                    source_address: Optional[str] = None,
                    source_port: Optional[int] = None)
@overload
def TrafficSelector(resource_name: str,
                    args: TrafficSelectorArgs,
                    opts: Optional[ResourceOptions] = None)
func NewTrafficSelector(ctx *Context, name string, args TrafficSelectorArgs, opts ...ResourceOption) (*TrafficSelector, error)
public TrafficSelector(string name, TrafficSelectorArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args TrafficSelectorArgs
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 TrafficSelectorArgs
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 TrafficSelectorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TrafficSelectorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

TrafficSelector Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The TrafficSelector resource accepts the following input properties:

DestinationAddress string
Specifies the host or network IP address to which the application traffic is destined.When creating a new traffic selector, this parameter is required.
Name string
Name of the IPSec traffic-selector,it should be “full path”.The full path is the combination of the partition + name of the IPSec traffic-selector.(For example /Common/test-selector)
SourceAddress string
Specifies the host or network IP address from which the application traffic originates.When creating a new traffic selector, this parameter is required.
Description string
Description of the traffic selector.
DestinationPort int
Specifies the IP port used by the application. The default value is All Ports (0)
Direction string
Specifies whether the traffic selector applies to inbound or outbound traffic, or both. The default value is Both.
IpProtocol int
Specifies the network protocol to use for this traffic. The default value is All Protocols (255)
IpsecPolicy string
Specifies the IPsec policy that tells the BIG-IP system how to handle the packets.When creating a new traffic selector, if this parameter is not specified, the default is default-ipsec-policy.
Order int
Specifies the order in which traffic is matched, if traffic can be matched to multiple traffic selectors.Traffic is matched to the traffic selector with the highest priority (lowest order number). When creating a new traffic selector, if this parameter is not specified, the default is last
SourcePort int
Specifies the IP port used by the application. The default value is All Ports (0).
DestinationAddress string
Specifies the host or network IP address to which the application traffic is destined.When creating a new traffic selector, this parameter is required.
Name string
Name of the IPSec traffic-selector,it should be “full path”.The full path is the combination of the partition + name of the IPSec traffic-selector.(For example /Common/test-selector)
SourceAddress string
Specifies the host or network IP address from which the application traffic originates.When creating a new traffic selector, this parameter is required.
Description string
Description of the traffic selector.
DestinationPort int
Specifies the IP port used by the application. The default value is All Ports (0)
Direction string
Specifies whether the traffic selector applies to inbound or outbound traffic, or both. The default value is Both.
IpProtocol int
Specifies the network protocol to use for this traffic. The default value is All Protocols (255)
IpsecPolicy string
Specifies the IPsec policy that tells the BIG-IP system how to handle the packets.When creating a new traffic selector, if this parameter is not specified, the default is default-ipsec-policy.
Order int
Specifies the order in which traffic is matched, if traffic can be matched to multiple traffic selectors.Traffic is matched to the traffic selector with the highest priority (lowest order number). When creating a new traffic selector, if this parameter is not specified, the default is last
SourcePort int
Specifies the IP port used by the application. The default value is All Ports (0).
destinationAddress string
Specifies the host or network IP address to which the application traffic is destined.When creating a new traffic selector, this parameter is required.
name string
Name of the IPSec traffic-selector,it should be “full path”.The full path is the combination of the partition + name of the IPSec traffic-selector.(For example /Common/test-selector)
sourceAddress string
Specifies the host or network IP address from which the application traffic originates.When creating a new traffic selector, this parameter is required.
description string
Description of the traffic selector.
destinationPort number
Specifies the IP port used by the application. The default value is All Ports (0)
direction string
Specifies whether the traffic selector applies to inbound or outbound traffic, or both. The default value is Both.
ipProtocol number
Specifies the network protocol to use for this traffic. The default value is All Protocols (255)
ipsecPolicy string
Specifies the IPsec policy that tells the BIG-IP system how to handle the packets.When creating a new traffic selector, if this parameter is not specified, the default is default-ipsec-policy.
order number
Specifies the order in which traffic is matched, if traffic can be matched to multiple traffic selectors.Traffic is matched to the traffic selector with the highest priority (lowest order number). When creating a new traffic selector, if this parameter is not specified, the default is last
sourcePort number
Specifies the IP port used by the application. The default value is All Ports (0).
destination_address str
Specifies the host or network IP address to which the application traffic is destined.When creating a new traffic selector, this parameter is required.
name str
Name of the IPSec traffic-selector,it should be “full path”.The full path is the combination of the partition + name of the IPSec traffic-selector.(For example /Common/test-selector)
source_address str
Specifies the host or network IP address from which the application traffic originates.When creating a new traffic selector, this parameter is required.
description str
Description of the traffic selector.
destination_port int
Specifies the IP port used by the application. The default value is All Ports (0)
direction str
Specifies whether the traffic selector applies to inbound or outbound traffic, or both. The default value is Both.
ip_protocol int
Specifies the network protocol to use for this traffic. The default value is All Protocols (255)
ipsec_policy str
Specifies the IPsec policy that tells the BIG-IP system how to handle the packets.When creating a new traffic selector, if this parameter is not specified, the default is default-ipsec-policy.
order int
Specifies the order in which traffic is matched, if traffic can be matched to multiple traffic selectors.Traffic is matched to the traffic selector with the highest priority (lowest order number). When creating a new traffic selector, if this parameter is not specified, the default is last
source_port int
Specifies the IP port used by the application. The default value is All Ports (0).

Outputs

All input properties are implicitly available as output properties. Additionally, the TrafficSelector 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing TrafficSelector Resource

Get an existing TrafficSelector 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?: TrafficSelectorState, opts?: CustomResourceOptions): TrafficSelector
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        destination_address: Optional[str] = None,
        destination_port: Optional[int] = None,
        direction: Optional[str] = None,
        ip_protocol: Optional[int] = None,
        ipsec_policy: Optional[str] = None,
        name: Optional[str] = None,
        order: Optional[int] = None,
        source_address: Optional[str] = None,
        source_port: Optional[int] = None) -> TrafficSelector
func GetTrafficSelector(ctx *Context, name string, id IDInput, state *TrafficSelectorState, opts ...ResourceOption) (*TrafficSelector, error)
public static TrafficSelector Get(string name, Input<string> id, TrafficSelectorState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Description string
Description of the traffic selector.
DestinationAddress string
Specifies the host or network IP address to which the application traffic is destined.When creating a new traffic selector, this parameter is required.
DestinationPort int
Specifies the IP port used by the application. The default value is All Ports (0)
Direction string
Specifies whether the traffic selector applies to inbound or outbound traffic, or both. The default value is Both.
IpProtocol int
Specifies the network protocol to use for this traffic. The default value is All Protocols (255)
IpsecPolicy string
Specifies the IPsec policy that tells the BIG-IP system how to handle the packets.When creating a new traffic selector, if this parameter is not specified, the default is default-ipsec-policy.
Name string
Name of the IPSec traffic-selector,it should be “full path”.The full path is the combination of the partition + name of the IPSec traffic-selector.(For example /Common/test-selector)
Order int
Specifies the order in which traffic is matched, if traffic can be matched to multiple traffic selectors.Traffic is matched to the traffic selector with the highest priority (lowest order number). When creating a new traffic selector, if this parameter is not specified, the default is last
SourceAddress string
Specifies the host or network IP address from which the application traffic originates.When creating a new traffic selector, this parameter is required.
SourcePort int
Specifies the IP port used by the application. The default value is All Ports (0).
Description string
Description of the traffic selector.
DestinationAddress string
Specifies the host or network IP address to which the application traffic is destined.When creating a new traffic selector, this parameter is required.
DestinationPort int
Specifies the IP port used by the application. The default value is All Ports (0)
Direction string
Specifies whether the traffic selector applies to inbound or outbound traffic, or both. The default value is Both.
IpProtocol int
Specifies the network protocol to use for this traffic. The default value is All Protocols (255)
IpsecPolicy string
Specifies the IPsec policy that tells the BIG-IP system how to handle the packets.When creating a new traffic selector, if this parameter is not specified, the default is default-ipsec-policy.
Name string
Name of the IPSec traffic-selector,it should be “full path”.The full path is the combination of the partition + name of the IPSec traffic-selector.(For example /Common/test-selector)
Order int
Specifies the order in which traffic is matched, if traffic can be matched to multiple traffic selectors.Traffic is matched to the traffic selector with the highest priority (lowest order number). When creating a new traffic selector, if this parameter is not specified, the default is last
SourceAddress string
Specifies the host or network IP address from which the application traffic originates.When creating a new traffic selector, this parameter is required.
SourcePort int
Specifies the IP port used by the application. The default value is All Ports (0).
description string
Description of the traffic selector.
destinationAddress string
Specifies the host or network IP address to which the application traffic is destined.When creating a new traffic selector, this parameter is required.
destinationPort number
Specifies the IP port used by the application. The default value is All Ports (0)
direction string
Specifies whether the traffic selector applies to inbound or outbound traffic, or both. The default value is Both.
ipProtocol number
Specifies the network protocol to use for this traffic. The default value is All Protocols (255)
ipsecPolicy string
Specifies the IPsec policy that tells the BIG-IP system how to handle the packets.When creating a new traffic selector, if this parameter is not specified, the default is default-ipsec-policy.
name string
Name of the IPSec traffic-selector,it should be “full path”.The full path is the combination of the partition + name of the IPSec traffic-selector.(For example /Common/test-selector)
order number
Specifies the order in which traffic is matched, if traffic can be matched to multiple traffic selectors.Traffic is matched to the traffic selector with the highest priority (lowest order number). When creating a new traffic selector, if this parameter is not specified, the default is last
sourceAddress string
Specifies the host or network IP address from which the application traffic originates.When creating a new traffic selector, this parameter is required.
sourcePort number
Specifies the IP port used by the application. The default value is All Ports (0).
description str
Description of the traffic selector.
destination_address str
Specifies the host or network IP address to which the application traffic is destined.When creating a new traffic selector, this parameter is required.
destination_port int
Specifies the IP port used by the application. The default value is All Ports (0)
direction str
Specifies whether the traffic selector applies to inbound or outbound traffic, or both. The default value is Both.
ip_protocol int
Specifies the network protocol to use for this traffic. The default value is All Protocols (255)
ipsec_policy str
Specifies the IPsec policy that tells the BIG-IP system how to handle the packets.When creating a new traffic selector, if this parameter is not specified, the default is default-ipsec-policy.
name str
Name of the IPSec traffic-selector,it should be “full path”.The full path is the combination of the partition + name of the IPSec traffic-selector.(For example /Common/test-selector)
order int
Specifies the order in which traffic is matched, if traffic can be matched to multiple traffic selectors.Traffic is matched to the traffic selector with the highest priority (lowest order number). When creating a new traffic selector, if this parameter is not specified, the default is last
source_address str
Specifies the host or network IP address from which the application traffic originates.When creating a new traffic selector, this parameter is required.
source_port int
Specifies the IP port used by the application. The default value is All Ports (0).

Package Details

Repository
https://github.com/pulumi/pulumi-f5bigip
License
Apache-2.0
Notes
This Pulumi package is based on the bigip Terraform Provider.