Add ICAP servers to a list to form a server group. Optionally assign weights to each server.
This resource is a sub resource for variable
server_listof resourcefortimanager.ObjectIcapServergroup. Conflict and overwrite may occur if use both of them.
Create ObjectIcapServergroupServerlist Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectIcapServergroupServerlist(name: string, args: ObjectIcapServergroupServerlistArgs, opts?: CustomResourceOptions);@overload
def ObjectIcapServergroupServerlist(resource_name: str,
args: ObjectIcapServergroupServerlistArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectIcapServergroupServerlist(resource_name: str,
opts: Optional[ResourceOptions] = None,
server_group: Optional[str] = None,
adom: Optional[str] = None,
name: Optional[str] = None,
object_icap_servergroup_serverlist_id: Optional[str] = None,
scopetype: Optional[str] = None,
weight: Optional[float] = None)func NewObjectIcapServergroupServerlist(ctx *Context, name string, args ObjectIcapServergroupServerlistArgs, opts ...ResourceOption) (*ObjectIcapServergroupServerlist, error)public ObjectIcapServergroupServerlist(string name, ObjectIcapServergroupServerlistArgs args, CustomResourceOptions? opts = null)
public ObjectIcapServergroupServerlist(String name, ObjectIcapServergroupServerlistArgs args)
public ObjectIcapServergroupServerlist(String name, ObjectIcapServergroupServerlistArgs args, CustomResourceOptions options)
type: fortimanager:ObjectIcapServergroupServerlist
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 ObjectIcapServergroupServerlistArgs
- 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 ObjectIcapServergroupServerlistArgs
- 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 ObjectIcapServergroupServerlistArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectIcapServergroupServerlistArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectIcapServergroupServerlistArgs
- 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 objectIcapServergroupServerlistResource = new Fortimanager.ObjectIcapServergroupServerlist("objectIcapServergroupServerlistResource", new()
{
ServerGroup = "string",
Adom = "string",
Name = "string",
ObjectIcapServergroupServerlistId = "string",
Scopetype = "string",
Weight = 0,
});
example, err := fortimanager.NewObjectIcapServergroupServerlist(ctx, "objectIcapServergroupServerlistResource", &fortimanager.ObjectIcapServergroupServerlistArgs{
ServerGroup: pulumi.String("string"),
Adom: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectIcapServergroupServerlistId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Weight: pulumi.Float64(0),
})
var objectIcapServergroupServerlistResource = new ObjectIcapServergroupServerlist("objectIcapServergroupServerlistResource", ObjectIcapServergroupServerlistArgs.builder()
.serverGroup("string")
.adom("string")
.name("string")
.objectIcapServergroupServerlistId("string")
.scopetype("string")
.weight(0.0)
.build());
object_icap_servergroup_serverlist_resource = fortimanager.ObjectIcapServergroupServerlist("objectIcapServergroupServerlistResource",
server_group="string",
adom="string",
name="string",
object_icap_servergroup_serverlist_id="string",
scopetype="string",
weight=0)
const objectIcapServergroupServerlistResource = new fortimanager.ObjectIcapServergroupServerlist("objectIcapServergroupServerlistResource", {
serverGroup: "string",
adom: "string",
name: "string",
objectIcapServergroupServerlistId: "string",
scopetype: "string",
weight: 0,
});
type: fortimanager:ObjectIcapServergroupServerlist
properties:
adom: string
name: string
objectIcapServergroupServerlistId: string
scopetype: string
serverGroup: string
weight: 0
ObjectIcapServergroupServerlist 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 ObjectIcapServergroupServerlist resource accepts the following input properties:
- Server
Group string - Server Group.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Name string
- ICAP server name.
- Object
Icap stringServergroup Serverlist 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. - Weight double
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- Server
Group string - Server Group.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Name string
- ICAP server name.
- Object
Icap stringServergroup Serverlist 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. - Weight float64
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- server
Group String - Server Group.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - name String
- ICAP server name.
- object
Icap StringServergroup Serverlist 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. - weight Double
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- server
Group string - Server Group.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - name string
- ICAP server name.
- object
Icap stringServergroup Serverlist 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. - weight number
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- server_
group str - Server Group.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - name str
- ICAP server name.
- object_
icap_ strservergroup_ serverlist_ 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. - weight float
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- server
Group String - Server Group.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - name String
- ICAP server name.
- object
Icap StringServergroup Serverlist 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. - weight Number
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectIcapServergroupServerlist 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 ObjectIcapServergroupServerlist Resource
Get an existing ObjectIcapServergroupServerlist 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?: ObjectIcapServergroupServerlistState, opts?: CustomResourceOptions): ObjectIcapServergroupServerlist@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
name: Optional[str] = None,
object_icap_servergroup_serverlist_id: Optional[str] = None,
scopetype: Optional[str] = None,
server_group: Optional[str] = None,
weight: Optional[float] = None) -> ObjectIcapServergroupServerlistfunc GetObjectIcapServergroupServerlist(ctx *Context, name string, id IDInput, state *ObjectIcapServergroupServerlistState, opts ...ResourceOption) (*ObjectIcapServergroupServerlist, error)public static ObjectIcapServergroupServerlist Get(string name, Input<string> id, ObjectIcapServergroupServerlistState? state, CustomResourceOptions? opts = null)public static ObjectIcapServergroupServerlist get(String name, Output<String> id, ObjectIcapServergroupServerlistState state, CustomResourceOptions options)resources: _: type: fortimanager:ObjectIcapServergroupServerlist 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. - Name string
- ICAP server name.
- Object
Icap stringServergroup Serverlist 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
Group string - Server Group.
- Weight double
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Name string
- ICAP server name.
- Object
Icap stringServergroup Serverlist 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
Group string - Server Group.
- Weight float64
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - name String
- ICAP server name.
- object
Icap StringServergroup Serverlist 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
Group String - Server Group.
- weight Double
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - name string
- ICAP server name.
- object
Icap stringServergroup Serverlist 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
Group string - Server Group.
- weight number
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - name str
- ICAP server name.
- object_
icap_ strservergroup_ serverlist_ 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_
group str - Server Group.
- weight float
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - name String
- ICAP server name.
- object
Icap StringServergroup Serverlist 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
Group String - Server Group.
- weight Number
- Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10).
Import
ObjectIcap ServerGroupServerList can be imported using any of these accepted formats:
Set import_options = [“server_group=YOUR_VALUE”] in the provider section.
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/objectIcapServergroupServerlist:ObjectIcapServergroupServerlist 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.
