f5bigip.TrafficSelector
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";
const test_selector = new f5bigip.TrafficSelector("test-selector", {
name: "/Common/test-selector",
destinationAddress: "3.10.11.2/32",
sourceAddress: "2.10.11.12/32",
});
import pulumi
import pulumi_f5bigip as f5bigip
test_selector = f5bigip.TrafficSelector("test-selector",
name="/Common/test-selector",
destination_address="3.10.11.2/32",
source_address="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{
Name: pulumi.String("/Common/test-selector"),
DestinationAddress: pulumi.String("3.10.11.2/32"),
SourceAddress: pulumi.String("2.10.11.12/32"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using F5BigIP = Pulumi.F5BigIP;
return await Deployment.RunAsync(() =>
{
var test_selector = new F5BigIP.TrafficSelector("test-selector", new()
{
Name = "/Common/test-selector",
DestinationAddress = "3.10.11.2/32",
SourceAddress = "2.10.11.12/32",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.f5bigip.TrafficSelector;
import com.pulumi.f5bigip.TrafficSelectorArgs;
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_selector = new TrafficSelector("test-selector", TrafficSelectorArgs.builder()
.name("/Common/test-selector")
.destinationAddress("3.10.11.2/32")
.sourceAddress("2.10.11.12/32")
.build());
}
}
resources:
test-selector:
type: f5bigip:TrafficSelector
properties:
name: /Common/test-selector
destinationAddress: 3.10.11.2/32
sourceAddress: 2.10.11.12/32
Create TrafficSelector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficSelector(name: string, args: TrafficSelectorArgs, opts?: CustomResourceOptions);
@overload
def TrafficSelector(resource_name: str,
args: TrafficSelectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficSelector(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_address: Optional[str] = None,
name: Optional[str] = None,
source_address: Optional[str] = None,
description: Optional[str] = None,
destination_port: Optional[int] = None,
direction: Optional[str] = None,
ip_protocol: Optional[int] = None,
ipsec_policy: Optional[str] = None,
order: Optional[int] = None,
source_port: Optional[int] = None)
func NewTrafficSelector(ctx *Context, name string, args TrafficSelectorArgs, opts ...ResourceOption) (*TrafficSelector, error)
public TrafficSelector(string name, TrafficSelectorArgs args, CustomResourceOptions? opts = null)
public TrafficSelector(String name, TrafficSelectorArgs args)
public TrafficSelector(String name, TrafficSelectorArgs args, CustomResourceOptions options)
type: f5bigip:TrafficSelector
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 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.
- name String
- The unique name of the resource.
- args TrafficSelectorArgs
- 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 trafficSelectorResource = new F5BigIP.TrafficSelector("trafficSelectorResource", new()
{
DestinationAddress = "string",
Name = "string",
SourceAddress = "string",
Description = "string",
DestinationPort = 0,
Direction = "string",
IpProtocol = 0,
IpsecPolicy = "string",
Order = 0,
SourcePort = 0,
});
example, err := f5bigip.NewTrafficSelector(ctx, "trafficSelectorResource", &f5bigip.TrafficSelectorArgs{
DestinationAddress: pulumi.String("string"),
Name: pulumi.String("string"),
SourceAddress: pulumi.String("string"),
Description: pulumi.String("string"),
DestinationPort: pulumi.Int(0),
Direction: pulumi.String("string"),
IpProtocol: pulumi.Int(0),
IpsecPolicy: pulumi.String("string"),
Order: pulumi.Int(0),
SourcePort: pulumi.Int(0),
})
var trafficSelectorResource = new TrafficSelector("trafficSelectorResource", TrafficSelectorArgs.builder()
.destinationAddress("string")
.name("string")
.sourceAddress("string")
.description("string")
.destinationPort(0)
.direction("string")
.ipProtocol(0)
.ipsecPolicy("string")
.order(0)
.sourcePort(0)
.build());
traffic_selector_resource = f5bigip.TrafficSelector("trafficSelectorResource",
destination_address="string",
name="string",
source_address="string",
description="string",
destination_port=0,
direction="string",
ip_protocol=0,
ipsec_policy="string",
order=0,
source_port=0)
const trafficSelectorResource = new f5bigip.TrafficSelector("trafficSelectorResource", {
destinationAddress: "string",
name: "string",
sourceAddress: "string",
description: "string",
destinationPort: 0,
direction: "string",
ipProtocol: 0,
ipsecPolicy: "string",
order: 0,
sourcePort: 0,
});
type: f5bigip:TrafficSelector
properties:
description: string
destinationAddress: string
destinationPort: 0
direction: string
ipProtocol: 0
ipsecPolicy: string
name: string
order: 0
sourceAddress: string
sourcePort: 0
TrafficSelector 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 TrafficSelector resource accepts the following input properties:
- Destination
Address 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
) - Source
Address 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.
- Destination
Port 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
. - Ip
Protocol int - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- Ipsec
Policy 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
- Source
Port int - Specifies the IP port used by the application. The default value is
All Ports (0)
.
- Destination
Address 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
) - Source
Address 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.
- Destination
Port 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
. - Ip
Protocol int - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- Ipsec
Policy 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
- Source
Port int - Specifies the IP port used by the application. The default value is
All Ports (0)
.
- destination
Address 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
) - source
Address 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.
- destination
Port Integer - 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
. - ip
Protocol Integer - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- ipsec
Policy 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 Integer
- 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 Integer - Specifies the IP port used by the application. The default value is
All Ports (0)
.
- destination
Address 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
) - source
Address 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.
- destination
Port 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
. - ip
Protocol number - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- ipsec
Policy 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
- source
Port 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)
.
- destination
Address 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
) - source
Address 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.
- destination
Port 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
. - ip
Protocol Number - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- ipsec
Policy 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
- source
Port Number - 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 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 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)
public static TrafficSelector get(String name, Output<String> id, TrafficSelectorState 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.
- Description string
- Description of the traffic selector.
- Destination
Address 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.
- Destination
Port 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
. - Ip
Protocol int - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- Ipsec
Policy 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
- Source
Address string - 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)
.
- Description string
- Description of the traffic selector.
- Destination
Address 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.
- Destination
Port 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
. - Ip
Protocol int - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- Ipsec
Policy 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
- Source
Address string - 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)
.
- description String
- Description of the traffic selector.
- destination
Address 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.
- destination
Port Integer - 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
. - ip
Protocol Integer - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- ipsec
Policy 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 Integer
- 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 String - 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 Integer - Specifies the IP port used by the application. The default value is
All Ports (0)
.
- description string
- Description of the traffic selector.
- destination
Address 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.
- destination
Port 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
. - ip
Protocol number - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- ipsec
Policy 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
- source
Address string - 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 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)
.
- description String
- Description of the traffic selector.
- destination
Address 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.
- destination
Port 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
. - ip
Protocol Number - Specifies the network protocol to use for this traffic. The default value is
All Protocols (255)
- ipsec
Policy 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
- source
Address String - 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 Number - Specifies the IP port used by the application. The default value is
All Ports (0)
.
Package Details
- Repository
- f5 BIG-IP pulumi/pulumi-f5bigip
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
bigip
Terraform Provider.