Configure an ICAP server group consisting of multiple forward servers. Supports failover and load balancing.
The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.
server_list:fortimanager.ObjectIcapServergroupServerlist
Create ObjectIcapServergroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectIcapServergroup(name: string, args?: ObjectIcapServergroupArgs, opts?: CustomResourceOptions);@overload
def ObjectIcapServergroup(resource_name: str,
args: Optional[ObjectIcapServergroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectIcapServergroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
ldb_method: Optional[str] = None,
name: Optional[str] = None,
object_icap_servergroup_id: Optional[str] = None,
scopetype: Optional[str] = None,
server_lists: Optional[Sequence[ObjectIcapServergroupServerListArgs]] = None)func NewObjectIcapServergroup(ctx *Context, name string, args *ObjectIcapServergroupArgs, opts ...ResourceOption) (*ObjectIcapServergroup, error)public ObjectIcapServergroup(string name, ObjectIcapServergroupArgs? args = null, CustomResourceOptions? opts = null)
public ObjectIcapServergroup(String name, ObjectIcapServergroupArgs args)
public ObjectIcapServergroup(String name, ObjectIcapServergroupArgs args, CustomResourceOptions options)
type: fortimanager:ObjectIcapServergroup
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 ObjectIcapServergroupArgs
- 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 ObjectIcapServergroupArgs
- 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 ObjectIcapServergroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectIcapServergroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectIcapServergroupArgs
- 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 objectIcapServergroupResource = new Fortimanager.ObjectIcapServergroup("objectIcapServergroupResource", new()
{
Adom = "string",
DynamicSortSubtable = "string",
LdbMethod = "string",
Name = "string",
ObjectIcapServergroupId = "string",
Scopetype = "string",
ServerLists = new[]
{
new Fortimanager.Inputs.ObjectIcapServergroupServerListArgs
{
Names = new[]
{
"string",
},
Weight = 0,
},
},
});
example, err := fortimanager.NewObjectIcapServergroup(ctx, "objectIcapServergroupResource", &fortimanager.ObjectIcapServergroupArgs{
Adom: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
LdbMethod: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectIcapServergroupId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
ServerLists: fortimanager.ObjectIcapServergroupServerListTypeArray{
&fortimanager.ObjectIcapServergroupServerListTypeArgs{
Names: pulumi.StringArray{
pulumi.String("string"),
},
Weight: pulumi.Float64(0),
},
},
})
var objectIcapServergroupResource = new ObjectIcapServergroup("objectIcapServergroupResource", ObjectIcapServergroupArgs.builder()
.adom("string")
.dynamicSortSubtable("string")
.ldbMethod("string")
.name("string")
.objectIcapServergroupId("string")
.scopetype("string")
.serverLists(ObjectIcapServergroupServerListArgs.builder()
.names("string")
.weight(0.0)
.build())
.build());
object_icap_servergroup_resource = fortimanager.ObjectIcapServergroup("objectIcapServergroupResource",
adom="string",
dynamic_sort_subtable="string",
ldb_method="string",
name="string",
object_icap_servergroup_id="string",
scopetype="string",
server_lists=[{
"names": ["string"],
"weight": 0,
}])
const objectIcapServergroupResource = new fortimanager.ObjectIcapServergroup("objectIcapServergroupResource", {
adom: "string",
dynamicSortSubtable: "string",
ldbMethod: "string",
name: "string",
objectIcapServergroupId: "string",
scopetype: "string",
serverLists: [{
names: ["string"],
weight: 0,
}],
});
type: fortimanager:ObjectIcapServergroup
properties:
adom: string
dynamicSortSubtable: string
ldbMethod: string
name: string
objectIcapServergroupId: string
scopetype: string
serverLists:
- names:
- string
weight: 0
ObjectIcapServergroup 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 ObjectIcapServergroup resource accepts the following input properties:
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Ldb
Method string - Load balance method. Valid values:
weighted,least-session,active-passive. - Name string
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- Object
Icap stringServergroup Id - an identifier for the resource with format {{name}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Server
Lists List<ObjectIcap Servergroup Server List> - Server-List. The structure of
server_listblock is documented below.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Ldb
Method string - Load balance method. Valid values:
weighted,least-session,active-passive. - Name string
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- Object
Icap stringServergroup Id - an identifier for the resource with format {{name}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Server
Lists []ObjectIcap Servergroup Server List Type Args - Server-List. The structure of
server_listblock is documented below.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- ldb
Method String - Load balance method. Valid values:
weighted,least-session,active-passive. - name String
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- object
Icap StringServergroup Id - an identifier for the resource with format {{name}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - server
Lists List<ObjectIcap Servergroup Server List> - Server-List. The structure of
server_listblock is documented below.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- ldb
Method string - Load balance method. Valid values:
weighted,least-session,active-passive. - name string
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- object
Icap stringServergroup Id - an identifier for the resource with format {{name}}.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - server
Lists ObjectIcap Servergroup Server List[] - Server-List. The structure of
server_listblock is documented below.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - dynamic_
sort_ strsubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- ldb_
method str - Load balance method. Valid values:
weighted,least-session,active-passive. - name str
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- object_
icap_ strservergroup_ id - an identifier for the resource with format {{name}}.
- scopetype str
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - server_
lists Sequence[ObjectIcap Servergroup Server List Args] - Server-List. The structure of
server_listblock is documented below.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- ldb
Method String - Load balance method. Valid values:
weighted,least-session,active-passive. - name String
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- object
Icap StringServergroup Id - an identifier for the resource with format {{name}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - server
Lists List<Property Map> - Server-List. The structure of
server_listblock is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectIcapServergroup 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 ObjectIcapServergroup Resource
Get an existing ObjectIcapServergroup 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?: ObjectIcapServergroupState, opts?: CustomResourceOptions): ObjectIcapServergroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
ldb_method: Optional[str] = None,
name: Optional[str] = None,
object_icap_servergroup_id: Optional[str] = None,
scopetype: Optional[str] = None,
server_lists: Optional[Sequence[ObjectIcapServergroupServerListArgs]] = None) -> ObjectIcapServergroupfunc GetObjectIcapServergroup(ctx *Context, name string, id IDInput, state *ObjectIcapServergroupState, opts ...ResourceOption) (*ObjectIcapServergroup, error)public static ObjectIcapServergroup Get(string name, Input<string> id, ObjectIcapServergroupState? state, CustomResourceOptions? opts = null)public static ObjectIcapServergroup get(String name, Output<String> id, ObjectIcapServergroupState state, CustomResourceOptions options)resources: _: type: fortimanager:ObjectIcapServergroup get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Ldb
Method string - Load balance method. Valid values:
weighted,least-session,active-passive. - Name string
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- Object
Icap stringServergroup Id - an identifier for the resource with format {{name}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Server
Lists List<ObjectIcap Servergroup Server List> - Server-List. The structure of
server_listblock is documented below.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Ldb
Method string - Load balance method. Valid values:
weighted,least-session,active-passive. - Name string
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- Object
Icap stringServergroup Id - an identifier for the resource with format {{name}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Server
Lists []ObjectIcap Servergroup Server List Type Args - Server-List. The structure of
server_listblock is documented below.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- ldb
Method String - Load balance method. Valid values:
weighted,least-session,active-passive. - name String
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- object
Icap StringServergroup Id - an identifier for the resource with format {{name}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - server
Lists List<ObjectIcap Servergroup Server List> - Server-List. The structure of
server_listblock is documented below.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- ldb
Method string - Load balance method. Valid values:
weighted,least-session,active-passive. - name string
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- object
Icap stringServergroup Id - an identifier for the resource with format {{name}}.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - server
Lists ObjectIcap Servergroup Server List[] - Server-List. The structure of
server_listblock is documented below.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - dynamic_
sort_ strsubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- ldb_
method str - Load balance method. Valid values:
weighted,least-session,active-passive. - name str
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- object_
icap_ strservergroup_ id - an identifier for the resource with format {{name}}.
- scopetype str
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - server_
lists Sequence[ObjectIcap Servergroup Server List Args] - Server-List. The structure of
server_listblock is documented below.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- ldb
Method String - Load balance method. Valid values:
weighted,least-session,active-passive. - name String
- Configure an ICAP server group consisting one or multiple forward servers. Supports failover and load balancing.
- object
Icap StringServergroup Id - an identifier for the resource with format {{name}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - server
Lists List<Property Map> - Server-List. The structure of
server_listblock is documented below.
Supporting Types
ObjectIcapServergroupServerList, ObjectIcapServergroupServerListArgs
Import
ObjectIcap ServerGroup can be imported using any of these accepted formats:
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/objectIcapServergroup:ObjectIcapServergroup labelname {{name}}
$ unset “FORTIMANAGER_IMPORT_TABLE”
-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortimanager fortinetdev/terraform-provider-fortimanager
- License
- Notes
- This Pulumi package is based on the
fortimanagerTerraform Provider.
