1. Packages
  2. Fortios
  3. API Docs
  4. firewall
  5. firewall/service
  6. Custom
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. 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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Custom resource accepts the following input properties:

AppCategories List<Pulumiverse.Fortios.Firewall.Service.Inputs.CustomAppCategory>
Application category ID. The structure of app_category block is documented below.
AppServiceType string
Application service type. Valid values: disable, app-id, app-category.
Applications List<Pulumiverse.Fortios.Firewall.Service.Inputs.CustomApplication>
Application ID. The structure of application block is documented below.
Category string
Service category.
CheckResetRange string
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
Color int
Color of icon on the GUI.
Comment string
Comment.
DynamicSortSubtable string
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 ].
FabricObject string
Security Fabric global object setting. Valid values: enable, disable.
Fqdn string
Fully qualified domain name.
GetAllTables string
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.
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.
ProtocolNumber int
IP protocol number.
Proxy string
Enable/disable web proxy service. Valid values: enable, disable.
SctpPortrange string
Multiple SCTP port ranges.
SessionTtl int
Session TTL (300 - 604800, 0 = default).
TcpHalfcloseTimer int
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
TcpHalfopenTimer int
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
TcpPortrange string
Multiple TCP port ranges.
TcpRstTimer int
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
TcpTimewaitTimer int
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
UdpIdleTimer int
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
UdpPortrange string
Multiple UDP port ranges.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Vdomparam Changes to this property will trigger replacement. 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.
AppCategories []CustomAppCategoryArgs
Application category ID. The structure of app_category block is documented below.
AppServiceType string
Application service type. Valid values: disable, app-id, app-category.
Applications []CustomApplicationArgs
Application ID. The structure of application block is documented below.
Category string
Service category.
CheckResetRange string
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
Color int
Color of icon on the GUI.
Comment string
Comment.
DynamicSortSubtable string
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 ].
FabricObject string
Security Fabric global object setting. Valid values: enable, disable.
Fqdn string
Fully qualified domain name.
GetAllTables string
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.
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.
ProtocolNumber int
IP protocol number.
Proxy string
Enable/disable web proxy service. Valid values: enable, disable.
SctpPortrange string
Multiple SCTP port ranges.
SessionTtl int
Session TTL (300 - 604800, 0 = default).
TcpHalfcloseTimer int
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
TcpHalfopenTimer int
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
TcpPortrange string
Multiple TCP port ranges.
TcpRstTimer int
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
TcpTimewaitTimer int
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
UdpIdleTimer int
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
UdpPortrange string
Multiple UDP port ranges.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Vdomparam Changes to this property will trigger replacement. 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.
appCategories List<CustomAppCategory>
Application category ID. The structure of app_category block is documented below.
appServiceType String
Application service type. Valid values: disable, app-id, app-category.
applications List<CustomApplication>
Application ID. The structure of application block is documented below.
category String
Service category.
checkResetRange String
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
color Integer
Color of icon on the GUI.
comment String
Comment.
dynamicSortSubtable String
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 ].
fabricObject String
Security Fabric global object setting. Valid values: enable, disable.
fqdn String
Fully qualified domain name.
getAllTables String
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.
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.
protocolNumber Integer
IP protocol number.
proxy String
Enable/disable web proxy service. Valid values: enable, disable.
sctpPortrange String
Multiple SCTP port ranges.
sessionTtl Integer
Session TTL (300 - 604800, 0 = default).
tcpHalfcloseTimer Integer
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
tcpHalfopenTimer Integer
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
tcpPortrange String
Multiple TCP port ranges.
tcpRstTimer Integer
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
tcpTimewaitTimer Integer
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
udpIdleTimer Integer
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
udpPortrange String
Multiple UDP port ranges.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
vdomparam Changes to this property will trigger replacement. 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.
appCategories CustomAppCategory[]
Application category ID. The structure of app_category block is documented below.
appServiceType string
Application service type. Valid values: disable, app-id, app-category.
applications CustomApplication[]
Application ID. The structure of application block is documented below.
category string
Service category.
checkResetRange string
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
color number
Color of icon on the GUI.
comment string
Comment.
dynamicSortSubtable string
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 ].
fabricObject string
Security Fabric global object setting. Valid values: enable, disable.
fqdn string
Fully qualified domain name.
getAllTables string
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.
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.
protocolNumber number
IP protocol number.
proxy string
Enable/disable web proxy service. Valid values: enable, disable.
sctpPortrange string
Multiple SCTP port ranges.
sessionTtl number
Session TTL (300 - 604800, 0 = default).
tcpHalfcloseTimer number
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
tcpHalfopenTimer number
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
tcpPortrange string
Multiple TCP port ranges.
tcpRstTimer number
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
tcpTimewaitTimer number
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
udpIdleTimer number
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
udpPortrange string
Multiple UDP port ranges.
uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
vdomparam Changes to this property will trigger replacement. 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[CustomAppCategoryArgs]
Application category ID. The structure of app_category block is documented below.
app_service_type str
Application service type. Valid values: disable, app-id, app-category.
applications Sequence[CustomApplicationArgs]
Application ID. The structure of application block is documented below.
category str
Service category.
check_reset_range str
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_subtable str
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_tables str
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.
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_timer int
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
tcp_halfopen_timer int
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_timer int
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
tcp_timewait_timer int
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
udp_idle_timer int
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 Changes to this property will trigger replacement. 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.
appCategories List<Property Map>
Application category ID. The structure of app_category block is documented below.
appServiceType String
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.
checkResetRange String
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
color Number
Color of icon on the GUI.
comment String
Comment.
dynamicSortSubtable String
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 ].
fabricObject String
Security Fabric global object setting. Valid values: enable, disable.
fqdn String
Fully qualified domain name.
getAllTables String
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.
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.
protocolNumber Number
IP protocol number.
proxy String
Enable/disable web proxy service. Valid values: enable, disable.
sctpPortrange String
Multiple SCTP port ranges.
sessionTtl Number
Session TTL (300 - 604800, 0 = default).
tcpHalfcloseTimer Number
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
tcpHalfopenTimer Number
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
tcpPortrange String
Multiple TCP port ranges.
tcpRstTimer Number
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
tcpTimewaitTimer Number
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
udpIdleTimer Number
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
udpPortrange String
Multiple UDP port ranges.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
vdomparam Changes to this property will trigger replacement. 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)
resources:  _:    type: fortios:firewall/service/custom:Custom    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AppCategories List<Pulumiverse.Fortios.Firewall.Service.Inputs.CustomAppCategory>
Application category ID. The structure of app_category block is documented below.
AppServiceType string
Application service type. Valid values: disable, app-id, app-category.
Applications List<Pulumiverse.Fortios.Firewall.Service.Inputs.CustomApplication>
Application ID. The structure of application block is documented below.
Category string
Service category.
CheckResetRange string
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
Color int
Color of icon on the GUI.
Comment string
Comment.
DynamicSortSubtable string
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 ].
FabricObject string
Security Fabric global object setting. Valid values: enable, disable.
Fqdn string
Fully qualified domain name.
GetAllTables string
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.
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.
ProtocolNumber int
IP protocol number.
Proxy string
Enable/disable web proxy service. Valid values: enable, disable.
SctpPortrange string
Multiple SCTP port ranges.
SessionTtl int
Session TTL (300 - 604800, 0 = default).
TcpHalfcloseTimer int
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
TcpHalfopenTimer int
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
TcpPortrange string
Multiple TCP port ranges.
TcpRstTimer int
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
TcpTimewaitTimer int
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
UdpIdleTimer int
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
UdpPortrange string
Multiple UDP port ranges.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Vdomparam Changes to this property will trigger replacement. 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.
AppCategories []CustomAppCategoryArgs
Application category ID. The structure of app_category block is documented below.
AppServiceType string
Application service type. Valid values: disable, app-id, app-category.
Applications []CustomApplicationArgs
Application ID. The structure of application block is documented below.
Category string
Service category.
CheckResetRange string
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
Color int
Color of icon on the GUI.
Comment string
Comment.
DynamicSortSubtable string
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 ].
FabricObject string
Security Fabric global object setting. Valid values: enable, disable.
Fqdn string
Fully qualified domain name.
GetAllTables string
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.
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.
ProtocolNumber int
IP protocol number.
Proxy string
Enable/disable web proxy service. Valid values: enable, disable.
SctpPortrange string
Multiple SCTP port ranges.
SessionTtl int
Session TTL (300 - 604800, 0 = default).
TcpHalfcloseTimer int
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
TcpHalfopenTimer int
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
TcpPortrange string
Multiple TCP port ranges.
TcpRstTimer int
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
TcpTimewaitTimer int
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
UdpIdleTimer int
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
UdpPortrange string
Multiple UDP port ranges.
Uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
Vdomparam Changes to this property will trigger replacement. 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.
appCategories List<CustomAppCategory>
Application category ID. The structure of app_category block is documented below.
appServiceType String
Application service type. Valid values: disable, app-id, app-category.
applications List<CustomApplication>
Application ID. The structure of application block is documented below.
category String
Service category.
checkResetRange String
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
color Integer
Color of icon on the GUI.
comment String
Comment.
dynamicSortSubtable String
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 ].
fabricObject String
Security Fabric global object setting. Valid values: enable, disable.
fqdn String
Fully qualified domain name.
getAllTables String
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.
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.
protocolNumber Integer
IP protocol number.
proxy String
Enable/disable web proxy service. Valid values: enable, disable.
sctpPortrange String
Multiple SCTP port ranges.
sessionTtl Integer
Session TTL (300 - 604800, 0 = default).
tcpHalfcloseTimer Integer
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
tcpHalfopenTimer Integer
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
tcpPortrange String
Multiple TCP port ranges.
tcpRstTimer Integer
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
tcpTimewaitTimer Integer
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
udpIdleTimer Integer
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
udpPortrange String
Multiple UDP port ranges.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
vdomparam Changes to this property will trigger replacement. 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.
appCategories CustomAppCategory[]
Application category ID. The structure of app_category block is documented below.
appServiceType string
Application service type. Valid values: disable, app-id, app-category.
applications CustomApplication[]
Application ID. The structure of application block is documented below.
category string
Service category.
checkResetRange string
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
color number
Color of icon on the GUI.
comment string
Comment.
dynamicSortSubtable string
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 ].
fabricObject string
Security Fabric global object setting. Valid values: enable, disable.
fqdn string
Fully qualified domain name.
getAllTables string
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.
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.
protocolNumber number
IP protocol number.
proxy string
Enable/disable web proxy service. Valid values: enable, disable.
sctpPortrange string
Multiple SCTP port ranges.
sessionTtl number
Session TTL (300 - 604800, 0 = default).
tcpHalfcloseTimer number
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
tcpHalfopenTimer number
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
tcpPortrange string
Multiple TCP port ranges.
tcpRstTimer number
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
tcpTimewaitTimer number
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
udpIdleTimer number
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
udpPortrange string
Multiple UDP port ranges.
uuid string
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
vdomparam Changes to this property will trigger replacement. 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[CustomAppCategoryArgs]
Application category ID. The structure of app_category block is documented below.
app_service_type str
Application service type. Valid values: disable, app-id, app-category.
applications Sequence[CustomApplicationArgs]
Application ID. The structure of application block is documented below.
category str
Service category.
check_reset_range str
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_subtable str
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_tables str
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.
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_timer int
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
tcp_halfopen_timer int
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_timer int
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
tcp_timewait_timer int
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
udp_idle_timer int
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 Changes to this property will trigger replacement. 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.
appCategories List<Property Map>
Application category ID. The structure of app_category block is documented below.
appServiceType String
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.
checkResetRange String
Configure the type of ICMP error message verification. Valid values: disable, strict, default.
color Number
Color of icon on the GUI.
comment String
Comment.
dynamicSortSubtable String
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 ].
fabricObject String
Security Fabric global object setting. Valid values: enable, disable.
fqdn String
Fully qualified domain name.
getAllTables String
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.
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.
protocolNumber Number
IP protocol number.
proxy String
Enable/disable web proxy service. Valid values: enable, disable.
sctpPortrange String
Multiple SCTP port ranges.
sessionTtl Number
Session TTL (300 - 604800, 0 = default).
tcpHalfcloseTimer Number
Wait time to close a TCP session waiting for an unanswered FIN packet (1 - 86400 sec, 0 = default).
tcpHalfopenTimer Number
Wait time to close a TCP session waiting for an unanswered open session packet (1 - 86400 sec, 0 = default).
tcpPortrange String
Multiple TCP port ranges.
tcpRstTimer Number
Set the length of the TCP CLOSE state in seconds (5 - 300 sec, 0 = default).
tcpTimewaitTimer Number
Set the length of the TCP TIME-WAIT state in seconds (1 - 300 sec, 0 = default).
udpIdleTimer Number
Number of seconds before an idle UDP connection times out (0 - 86400 sec, 0 = default).
udpPortrange String
Multiple UDP port ranges.
uuid String
Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
vdomparam Changes to this property will trigger replacement. 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}}
Copy

If you do not want to import arguments of block:

$ export “FORTIOS_IMPORT_TABLE”=“false”

$ pulumi import fortios:firewall/service/custom:Custom labelname {{name}}
Copy

$ 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.