f5bigip.ltm.PersistenceProfileSrcAddr
Explore with Pulumi AI
Configures a source address persistence profile
Example
import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";
const srcaddr = new f5bigip.ltm.PersistenceProfileSrcAddr("srcaddr", {
name: "/Common/terraform_srcaddr",
defaultsFrom: "/Common/source_addr",
matchAcrossPools: "enabled",
matchAcrossServices: "enabled",
matchAcrossVirtuals: "enabled",
mirror: "enabled",
timeout: 3600,
overrideConnLimit: "enabled",
hashAlgorithm: "carp",
mapProxies: "enabled",
mask: "255.255.255.255",
});
import pulumi
import pulumi_f5bigip as f5bigip
srcaddr = f5bigip.ltm.PersistenceProfileSrcAddr("srcaddr",
name="/Common/terraform_srcaddr",
defaults_from="/Common/source_addr",
match_across_pools="enabled",
match_across_services="enabled",
match_across_virtuals="enabled",
mirror="enabled",
timeout=3600,
override_conn_limit="enabled",
hash_algorithm="carp",
map_proxies="enabled",
mask="255.255.255.255")
package main
import (
"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/ltm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ltm.NewPersistenceProfileSrcAddr(ctx, "srcaddr", <m.PersistenceProfileSrcAddrArgs{
Name: pulumi.String("/Common/terraform_srcaddr"),
DefaultsFrom: pulumi.String("/Common/source_addr"),
MatchAcrossPools: pulumi.String("enabled"),
MatchAcrossServices: pulumi.String("enabled"),
MatchAcrossVirtuals: pulumi.String("enabled"),
Mirror: pulumi.String("enabled"),
Timeout: pulumi.Int(3600),
OverrideConnLimit: pulumi.String("enabled"),
HashAlgorithm: pulumi.String("carp"),
MapProxies: pulumi.String("enabled"),
Mask: pulumi.String("255.255.255.255"),
})
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 srcaddr = new F5BigIP.Ltm.PersistenceProfileSrcAddr("srcaddr", new()
{
Name = "/Common/terraform_srcaddr",
DefaultsFrom = "/Common/source_addr",
MatchAcrossPools = "enabled",
MatchAcrossServices = "enabled",
MatchAcrossVirtuals = "enabled",
Mirror = "enabled",
Timeout = 3600,
OverrideConnLimit = "enabled",
HashAlgorithm = "carp",
MapProxies = "enabled",
Mask = "255.255.255.255",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.f5bigip.ltm.PersistenceProfileSrcAddr;
import com.pulumi.f5bigip.ltm.PersistenceProfileSrcAddrArgs;
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 srcaddr = new PersistenceProfileSrcAddr("srcaddr", PersistenceProfileSrcAddrArgs.builder()
.name("/Common/terraform_srcaddr")
.defaultsFrom("/Common/source_addr")
.matchAcrossPools("enabled")
.matchAcrossServices("enabled")
.matchAcrossVirtuals("enabled")
.mirror("enabled")
.timeout(3600)
.overrideConnLimit("enabled")
.hashAlgorithm("carp")
.mapProxies("enabled")
.mask("255.255.255.255")
.build());
}
}
resources:
srcaddr:
type: f5bigip:ltm:PersistenceProfileSrcAddr
properties:
name: /Common/terraform_srcaddr
defaultsFrom: /Common/source_addr
matchAcrossPools: enabled
matchAcrossServices: enabled
matchAcrossVirtuals: enabled
mirror: enabled
timeout: 3600
overrideConnLimit: enabled
hashAlgorithm: carp
mapProxies: enabled
mask: 255.255.255.255
Reference
name
- (Required) Name of the virtual address
defaults_from
- (Required) Parent cookie persistence profile
match_across_pools
(Optional) (enabled or disabled) match across pools with given persistence record
match_across_services
(Optional) (enabled or disabled) match across services with given persistence record
match_across_virtuals
(Optional) (enabled or disabled) match across virtual servers with given persistence record
mirror
(Optional) (enabled or disabled) mirror persistence record
timeout
(Optional) (enabled or disabled) Timeout for persistence of the session in seconds
override_conn_limit
(Optional) (enabled or disabled) Enable or dissable pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
hash_algorithm
(Optional) Specify the hash algorithm
mask
(Optional) Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
map_proxies
(Optional) (enabled or disabled) Directs all to the same single pool member
Create PersistenceProfileSrcAddr Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PersistenceProfileSrcAddr(name: string, args: PersistenceProfileSrcAddrArgs, opts?: CustomResourceOptions);
@overload
def PersistenceProfileSrcAddr(resource_name: str,
args: PersistenceProfileSrcAddrArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PersistenceProfileSrcAddr(resource_name: str,
opts: Optional[ResourceOptions] = None,
defaults_from: Optional[str] = None,
name: Optional[str] = None,
app_service: Optional[str] = None,
hash_algorithm: Optional[str] = None,
map_proxies: Optional[str] = None,
mask: Optional[str] = None,
match_across_pools: Optional[str] = None,
match_across_services: Optional[str] = None,
match_across_virtuals: Optional[str] = None,
mirror: Optional[str] = None,
override_conn_limit: Optional[str] = None,
timeout: Optional[int] = None)
func NewPersistenceProfileSrcAddr(ctx *Context, name string, args PersistenceProfileSrcAddrArgs, opts ...ResourceOption) (*PersistenceProfileSrcAddr, error)
public PersistenceProfileSrcAddr(string name, PersistenceProfileSrcAddrArgs args, CustomResourceOptions? opts = null)
public PersistenceProfileSrcAddr(String name, PersistenceProfileSrcAddrArgs args)
public PersistenceProfileSrcAddr(String name, PersistenceProfileSrcAddrArgs args, CustomResourceOptions options)
type: f5bigip:ltm:PersistenceProfileSrcAddr
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 PersistenceProfileSrcAddrArgs
- 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 PersistenceProfileSrcAddrArgs
- 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 PersistenceProfileSrcAddrArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PersistenceProfileSrcAddrArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PersistenceProfileSrcAddrArgs
- 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 persistenceProfileSrcAddrResource = new F5BigIP.Ltm.PersistenceProfileSrcAddr("persistenceProfileSrcAddrResource", new()
{
DefaultsFrom = "string",
Name = "string",
AppService = "string",
HashAlgorithm = "string",
MapProxies = "string",
Mask = "string",
MatchAcrossPools = "string",
MatchAcrossServices = "string",
MatchAcrossVirtuals = "string",
Mirror = "string",
OverrideConnLimit = "string",
Timeout = 0,
});
example, err := ltm.NewPersistenceProfileSrcAddr(ctx, "persistenceProfileSrcAddrResource", <m.PersistenceProfileSrcAddrArgs{
DefaultsFrom: pulumi.String("string"),
Name: pulumi.String("string"),
AppService: pulumi.String("string"),
HashAlgorithm: pulumi.String("string"),
MapProxies: pulumi.String("string"),
Mask: pulumi.String("string"),
MatchAcrossPools: pulumi.String("string"),
MatchAcrossServices: pulumi.String("string"),
MatchAcrossVirtuals: pulumi.String("string"),
Mirror: pulumi.String("string"),
OverrideConnLimit: pulumi.String("string"),
Timeout: pulumi.Int(0),
})
var persistenceProfileSrcAddrResource = new PersistenceProfileSrcAddr("persistenceProfileSrcAddrResource", PersistenceProfileSrcAddrArgs.builder()
.defaultsFrom("string")
.name("string")
.appService("string")
.hashAlgorithm("string")
.mapProxies("string")
.mask("string")
.matchAcrossPools("string")
.matchAcrossServices("string")
.matchAcrossVirtuals("string")
.mirror("string")
.overrideConnLimit("string")
.timeout(0)
.build());
persistence_profile_src_addr_resource = f5bigip.ltm.PersistenceProfileSrcAddr("persistenceProfileSrcAddrResource",
defaults_from="string",
name="string",
app_service="string",
hash_algorithm="string",
map_proxies="string",
mask="string",
match_across_pools="string",
match_across_services="string",
match_across_virtuals="string",
mirror="string",
override_conn_limit="string",
timeout=0)
const persistenceProfileSrcAddrResource = new f5bigip.ltm.PersistenceProfileSrcAddr("persistenceProfileSrcAddrResource", {
defaultsFrom: "string",
name: "string",
appService: "string",
hashAlgorithm: "string",
mapProxies: "string",
mask: "string",
matchAcrossPools: "string",
matchAcrossServices: "string",
matchAcrossVirtuals: "string",
mirror: "string",
overrideConnLimit: "string",
timeout: 0,
});
type: f5bigip:ltm:PersistenceProfileSrcAddr
properties:
appService: string
defaultsFrom: string
hashAlgorithm: string
mapProxies: string
mask: string
matchAcrossPools: string
matchAcrossServices: string
matchAcrossVirtuals: string
mirror: string
name: string
overrideConnLimit: string
timeout: 0
PersistenceProfileSrcAddr Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PersistenceProfileSrcAddr resource accepts the following input properties:
- Defaults
From string - Inherit defaults from parent profile
- Name string
- Name of the persistence profile
- App
Service string - Hash
Algorithm string - Specify the hash algorithm
- Map
Proxies string - To enable _ disable directs all to the same single pool member
- Mask string
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- Match
Across stringPools - To enable _ disable match across pools with given persistence record
- Match
Across stringServices - To enable _ disable match across services with given persistence record
- Match
Across stringVirtuals - To enable _ disable match across services with given persistence record
- Mirror string
- To enable _ disable
- Override
Conn stringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- Timeout int
- Timeout for persistence of the session
- Defaults
From string - Inherit defaults from parent profile
- Name string
- Name of the persistence profile
- App
Service string - Hash
Algorithm string - Specify the hash algorithm
- Map
Proxies string - To enable _ disable directs all to the same single pool member
- Mask string
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- Match
Across stringPools - To enable _ disable match across pools with given persistence record
- Match
Across stringServices - To enable _ disable match across services with given persistence record
- Match
Across stringVirtuals - To enable _ disable match across services with given persistence record
- Mirror string
- To enable _ disable
- Override
Conn stringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- Timeout int
- Timeout for persistence of the session
- defaults
From String - Inherit defaults from parent profile
- name String
- Name of the persistence profile
- app
Service String - hash
Algorithm String - Specify the hash algorithm
- map
Proxies String - To enable _ disable directs all to the same single pool member
- mask String
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- match
Across StringPools - To enable _ disable match across pools with given persistence record
- match
Across StringServices - To enable _ disable match across services with given persistence record
- match
Across StringVirtuals - To enable _ disable match across services with given persistence record
- mirror String
- To enable _ disable
- override
Conn StringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- timeout Integer
- Timeout for persistence of the session
- defaults
From string - Inherit defaults from parent profile
- name string
- Name of the persistence profile
- app
Service string - hash
Algorithm string - Specify the hash algorithm
- map
Proxies string - To enable _ disable directs all to the same single pool member
- mask string
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- match
Across stringPools - To enable _ disable match across pools with given persistence record
- match
Across stringServices - To enable _ disable match across services with given persistence record
- match
Across stringVirtuals - To enable _ disable match across services with given persistence record
- mirror string
- To enable _ disable
- override
Conn stringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- timeout number
- Timeout for persistence of the session
- defaults_
from str - Inherit defaults from parent profile
- name str
- Name of the persistence profile
- app_
service str - hash_
algorithm str - Specify the hash algorithm
- map_
proxies str - To enable _ disable directs all to the same single pool member
- mask str
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- match_
across_ strpools - To enable _ disable match across pools with given persistence record
- match_
across_ strservices - To enable _ disable match across services with given persistence record
- match_
across_ strvirtuals - To enable _ disable match across services with given persistence record
- mirror str
- To enable _ disable
- override_
conn_ strlimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- timeout int
- Timeout for persistence of the session
- defaults
From String - Inherit defaults from parent profile
- name String
- Name of the persistence profile
- app
Service String - hash
Algorithm String - Specify the hash algorithm
- map
Proxies String - To enable _ disable directs all to the same single pool member
- mask String
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- match
Across StringPools - To enable _ disable match across pools with given persistence record
- match
Across StringServices - To enable _ disable match across services with given persistence record
- match
Across StringVirtuals - To enable _ disable match across services with given persistence record
- mirror String
- To enable _ disable
- override
Conn StringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- timeout Number
- Timeout for persistence of the session
Outputs
All input properties are implicitly available as output properties. Additionally, the PersistenceProfileSrcAddr 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 PersistenceProfileSrcAddr Resource
Get an existing PersistenceProfileSrcAddr 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?: PersistenceProfileSrcAddrState, opts?: CustomResourceOptions): PersistenceProfileSrcAddr
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_service: Optional[str] = None,
defaults_from: Optional[str] = None,
hash_algorithm: Optional[str] = None,
map_proxies: Optional[str] = None,
mask: Optional[str] = None,
match_across_pools: Optional[str] = None,
match_across_services: Optional[str] = None,
match_across_virtuals: Optional[str] = None,
mirror: Optional[str] = None,
name: Optional[str] = None,
override_conn_limit: Optional[str] = None,
timeout: Optional[int] = None) -> PersistenceProfileSrcAddr
func GetPersistenceProfileSrcAddr(ctx *Context, name string, id IDInput, state *PersistenceProfileSrcAddrState, opts ...ResourceOption) (*PersistenceProfileSrcAddr, error)
public static PersistenceProfileSrcAddr Get(string name, Input<string> id, PersistenceProfileSrcAddrState? state, CustomResourceOptions? opts = null)
public static PersistenceProfileSrcAddr get(String name, Output<String> id, PersistenceProfileSrcAddrState 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.
- App
Service string - Defaults
From string - Inherit defaults from parent profile
- Hash
Algorithm string - Specify the hash algorithm
- Map
Proxies string - To enable _ disable directs all to the same single pool member
- Mask string
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- Match
Across stringPools - To enable _ disable match across pools with given persistence record
- Match
Across stringServices - To enable _ disable match across services with given persistence record
- Match
Across stringVirtuals - To enable _ disable match across services with given persistence record
- Mirror string
- To enable _ disable
- Name string
- Name of the persistence profile
- Override
Conn stringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- Timeout int
- Timeout for persistence of the session
- App
Service string - Defaults
From string - Inherit defaults from parent profile
- Hash
Algorithm string - Specify the hash algorithm
- Map
Proxies string - To enable _ disable directs all to the same single pool member
- Mask string
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- Match
Across stringPools - To enable _ disable match across pools with given persistence record
- Match
Across stringServices - To enable _ disable match across services with given persistence record
- Match
Across stringVirtuals - To enable _ disable match across services with given persistence record
- Mirror string
- To enable _ disable
- Name string
- Name of the persistence profile
- Override
Conn stringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- Timeout int
- Timeout for persistence of the session
- app
Service String - defaults
From String - Inherit defaults from parent profile
- hash
Algorithm String - Specify the hash algorithm
- map
Proxies String - To enable _ disable directs all to the same single pool member
- mask String
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- match
Across StringPools - To enable _ disable match across pools with given persistence record
- match
Across StringServices - To enable _ disable match across services with given persistence record
- match
Across StringVirtuals - To enable _ disable match across services with given persistence record
- mirror String
- To enable _ disable
- name String
- Name of the persistence profile
- override
Conn StringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- timeout Integer
- Timeout for persistence of the session
- app
Service string - defaults
From string - Inherit defaults from parent profile
- hash
Algorithm string - Specify the hash algorithm
- map
Proxies string - To enable _ disable directs all to the same single pool member
- mask string
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- match
Across stringPools - To enable _ disable match across pools with given persistence record
- match
Across stringServices - To enable _ disable match across services with given persistence record
- match
Across stringVirtuals - To enable _ disable match across services with given persistence record
- mirror string
- To enable _ disable
- name string
- Name of the persistence profile
- override
Conn stringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- timeout number
- Timeout for persistence of the session
- app_
service str - defaults_
from str - Inherit defaults from parent profile
- hash_
algorithm str - Specify the hash algorithm
- map_
proxies str - To enable _ disable directs all to the same single pool member
- mask str
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- match_
across_ strpools - To enable _ disable match across pools with given persistence record
- match_
across_ strservices - To enable _ disable match across services with given persistence record
- match_
across_ strvirtuals - To enable _ disable match across services with given persistence record
- mirror str
- To enable _ disable
- name str
- Name of the persistence profile
- override_
conn_ strlimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- timeout int
- Timeout for persistence of the session
- app
Service String - defaults
From String - Inherit defaults from parent profile
- hash
Algorithm String - Specify the hash algorithm
- map
Proxies String - To enable _ disable directs all to the same single pool member
- mask String
- Identify a range of source IP addresses to manage together as a single source address affinity persistent connection when connecting to the pool. Must be a valid IPv4 or IPv6 mask.
- match
Across StringPools - To enable _ disable match across pools with given persistence record
- match
Across StringServices - To enable _ disable match across services with given persistence record
- match
Across StringVirtuals - To enable _ disable match across services with given persistence record
- mirror String
- To enable _ disable
- name String
- Name of the persistence profile
- override
Conn StringLimit - To enable _ disable that pool member connection limits are overridden for persisted clients. Per-virtual connection limits remain hard limits and are not overridden.
- timeout Number
- Timeout for persistence of the session
Import
ing
An source-addr persistence profile can be imported into this resource by supplying the Name in full path
as id
.
An example is below:
$ terraform import bigip_ltm_persistence_profile_srcaddr.srcaddr "/Common/terraform_srcaddr"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- f5 BIG-IP pulumi/pulumi-f5bigip
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
bigip
Terraform Provider.