fortios.webproxy.Forwardservergroup
Explore with Pulumi AI
Configure a forward server group consisting or multiple forward servers. Supports failover and load balancing.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname1Forwardserver = new fortios.webproxy.Forwardserver("trname1Forwardserver", {
addrType: "fqdn",
healthcheck: "disable",
ip: "0.0.0.0",
monitor: "http://www.google.com",
port: 1128,
serverDownOption: "block",
});
const trname1Forwardservergroup = new fortios.webproxy.Forwardservergroup("trname1Forwardservergroup", {
affinity: "disable",
groupDownOption: "block",
ldbMethod: "weighted",
serverLists: [{
name: trname1Forwardserver.name,
weight: 12,
}],
});
import pulumi
import pulumiverse_fortios as fortios
trname1_forwardserver = fortios.webproxy.Forwardserver("trname1Forwardserver",
addr_type="fqdn",
healthcheck="disable",
ip="0.0.0.0",
monitor="http://www.google.com",
port=1128,
server_down_option="block")
trname1_forwardservergroup = fortios.webproxy.Forwardservergroup("trname1Forwardservergroup",
affinity="disable",
group_down_option="block",
ldb_method="weighted",
server_lists=[fortios.webproxy.ForwardservergroupServerListArgs(
name=trname1_forwardserver.name,
weight=12,
)])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/webproxy"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
trname1Forwardserver, err := webproxy.NewForwardserver(ctx, "trname1Forwardserver", &webproxy.ForwardserverArgs{
AddrType: pulumi.String("fqdn"),
Healthcheck: pulumi.String("disable"),
Ip: pulumi.String("0.0.0.0"),
Monitor: pulumi.String("http://www.google.com"),
Port: pulumi.Int(1128),
ServerDownOption: pulumi.String("block"),
})
if err != nil {
return err
}
_, err = webproxy.NewForwardservergroup(ctx, "trname1Forwardservergroup", &webproxy.ForwardservergroupArgs{
Affinity: pulumi.String("disable"),
GroupDownOption: pulumi.String("block"),
LdbMethod: pulumi.String("weighted"),
ServerLists: webproxy.ForwardservergroupServerListArray{
&webproxy.ForwardservergroupServerListArgs{
Name: trname1Forwardserver.Name,
Weight: pulumi.Int(12),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname1Forwardserver = new Fortios.Webproxy.Forwardserver("trname1Forwardserver", new()
{
AddrType = "fqdn",
Healthcheck = "disable",
Ip = "0.0.0.0",
Monitor = "http://www.google.com",
Port = 1128,
ServerDownOption = "block",
});
var trname1Forwardservergroup = new Fortios.Webproxy.Forwardservergroup("trname1Forwardservergroup", new()
{
Affinity = "disable",
GroupDownOption = "block",
LdbMethod = "weighted",
ServerLists = new[]
{
new Fortios.Webproxy.Inputs.ForwardservergroupServerListArgs
{
Name = trname1Forwardserver.Name,
Weight = 12,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.webproxy.Forwardserver;
import com.pulumi.fortios.webproxy.ForwardserverArgs;
import com.pulumi.fortios.webproxy.Forwardservergroup;
import com.pulumi.fortios.webproxy.ForwardservergroupArgs;
import com.pulumi.fortios.webproxy.inputs.ForwardservergroupServerListArgs;
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 trname1Forwardserver = new Forwardserver("trname1Forwardserver", ForwardserverArgs.builder()
.addrType("fqdn")
.healthcheck("disable")
.ip("0.0.0.0")
.monitor("http://www.google.com")
.port(1128)
.serverDownOption("block")
.build());
var trname1Forwardservergroup = new Forwardservergroup("trname1Forwardservergroup", ForwardservergroupArgs.builder()
.affinity("disable")
.groupDownOption("block")
.ldbMethod("weighted")
.serverLists(ForwardservergroupServerListArgs.builder()
.name(trname1Forwardserver.name())
.weight(12)
.build())
.build());
}
}
resources:
trname1Forwardserver:
type: fortios:webproxy:Forwardserver
properties:
addrType: fqdn
healthcheck: disable
ip: 0.0.0.0
monitor: http://www.google.com
port: 1128
serverDownOption: block
trname1Forwardservergroup:
type: fortios:webproxy:Forwardservergroup
properties:
affinity: disable
groupDownOption: block
ldbMethod: weighted
serverLists:
- name: ${trname1Forwardserver.name}
weight: 12
Create Forwardservergroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Forwardservergroup(name: string, args?: ForwardservergroupArgs, opts?: CustomResourceOptions);
@overload
def Forwardservergroup(resource_name: str,
args: Optional[ForwardservergroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Forwardservergroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
affinity: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
group_down_option: Optional[str] = None,
ldb_method: Optional[str] = None,
name: Optional[str] = None,
server_lists: Optional[Sequence[ForwardservergroupServerListArgs]] = None,
vdomparam: Optional[str] = None)
func NewForwardservergroup(ctx *Context, name string, args *ForwardservergroupArgs, opts ...ResourceOption) (*Forwardservergroup, error)
public Forwardservergroup(string name, ForwardservergroupArgs? args = null, CustomResourceOptions? opts = null)
public Forwardservergroup(String name, ForwardservergroupArgs args)
public Forwardservergroup(String name, ForwardservergroupArgs args, CustomResourceOptions options)
type: fortios:webproxy:Forwardservergroup
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 ForwardservergroupArgs
- 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 ForwardservergroupArgs
- 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 ForwardservergroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ForwardservergroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ForwardservergroupArgs
- 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 forwardservergroupResource = new Fortios.Webproxy.Forwardservergroup("forwardservergroupResource", new()
{
Affinity = "string",
DynamicSortSubtable = "string",
GetAllTables = "string",
GroupDownOption = "string",
LdbMethod = "string",
Name = "string",
ServerLists = new[]
{
new Fortios.Webproxy.Inputs.ForwardservergroupServerListArgs
{
Name = "string",
Weight = 0,
},
},
Vdomparam = "string",
});
example, err := webproxy.NewForwardservergroup(ctx, "forwardservergroupResource", &webproxy.ForwardservergroupArgs{
Affinity: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
GetAllTables: pulumi.String("string"),
GroupDownOption: pulumi.String("string"),
LdbMethod: pulumi.String("string"),
Name: pulumi.String("string"),
ServerLists: webproxy.ForwardservergroupServerListArray{
&webproxy.ForwardservergroupServerListArgs{
Name: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
Vdomparam: pulumi.String("string"),
})
var forwardservergroupResource = new Forwardservergroup("forwardservergroupResource", ForwardservergroupArgs.builder()
.affinity("string")
.dynamicSortSubtable("string")
.getAllTables("string")
.groupDownOption("string")
.ldbMethod("string")
.name("string")
.serverLists(ForwardservergroupServerListArgs.builder()
.name("string")
.weight(0)
.build())
.vdomparam("string")
.build());
forwardservergroup_resource = fortios.webproxy.Forwardservergroup("forwardservergroupResource",
affinity="string",
dynamic_sort_subtable="string",
get_all_tables="string",
group_down_option="string",
ldb_method="string",
name="string",
server_lists=[fortios.webproxy.ForwardservergroupServerListArgs(
name="string",
weight=0,
)],
vdomparam="string")
const forwardservergroupResource = new fortios.webproxy.Forwardservergroup("forwardservergroupResource", {
affinity: "string",
dynamicSortSubtable: "string",
getAllTables: "string",
groupDownOption: "string",
ldbMethod: "string",
name: "string",
serverLists: [{
name: "string",
weight: 0,
}],
vdomparam: "string",
});
type: fortios:webproxy:Forwardservergroup
properties:
affinity: string
dynamicSortSubtable: string
getAllTables: string
groupDownOption: string
ldbMethod: string
name: string
serverLists:
- name: string
weight: 0
vdomparam: string
Forwardservergroup 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 Forwardservergroup resource accepts the following input properties:
- Affinity string
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Group
Down stringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - Ldb
Method string - Load balance method: weighted or least-session.
- Name string
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- Server
Lists List<Pulumiverse.Fortios. Webproxy. Inputs. Forwardservergroup Server List> - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Affinity string
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Group
Down stringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - Ldb
Method string - Load balance method: weighted or least-session.
- Name string
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- Server
Lists []ForwardservergroupServer List Args - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- affinity String
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group
Down StringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - ldb
Method String - Load balance method: weighted or least-session.
- name String
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- server
Lists List<ForwardservergroupServer List> - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- affinity string
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group
Down stringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - ldb
Method string - Load balance method: weighted or least-session.
- name string
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- server
Lists ForwardservergroupServer List[] - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- affinity str
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group_
down_ stroption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - ldb_
method str - Load balance method: weighted or least-session.
- name str
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- server_
lists Sequence[ForwardservergroupServer List Args] - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- affinity String
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group
Down StringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - ldb
Method String - Load balance method: weighted or least-session.
- name String
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- server
Lists List<Property Map> - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Forwardservergroup 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 Forwardservergroup Resource
Get an existing Forwardservergroup 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?: ForwardservergroupState, opts?: CustomResourceOptions): Forwardservergroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
affinity: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
group_down_option: Optional[str] = None,
ldb_method: Optional[str] = None,
name: Optional[str] = None,
server_lists: Optional[Sequence[ForwardservergroupServerListArgs]] = None,
vdomparam: Optional[str] = None) -> Forwardservergroup
func GetForwardservergroup(ctx *Context, name string, id IDInput, state *ForwardservergroupState, opts ...ResourceOption) (*Forwardservergroup, error)
public static Forwardservergroup Get(string name, Input<string> id, ForwardservergroupState? state, CustomResourceOptions? opts = null)
public static Forwardservergroup get(String name, Output<String> id, ForwardservergroupState 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.
- Affinity string
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Group
Down stringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - Ldb
Method string - Load balance method: weighted or least-session.
- Name string
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- Server
Lists List<Pulumiverse.Fortios. Webproxy. Inputs. Forwardservergroup Server List> - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Affinity string
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Group
Down stringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - Ldb
Method string - Load balance method: weighted or least-session.
- Name string
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- Server
Lists []ForwardservergroupServer List Args - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- affinity String
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group
Down StringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - ldb
Method String - Load balance method: weighted or least-session.
- name String
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- server
Lists List<ForwardservergroupServer List> - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- affinity string
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group
Down stringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - ldb
Method string - Load balance method: weighted or least-session.
- name string
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- server
Lists ForwardservergroupServer List[] - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- affinity str
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group_
down_ stroption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - ldb_
method str - Load balance method: weighted or least-session.
- name str
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- server_
lists Sequence[ForwardservergroupServer List Args] - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- affinity String
- Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global). Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwise, conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- group
Down StringOption - Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination. Valid values:
block
,pass
. - ldb
Method String - Load balance method: weighted or least-session.
- name String
- Configure a forward server group consisting one or multiple forward servers. Supports failover and load balancing.
- server
Lists List<Property Map> - Add web forward servers to a list to form a server group. Optionally assign weights to each server. The structure of
server_list
block is documented below. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Supporting Types
ForwardservergroupServerList, ForwardservergroupServerListArgs
Import
WebProxy ForwardServerGroup can be imported using any of these accepted formats:
$ pulumi import fortios:webproxy/forwardservergroup:Forwardservergroup labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:webproxy/forwardservergroup:Forwardservergroup labelname {{name}}
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.