fortios.firewall.Internetserviceaddition
Explore with Pulumi AI
Configure Internet Services Addition. Applies to FortiOS Version >= 6.2.4
.
Create Internetserviceaddition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Internetserviceaddition(name: string, args?: InternetserviceadditionArgs, opts?: CustomResourceOptions);
@overload
def Internetserviceaddition(resource_name: str,
args: Optional[InternetserviceadditionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Internetserviceaddition(resource_name: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
entries: Optional[Sequence[InternetserviceadditionEntryArgs]] = None,
fosid: Optional[int] = None,
get_all_tables: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewInternetserviceaddition(ctx *Context, name string, args *InternetserviceadditionArgs, opts ...ResourceOption) (*Internetserviceaddition, error)
public Internetserviceaddition(string name, InternetserviceadditionArgs? args = null, CustomResourceOptions? opts = null)
public Internetserviceaddition(String name, InternetserviceadditionArgs args)
public Internetserviceaddition(String name, InternetserviceadditionArgs args, CustomResourceOptions options)
type: fortios:firewall:Internetserviceaddition
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 InternetserviceadditionArgs
- 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 InternetserviceadditionArgs
- 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 InternetserviceadditionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InternetserviceadditionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InternetserviceadditionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var internetserviceadditionResource = new Fortios.Firewall.Internetserviceaddition("internetserviceadditionResource", new()
{
Comment = "string",
DynamicSortSubtable = "string",
Entries = new[]
{
new Fortios.Firewall.Inputs.InternetserviceadditionEntryArgs
{
AddrMode = "string",
Id = 0,
PortRanges = new[]
{
new Fortios.Firewall.Inputs.InternetserviceadditionEntryPortRangeArgs
{
EndPort = 0,
Id = 0,
StartPort = 0,
},
},
Protocol = 0,
},
},
Fosid = 0,
GetAllTables = "string",
Vdomparam = "string",
});
example, err := firewall.NewInternetserviceaddition(ctx, "internetserviceadditionResource", &firewall.InternetserviceadditionArgs{
Comment: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
Entries: firewall.InternetserviceadditionEntryArray{
&firewall.InternetserviceadditionEntryArgs{
AddrMode: pulumi.String("string"),
Id: pulumi.Int(0),
PortRanges: firewall.InternetserviceadditionEntryPortRangeArray{
&firewall.InternetserviceadditionEntryPortRangeArgs{
EndPort: pulumi.Int(0),
Id: pulumi.Int(0),
StartPort: pulumi.Int(0),
},
},
Protocol: pulumi.Int(0),
},
},
Fosid: pulumi.Int(0),
GetAllTables: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var internetserviceadditionResource = new Internetserviceaddition("internetserviceadditionResource", InternetserviceadditionArgs.builder()
.comment("string")
.dynamicSortSubtable("string")
.entries(InternetserviceadditionEntryArgs.builder()
.addrMode("string")
.id(0)
.portRanges(InternetserviceadditionEntryPortRangeArgs.builder()
.endPort(0)
.id(0)
.startPort(0)
.build())
.protocol(0)
.build())
.fosid(0)
.getAllTables("string")
.vdomparam("string")
.build());
internetserviceaddition_resource = fortios.firewall.Internetserviceaddition("internetserviceadditionResource",
comment="string",
dynamic_sort_subtable="string",
entries=[fortios.firewall.InternetserviceadditionEntryArgs(
addr_mode="string",
id=0,
port_ranges=[fortios.firewall.InternetserviceadditionEntryPortRangeArgs(
end_port=0,
id=0,
start_port=0,
)],
protocol=0,
)],
fosid=0,
get_all_tables="string",
vdomparam="string")
const internetserviceadditionResource = new fortios.firewall.Internetserviceaddition("internetserviceadditionResource", {
comment: "string",
dynamicSortSubtable: "string",
entries: [{
addrMode: "string",
id: 0,
portRanges: [{
endPort: 0,
id: 0,
startPort: 0,
}],
protocol: 0,
}],
fosid: 0,
getAllTables: "string",
vdomparam: "string",
});
type: fortios:firewall:Internetserviceaddition
properties:
comment: string
dynamicSortSubtable: string
entries:
- addrMode: string
id: 0
portRanges:
- endPort: 0
id: 0
startPort: 0
protocol: 0
fosid: 0
getAllTables: string
vdomparam: string
Internetserviceaddition 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 Internetserviceaddition resource accepts the following input properties:
- 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 ].
- Entries
List<Pulumiverse.
Fortios. Firewall. Inputs. Internetserviceaddition Entry> - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - Fosid int
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- Entries
[]Internetserviceaddition
Entry Args - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - Fosid int
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- entries
List<Internetserviceaddition
Entry> - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - fosid Integer
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- entries
Internetserviceaddition
Entry[] - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - fosid number
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- entries
Sequence[Internetserviceaddition
Entry Args] - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - fosid int
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- entries List<Property Map>
- Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - fosid Number
- Internet Service ID in the Internet Service database.
- 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.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Internetserviceaddition 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 Internetserviceaddition Resource
Get an existing Internetserviceaddition 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?: InternetserviceadditionState, opts?: CustomResourceOptions): Internetserviceaddition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
entries: Optional[Sequence[InternetserviceadditionEntryArgs]] = None,
fosid: Optional[int] = None,
get_all_tables: Optional[str] = None,
vdomparam: Optional[str] = None) -> Internetserviceaddition
func GetInternetserviceaddition(ctx *Context, name string, id IDInput, state *InternetserviceadditionState, opts ...ResourceOption) (*Internetserviceaddition, error)
public static Internetserviceaddition Get(string name, Input<string> id, InternetserviceadditionState? state, CustomResourceOptions? opts = null)
public static Internetserviceaddition get(String name, Output<String> id, InternetserviceadditionState 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.
- 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 ].
- Entries
List<Pulumiverse.
Fortios. Firewall. Inputs. Internetserviceaddition Entry> - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - Fosid int
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- Entries
[]Internetserviceaddition
Entry Args - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - Fosid int
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- entries
List<Internetserviceaddition
Entry> - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - fosid Integer
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- entries
Internetserviceaddition
Entry[] - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - fosid number
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- entries
Sequence[Internetserviceaddition
Entry Args] - Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - fosid int
- Internet Service ID in the Internet Service database.
- 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.
- 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.
- 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 ].
- entries List<Property Map>
- Entries added to the Internet Service addition database. The structure of
entry
block is documented below. - fosid Number
- Internet Service ID in the Internet Service database.
- 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.
- vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Supporting Types
InternetserviceadditionEntry, InternetserviceadditionEntryArgs
- Addr
Mode string - Address mode (IPv4 or IPv6) Valid values:
ipv4
,ipv6
. - Id int
- Entry ID(1-255).
- Port
Ranges List<Pulumiverse.Fortios. Firewall. Inputs. Internetserviceaddition Entry Port Range> - Port ranges in the custom entry. The structure of
port_range
block is documented below. - Protocol int
- Integer value for the protocol type as defined by IANA (0 - 255).
- Addr
Mode string - Address mode (IPv4 or IPv6) Valid values:
ipv4
,ipv6
. - Id int
- Entry ID(1-255).
- Port
Ranges []InternetserviceadditionEntry Port Range - Port ranges in the custom entry. The structure of
port_range
block is documented below. - Protocol int
- Integer value for the protocol type as defined by IANA (0 - 255).
- addr
Mode String - Address mode (IPv4 or IPv6) Valid values:
ipv4
,ipv6
. - id Integer
- Entry ID(1-255).
- port
Ranges List<InternetserviceadditionEntry Port Range> - Port ranges in the custom entry. The structure of
port_range
block is documented below. - protocol Integer
- Integer value for the protocol type as defined by IANA (0 - 255).
- addr
Mode string - Address mode (IPv4 or IPv6) Valid values:
ipv4
,ipv6
. - id number
- Entry ID(1-255).
- port
Ranges InternetserviceadditionEntry Port Range[] - Port ranges in the custom entry. The structure of
port_range
block is documented below. - protocol number
- Integer value for the protocol type as defined by IANA (0 - 255).
- addr_
mode str - Address mode (IPv4 or IPv6) Valid values:
ipv4
,ipv6
. - id int
- Entry ID(1-255).
- port_
ranges Sequence[InternetserviceadditionEntry Port Range] - Port ranges in the custom entry. The structure of
port_range
block is documented below. - protocol int
- Integer value for the protocol type as defined by IANA (0 - 255).
- addr
Mode String - Address mode (IPv4 or IPv6) Valid values:
ipv4
,ipv6
. - id Number
- Entry ID(1-255).
- port
Ranges List<Property Map> - Port ranges in the custom entry. The structure of
port_range
block is documented below. - protocol Number
- Integer value for the protocol type as defined by IANA (0 - 255).
InternetserviceadditionEntryPortRange, InternetserviceadditionEntryPortRangeArgs
- end_
port int - Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
- id int
- Custom entry port range ID.
- start_
port int - Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
Import
Firewall InternetServiceAddition can be imported using any of these accepted formats:
$ pulumi import fortios:firewall/internetserviceaddition:Internetserviceaddition labelname {{fosid}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:firewall/internetserviceaddition:Internetserviceaddition labelname {{fosid}}
$ 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.