fortios.firewall/service.Custom
Explore with Pulumi AI
Configure custom services.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.firewall.service.Custom("trname", {
appServiceType: "disable",
category: "General",
checkResetRange: "default",
color: 0,
helper: "auto",
iprange: "0.0.0.0",
protocol: "TCP/UDP/SCTP",
protocolNumber: 6,
proxy: "disable",
tcpHalfcloseTimer: 0,
tcpHalfopenTimer: 0,
tcpPortrange: "223-332",
tcpTimewaitTimer: 0,
udpIdleTimer: 0,
visibility: "enable",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.firewall.service.Custom("trname",
app_service_type="disable",
category="General",
check_reset_range="default",
color=0,
helper="auto",
iprange="0.0.0.0",
protocol="TCP/UDP/SCTP",
protocol_number=6,
proxy="disable",
tcp_halfclose_timer=0,
tcp_halfopen_timer=0,
tcp_portrange="223-332",
tcp_timewait_timer=0,
udp_idle_timer=0,
visibility="enable")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := firewall.NewCustom(ctx, "trname", &firewall.CustomArgs{
AppServiceType: pulumi.String("disable"),
Category: pulumi.String("General"),
CheckResetRange: pulumi.String("default"),
Color: pulumi.Int(0),
Helper: pulumi.String("auto"),
Iprange: pulumi.String("0.0.0.0"),
Protocol: pulumi.String("TCP/UDP/SCTP"),
ProtocolNumber: pulumi.Int(6),
Proxy: pulumi.String("disable"),
TcpHalfcloseTimer: pulumi.Int(0),
TcpHalfopenTimer: pulumi.Int(0),
TcpPortrange: pulumi.String("223-332"),
TcpTimewaitTimer: pulumi.Int(0),
UdpIdleTimer: pulumi.Int(0),
Visibility: pulumi.String("enable"),
})
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 trname = new Fortios.Firewall.Service.Custom("trname", new()
{
AppServiceType = "disable",
Category = "General",
CheckResetRange = "default",
Color = 0,
Helper = "auto",
Iprange = "0.0.0.0",
Protocol = "TCP/UDP/SCTP",
ProtocolNumber = 6,
Proxy = "disable",
TcpHalfcloseTimer = 0,
TcpHalfopenTimer = 0,
TcpPortrange = "223-332",
TcpTimewaitTimer = 0,
UdpIdleTimer = 0,
Visibility = "enable",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.firewall.Custom;
import com.pulumi.fortios.firewall.CustomArgs;
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 trname = new Custom("trname", CustomArgs.builder()
.appServiceType("disable")
.category("General")
.checkResetRange("default")
.color(0)
.helper("auto")
.iprange("0.0.0.0")
.protocol("TCP/UDP/SCTP")
.protocolNumber(6)
.proxy("disable")
.tcpHalfcloseTimer(0)
.tcpHalfopenTimer(0)
.tcpPortrange("223-332")
.tcpTimewaitTimer(0)
.udpIdleTimer(0)
.visibility("enable")
.build());
}
}
resources:
trname:
type: fortios:firewall/service:Custom
properties:
appServiceType: disable
category: General
checkResetRange: default
color: 0
helper: auto
iprange: 0.0.0.0
protocol: TCP/UDP/SCTP
protocolNumber: 6
proxy: disable
tcpHalfcloseTimer: 0
tcpHalfopenTimer: 0
tcpPortrange: 223-332
tcpTimewaitTimer: 0
udpIdleTimer: 0
visibility: enable
Create Custom Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Custom(name: string, args?: CustomArgs, opts?: CustomResourceOptions);
@overload
def Custom(resource_name: str,
args: Optional[CustomArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Custom(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_categories: Optional[Sequence[CustomAppCategoryArgs]] = None,
app_service_type: Optional[str] = None,
applications: Optional[Sequence[CustomApplicationArgs]] = None,
category: Optional[str] = None,
check_reset_range: Optional[str] = None,
color: Optional[int] = None,
comment: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
fabric_object: Optional[str] = None,
fqdn: Optional[str] = None,
get_all_tables: Optional[str] = None,
helper: Optional[str] = None,
icmpcode: Optional[int] = None,
icmptype: Optional[int] = None,
iprange: Optional[str] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
protocol_number: Optional[int] = None,
proxy: Optional[str] = None,
sctp_portrange: Optional[str] = None,
session_ttl: Optional[int] = None,
tcp_halfclose_timer: Optional[int] = None,
tcp_halfopen_timer: Optional[int] = None,
tcp_portrange: Optional[str] = None,
tcp_rst_timer: Optional[int] = None,
tcp_timewait_timer: Optional[int] = None,
udp_idle_timer: Optional[int] = None,
udp_portrange: Optional[str] = None,
uuid: Optional[str] = None,
vdomparam: Optional[str] = None,
visibility: Optional[str] = None)
func NewCustom(ctx *Context, name string, args *CustomArgs, opts ...ResourceOption) (*Custom, error)
public Custom(string name, CustomArgs? args = null, CustomResourceOptions? opts = null)
public Custom(String name, CustomArgs args)
public Custom(String name, CustomArgs args, CustomResourceOptions options)
type: fortios:firewall/service/custom:Custom
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 CustomArgs
- 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 CustomArgs
- 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 CustomArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Custom 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 Custom resource accepts the following input properties:
- App
Categories List<Pulumiverse.Fortios. Firewall. Service. Inputs. Custom App Category> - Application category ID. The structure of
app_category
block is documented below. - App
Service stringType - Application service type. Valid values:
disable
,app-id
,app-category
. - Applications
List<Pulumiverse.
Fortios. Firewall. Service. Inputs. Custom Application> - Application ID. The structure of
application
block is documented below. - Category string
- Service category.
- Check
Reset stringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - Color int
- Color of icon on the GUI.
- Comment string
- Comment.
- 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 ].
- Fabric
Object string - Security Fabric global object setting. Valid values:
enable
,disable
. - Fqdn string
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Helper string
- Helper name.
- Icmpcode int
- ICMP code.
- Icmptype int
- ICMP type.
- Iprange string
- Start and end of the IP range associated with service.
- Name string
- Custom service name.
- Protocol string
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - Protocol
Number int - IP protocol number.
- Proxy string
- Enable/disable web proxy service. Valid values:
enable
,disable
. - Sctp
Portrange string - Multiple SCTP port ranges.
- Session
Ttl int - Session TTL (300 - 604800, 0 = default).
- Tcp
Halfclose intTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- Tcp
Halfopen intTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- Tcp
Portrange string - Multiple TCP port ranges.
- Tcp
Rst intTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- Tcp
Timewait intTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- Udp
Idle intTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- Udp
Portrange string - Multiple UDP port ranges.
- Uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- Visibility string
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- App
Categories []CustomApp Category Args - Application category ID. The structure of
app_category
block is documented below. - App
Service stringType - Application service type. Valid values:
disable
,app-id
,app-category
. - Applications
[]Custom
Application Args - Application ID. The structure of
application
block is documented below. - Category string
- Service category.
- Check
Reset stringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - Color int
- Color of icon on the GUI.
- Comment string
- Comment.
- 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 ].
- Fabric
Object string - Security Fabric global object setting. Valid values:
enable
,disable
. - Fqdn string
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Helper string
- Helper name.
- Icmpcode int
- ICMP code.
- Icmptype int
- ICMP type.
- Iprange string
- Start and end of the IP range associated with service.
- Name string
- Custom service name.
- Protocol string
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - Protocol
Number int - IP protocol number.
- Proxy string
- Enable/disable web proxy service. Valid values:
enable
,disable
. - Sctp
Portrange string - Multiple SCTP port ranges.
- Session
Ttl int - Session TTL (300 - 604800, 0 = default).
- Tcp
Halfclose intTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- Tcp
Halfopen intTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- Tcp
Portrange string - Multiple TCP port ranges.
- Tcp
Rst intTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- Tcp
Timewait intTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- Udp
Idle intTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- Udp
Portrange string - Multiple UDP port ranges.
- Uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- Visibility string
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- app
Categories List<CustomApp Category> - Application category ID. The structure of
app_category
block is documented below. - app
Service StringType - Application service type. Valid values:
disable
,app-id
,app-category
. - applications
List<Custom
Application> - Application ID. The structure of
application
block is documented below. - category String
- Service category.
- check
Reset StringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - color Integer
- Color of icon on the GUI.
- comment String
- Comment.
- 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 ].
- fabric
Object String - Security Fabric global object setting. Valid values:
enable
,disable
. - fqdn String
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- helper String
- Helper name.
- icmpcode Integer
- ICMP code.
- icmptype Integer
- ICMP type.
- iprange String
- Start and end of the IP range associated with service.
- name String
- Custom service name.
- protocol String
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - protocol
Number Integer - IP protocol number.
- proxy String
- Enable/disable web proxy service. Valid values:
enable
,disable
. - sctp
Portrange String - Multiple SCTP port ranges.
- session
Ttl Integer - Session TTL (300 - 604800, 0 = default).
- tcp
Halfclose IntegerTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- tcp
Halfopen IntegerTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- tcp
Portrange String - Multiple TCP port ranges.
- tcp
Rst IntegerTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- tcp
Timewait IntegerTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- udp
Idle IntegerTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- udp
Portrange String - Multiple UDP port ranges.
- uuid String
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- visibility String
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- app
Categories CustomApp Category[] - Application category ID. The structure of
app_category
block is documented below. - app
Service stringType - Application service type. Valid values:
disable
,app-id
,app-category
. - applications
Custom
Application[] - Application ID. The structure of
application
block is documented below. - category string
- Service category.
- check
Reset stringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - color number
- Color of icon on the GUI.
- comment string
- Comment.
- 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 ].
- fabric
Object string - Security Fabric global object setting. Valid values:
enable
,disable
. - fqdn string
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- helper string
- Helper name.
- icmpcode number
- ICMP code.
- icmptype number
- ICMP type.
- iprange string
- Start and end of the IP range associated with service.
- name string
- Custom service name.
- protocol string
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - protocol
Number number - IP protocol number.
- proxy string
- Enable/disable web proxy service. Valid values:
enable
,disable
. - sctp
Portrange string - Multiple SCTP port ranges.
- session
Ttl number - Session TTL (300 - 604800, 0 = default).
- tcp
Halfclose numberTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- tcp
Halfopen numberTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- tcp
Portrange string - Multiple TCP port ranges.
- tcp
Rst numberTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- tcp
Timewait numberTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- udp
Idle numberTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- udp
Portrange string - Multiple UDP port ranges.
- uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- visibility string
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- app_
categories Sequence[CustomApp Category Args] - Application category ID. The structure of
app_category
block is documented below. - app_
service_ strtype - Application service type. Valid values:
disable
,app-id
,app-category
. - applications
Sequence[Custom
Application Args] - Application ID. The structure of
application
block is documented below. - category str
- Service category.
- check_
reset_ strrange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - color int
- Color of icon on the GUI.
- comment str
- Comment.
- 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 ].
- fabric_
object str - Security Fabric global object setting. Valid values:
enable
,disable
. - fqdn str
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- helper str
- Helper name.
- icmpcode int
- ICMP code.
- icmptype int
- ICMP type.
- iprange str
- Start and end of the IP range associated with service.
- name str
- Custom service name.
- protocol str
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - protocol_
number int - IP protocol number.
- proxy str
- Enable/disable web proxy service. Valid values:
enable
,disable
. - sctp_
portrange str - Multiple SCTP port ranges.
- session_
ttl int - Session TTL (300 - 604800, 0 = default).
- tcp_
halfclose_ inttimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- tcp_
halfopen_ inttimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- tcp_
portrange str - Multiple TCP port ranges.
- tcp_
rst_ inttimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- tcp_
timewait_ inttimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- udp_
idle_ inttimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- udp_
portrange str - Multiple UDP port ranges.
- uuid str
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- visibility str
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- app
Categories List<Property Map> - Application category ID. The structure of
app_category
block is documented below. - app
Service StringType - Application service type. Valid values:
disable
,app-id
,app-category
. - applications List<Property Map>
- Application ID. The structure of
application
block is documented below. - category String
- Service category.
- check
Reset StringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - color Number
- Color of icon on the GUI.
- comment String
- Comment.
- 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 ].
- fabric
Object String - Security Fabric global object setting. Valid values:
enable
,disable
. - fqdn String
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- helper String
- Helper name.
- icmpcode Number
- ICMP code.
- icmptype Number
- ICMP type.
- iprange String
- Start and end of the IP range associated with service.
- name String
- Custom service name.
- protocol String
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - protocol
Number Number - IP protocol number.
- proxy String
- Enable/disable web proxy service. Valid values:
enable
,disable
. - sctp
Portrange String - Multiple SCTP port ranges.
- session
Ttl Number - Session TTL (300 - 604800, 0 = default).
- tcp
Halfclose NumberTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- tcp
Halfopen NumberTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- tcp
Portrange String - Multiple TCP port ranges.
- tcp
Rst NumberTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- tcp
Timewait NumberTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- udp
Idle NumberTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- udp
Portrange String - Multiple UDP port ranges.
- uuid String
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- visibility String
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Custom 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 Custom Resource
Get an existing Custom 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?: CustomState, opts?: CustomResourceOptions): Custom
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_categories: Optional[Sequence[CustomAppCategoryArgs]] = None,
app_service_type: Optional[str] = None,
applications: Optional[Sequence[CustomApplicationArgs]] = None,
category: Optional[str] = None,
check_reset_range: Optional[str] = None,
color: Optional[int] = None,
comment: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
fabric_object: Optional[str] = None,
fqdn: Optional[str] = None,
get_all_tables: Optional[str] = None,
helper: Optional[str] = None,
icmpcode: Optional[int] = None,
icmptype: Optional[int] = None,
iprange: Optional[str] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
protocol_number: Optional[int] = None,
proxy: Optional[str] = None,
sctp_portrange: Optional[str] = None,
session_ttl: Optional[int] = None,
tcp_halfclose_timer: Optional[int] = None,
tcp_halfopen_timer: Optional[int] = None,
tcp_portrange: Optional[str] = None,
tcp_rst_timer: Optional[int] = None,
tcp_timewait_timer: Optional[int] = None,
udp_idle_timer: Optional[int] = None,
udp_portrange: Optional[str] = None,
uuid: Optional[str] = None,
vdomparam: Optional[str] = None,
visibility: Optional[str] = None) -> Custom
func GetCustom(ctx *Context, name string, id IDInput, state *CustomState, opts ...ResourceOption) (*Custom, error)
public static Custom Get(string name, Input<string> id, CustomState? state, CustomResourceOptions? opts = null)
public static Custom get(String name, Output<String> id, CustomState 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
Categories List<Pulumiverse.Fortios. Firewall. Service. Inputs. Custom App Category> - Application category ID. The structure of
app_category
block is documented below. - App
Service stringType - Application service type. Valid values:
disable
,app-id
,app-category
. - Applications
List<Pulumiverse.
Fortios. Firewall. Service. Inputs. Custom Application> - Application ID. The structure of
application
block is documented below. - Category string
- Service category.
- Check
Reset stringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - Color int
- Color of icon on the GUI.
- Comment string
- Comment.
- 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 ].
- Fabric
Object string - Security Fabric global object setting. Valid values:
enable
,disable
. - Fqdn string
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Helper string
- Helper name.
- Icmpcode int
- ICMP code.
- Icmptype int
- ICMP type.
- Iprange string
- Start and end of the IP range associated with service.
- Name string
- Custom service name.
- Protocol string
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - Protocol
Number int - IP protocol number.
- Proxy string
- Enable/disable web proxy service. Valid values:
enable
,disable
. - Sctp
Portrange string - Multiple SCTP port ranges.
- Session
Ttl int - Session TTL (300 - 604800, 0 = default).
- Tcp
Halfclose intTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- Tcp
Halfopen intTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- Tcp
Portrange string - Multiple TCP port ranges.
- Tcp
Rst intTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- Tcp
Timewait intTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- Udp
Idle intTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- Udp
Portrange string - Multiple UDP port ranges.
- Uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- Visibility string
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- App
Categories []CustomApp Category Args - Application category ID. The structure of
app_category
block is documented below. - App
Service stringType - Application service type. Valid values:
disable
,app-id
,app-category
. - Applications
[]Custom
Application Args - Application ID. The structure of
application
block is documented below. - Category string
- Service category.
- Check
Reset stringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - Color int
- Color of icon on the GUI.
- Comment string
- Comment.
- 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 ].
- Fabric
Object string - Security Fabric global object setting. Valid values:
enable
,disable
. - Fqdn string
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Helper string
- Helper name.
- Icmpcode int
- ICMP code.
- Icmptype int
- ICMP type.
- Iprange string
- Start and end of the IP range associated with service.
- Name string
- Custom service name.
- Protocol string
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - Protocol
Number int - IP protocol number.
- Proxy string
- Enable/disable web proxy service. Valid values:
enable
,disable
. - Sctp
Portrange string - Multiple SCTP port ranges.
- Session
Ttl int - Session TTL (300 - 604800, 0 = default).
- Tcp
Halfclose intTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- Tcp
Halfopen intTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- Tcp
Portrange string - Multiple TCP port ranges.
- Tcp
Rst intTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- Tcp
Timewait intTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- Udp
Idle intTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- Udp
Portrange string - Multiple UDP port ranges.
- Uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- Visibility string
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- app
Categories List<CustomApp Category> - Application category ID. The structure of
app_category
block is documented below. - app
Service StringType - Application service type. Valid values:
disable
,app-id
,app-category
. - applications
List<Custom
Application> - Application ID. The structure of
application
block is documented below. - category String
- Service category.
- check
Reset StringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - color Integer
- Color of icon on the GUI.
- comment String
- Comment.
- 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 ].
- fabric
Object String - Security Fabric global object setting. Valid values:
enable
,disable
. - fqdn String
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- helper String
- Helper name.
- icmpcode Integer
- ICMP code.
- icmptype Integer
- ICMP type.
- iprange String
- Start and end of the IP range associated with service.
- name String
- Custom service name.
- protocol String
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - protocol
Number Integer - IP protocol number.
- proxy String
- Enable/disable web proxy service. Valid values:
enable
,disable
. - sctp
Portrange String - Multiple SCTP port ranges.
- session
Ttl Integer - Session TTL (300 - 604800, 0 = default).
- tcp
Halfclose IntegerTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- tcp
Halfopen IntegerTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- tcp
Portrange String - Multiple TCP port ranges.
- tcp
Rst IntegerTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- tcp
Timewait IntegerTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- udp
Idle IntegerTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- udp
Portrange String - Multiple UDP port ranges.
- uuid String
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- visibility String
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- app
Categories CustomApp Category[] - Application category ID. The structure of
app_category
block is documented below. - app
Service stringType - Application service type. Valid values:
disable
,app-id
,app-category
. - applications
Custom
Application[] - Application ID. The structure of
application
block is documented below. - category string
- Service category.
- check
Reset stringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - color number
- Color of icon on the GUI.
- comment string
- Comment.
- 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 ].
- fabric
Object string - Security Fabric global object setting. Valid values:
enable
,disable
. - fqdn string
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- helper string
- Helper name.
- icmpcode number
- ICMP code.
- icmptype number
- ICMP type.
- iprange string
- Start and end of the IP range associated with service.
- name string
- Custom service name.
- protocol string
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - protocol
Number number - IP protocol number.
- proxy string
- Enable/disable web proxy service. Valid values:
enable
,disable
. - sctp
Portrange string - Multiple SCTP port ranges.
- session
Ttl number - Session TTL (300 - 604800, 0 = default).
- tcp
Halfclose numberTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- tcp
Halfopen numberTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- tcp
Portrange string - Multiple TCP port ranges.
- tcp
Rst numberTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- tcp
Timewait numberTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- udp
Idle numberTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- udp
Portrange string - Multiple UDP port ranges.
- uuid string
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- visibility string
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- app_
categories Sequence[CustomApp Category Args] - Application category ID. The structure of
app_category
block is documented below. - app_
service_ strtype - Application service type. Valid values:
disable
,app-id
,app-category
. - applications
Sequence[Custom
Application Args] - Application ID. The structure of
application
block is documented below. - category str
- Service category.
- check_
reset_ strrange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - color int
- Color of icon on the GUI.
- comment str
- Comment.
- 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 ].
- fabric_
object str - Security Fabric global object setting. Valid values:
enable
,disable
. - fqdn str
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- helper str
- Helper name.
- icmpcode int
- ICMP code.
- icmptype int
- ICMP type.
- iprange str
- Start and end of the IP range associated with service.
- name str
- Custom service name.
- protocol str
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - protocol_
number int - IP protocol number.
- proxy str
- Enable/disable web proxy service. Valid values:
enable
,disable
. - sctp_
portrange str - Multiple SCTP port ranges.
- session_
ttl int - Session TTL (300 - 604800, 0 = default).
- tcp_
halfclose_ inttimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- tcp_
halfopen_ inttimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- tcp_
portrange str - Multiple TCP port ranges.
- tcp_
rst_ inttimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- tcp_
timewait_ inttimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- udp_
idle_ inttimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- udp_
portrange str - Multiple UDP port ranges.
- uuid str
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- visibility str
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
- app
Categories List<Property Map> - Application category ID. The structure of
app_category
block is documented below. - app
Service StringType - Application service type. Valid values:
disable
,app-id
,app-category
. - applications List<Property Map>
- Application ID. The structure of
application
block is documented below. - category String
- Service category.
- check
Reset StringRange - Configure the type of ICMP error message verification. Valid values:
disable
,strict
,default
. - color Number
- Color of icon on the GUI.
- comment String
- Comment.
- 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 ].
- fabric
Object String - Security Fabric global object setting. Valid values:
enable
,disable
. - fqdn String
- Fully qualified domain name.
- 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, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- helper String
- Helper name.
- icmpcode Number
- ICMP code.
- icmptype Number
- ICMP type.
- iprange String
- Start and end of the IP range associated with service.
- name String
- Custom service name.
- protocol String
- Protocol type based on IANA numbers. Valid values:
TCP/UDP/SCTP
,ICMP
,ICMP6
,IP
,HTTP
,FTP
,CONNECT
,SOCKS-TCP
,SOCKS-UDP
,ALL
. - protocol
Number Number - IP protocol number.
- proxy String
- Enable/disable web proxy service. Valid values:
enable
,disable
. - sctp
Portrange String - Multiple SCTP port ranges.
- session
Ttl Number - Session TTL (300 - 604800, 0 = default).
- tcp
Halfclose NumberTimer - Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
- tcp
Halfopen NumberTimer - Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
- tcp
Portrange String - Multiple TCP port ranges.
- tcp
Rst NumberTimer - Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
- tcp
Timewait NumberTimer - Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
- udp
Idle NumberTimer - Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
- udp
Portrange String - Multiple UDP port ranges.
- uuid String
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
- 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.
- visibility String
- Enable/disable the visibility of the service on the GUI. Valid values:
enable
,disable
.
Supporting Types
CustomAppCategory, CustomAppCategoryArgs
- Id int
- Application category id.
- Id int
- Application category id.
- id Integer
- Application category id.
- id number
- Application category id.
- id int
- Application category id.
- id Number
- Application category id.
CustomApplication, CustomApplicationArgs
- Id int
- Application id.
- Id int
- Application id.
- id Integer
- Application id.
- id number
- Application id.
- id int
- Application id.
- id Number
- Application id.
Import
FirewallService Custom can be imported using any of these accepted formats:
$ pulumi import fortios:firewall/service/custom:Custom labelname {{name}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:firewall/service/custom:Custom 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.