fortios.firewall.Internetservicedefinition
Explore with Pulumi AI
Internet Service definition.
Create Internetservicedefinition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Internetservicedefinition(name: string, args?: InternetservicedefinitionArgs, opts?: CustomResourceOptions);
@overload
def Internetservicedefinition(resource_name: str,
args: Optional[InternetservicedefinitionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Internetservicedefinition(resource_name: str,
opts: Optional[ResourceOptions] = None,
dynamic_sort_subtable: Optional[str] = None,
entries: Optional[Sequence[InternetservicedefinitionEntryArgs]] = None,
fosid: Optional[int] = None,
get_all_tables: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewInternetservicedefinition(ctx *Context, name string, args *InternetservicedefinitionArgs, opts ...ResourceOption) (*Internetservicedefinition, error)
public Internetservicedefinition(string name, InternetservicedefinitionArgs? args = null, CustomResourceOptions? opts = null)
public Internetservicedefinition(String name, InternetservicedefinitionArgs args)
public Internetservicedefinition(String name, InternetservicedefinitionArgs args, CustomResourceOptions options)
type: fortios:firewall:Internetservicedefinition
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 InternetservicedefinitionArgs
- 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 InternetservicedefinitionArgs
- 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 InternetservicedefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InternetservicedefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InternetservicedefinitionArgs
- 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 internetservicedefinitionResource = new Fortios.Firewall.Internetservicedefinition("internetservicedefinitionResource", new()
{
DynamicSortSubtable = "string",
Entries = new[]
{
new Fortios.Firewall.Inputs.InternetservicedefinitionEntryArgs
{
CategoryId = 0,
Name = "string",
Port = 0,
PortRanges = new[]
{
new Fortios.Firewall.Inputs.InternetservicedefinitionEntryPortRangeArgs
{
EndPort = 0,
Id = 0,
StartPort = 0,
},
},
Protocol = 0,
SeqNum = 0,
},
},
Fosid = 0,
GetAllTables = "string",
Vdomparam = "string",
});
example, err := firewall.NewInternetservicedefinition(ctx, "internetservicedefinitionResource", &firewall.InternetservicedefinitionArgs{
DynamicSortSubtable: pulumi.String("string"),
Entries: firewall.InternetservicedefinitionEntryArray{
&firewall.InternetservicedefinitionEntryArgs{
CategoryId: pulumi.Int(0),
Name: pulumi.String("string"),
Port: pulumi.Int(0),
PortRanges: firewall.InternetservicedefinitionEntryPortRangeArray{
&firewall.InternetservicedefinitionEntryPortRangeArgs{
EndPort: pulumi.Int(0),
Id: pulumi.Int(0),
StartPort: pulumi.Int(0),
},
},
Protocol: pulumi.Int(0),
SeqNum: pulumi.Int(0),
},
},
Fosid: pulumi.Int(0),
GetAllTables: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var internetservicedefinitionResource = new Internetservicedefinition("internetservicedefinitionResource", InternetservicedefinitionArgs.builder()
.dynamicSortSubtable("string")
.entries(InternetservicedefinitionEntryArgs.builder()
.categoryId(0)
.name("string")
.port(0)
.portRanges(InternetservicedefinitionEntryPortRangeArgs.builder()
.endPort(0)
.id(0)
.startPort(0)
.build())
.protocol(0)
.seqNum(0)
.build())
.fosid(0)
.getAllTables("string")
.vdomparam("string")
.build());
internetservicedefinition_resource = fortios.firewall.Internetservicedefinition("internetservicedefinitionResource",
dynamic_sort_subtable="string",
entries=[{
"category_id": 0,
"name": "string",
"port": 0,
"port_ranges": [{
"end_port": 0,
"id": 0,
"start_port": 0,
}],
"protocol": 0,
"seq_num": 0,
}],
fosid=0,
get_all_tables="string",
vdomparam="string")
const internetservicedefinitionResource = new fortios.firewall.Internetservicedefinition("internetservicedefinitionResource", {
dynamicSortSubtable: "string",
entries: [{
categoryId: 0,
name: "string",
port: 0,
portRanges: [{
endPort: 0,
id: 0,
startPort: 0,
}],
protocol: 0,
seqNum: 0,
}],
fosid: 0,
getAllTables: "string",
vdomparam: "string",
});
type: fortios:firewall:Internetservicedefinition
properties:
dynamicSortSubtable: string
entries:
- categoryId: 0
name: string
port: 0
portRanges:
- endPort: 0
id: 0
startPort: 0
protocol: 0
seqNum: 0
fosid: 0
getAllTables: string
vdomparam: string
Internetservicedefinition 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 Internetservicedefinition resource accepts the following input properties:
- 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. Internetservicedefinition Entry> - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - Fosid int
- Internet Service application list ID.
- 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, otherwise, 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.
- 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
[]Internetservicedefinition
Entry Args - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - Fosid int
- Internet Service application list ID.
- 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, otherwise, 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.
- 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<Internetservicedefinition
Entry> - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - fosid Integer
- Internet Service application list ID.
- 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, otherwise, 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.
- 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
Internetservicedefinition
Entry[] - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - fosid number
- Internet Service application list ID.
- 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, otherwise, 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.
- 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[Internetservicedefinition
Entry Args] - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - fosid int
- Internet Service application list ID.
- 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, otherwise, 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.
- 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>
- Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - fosid Number
- Internet Service application list ID.
- 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, otherwise, 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 Internetservicedefinition 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 Internetservicedefinition Resource
Get an existing Internetservicedefinition 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?: InternetservicedefinitionState, opts?: CustomResourceOptions): Internetservicedefinition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dynamic_sort_subtable: Optional[str] = None,
entries: Optional[Sequence[InternetservicedefinitionEntryArgs]] = None,
fosid: Optional[int] = None,
get_all_tables: Optional[str] = None,
vdomparam: Optional[str] = None) -> Internetservicedefinition
func GetInternetservicedefinition(ctx *Context, name string, id IDInput, state *InternetservicedefinitionState, opts ...ResourceOption) (*Internetservicedefinition, error)
public static Internetservicedefinition Get(string name, Input<string> id, InternetservicedefinitionState? state, CustomResourceOptions? opts = null)
public static Internetservicedefinition get(String name, Output<String> id, InternetservicedefinitionState 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.
- 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. Internetservicedefinition Entry> - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - Fosid int
- Internet Service application list ID.
- 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, otherwise, 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.
- 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
[]Internetservicedefinition
Entry Args - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - Fosid int
- Internet Service application list ID.
- 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, otherwise, 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.
- 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<Internetservicedefinition
Entry> - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - fosid Integer
- Internet Service application list ID.
- 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, otherwise, 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.
- 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
Internetservicedefinition
Entry[] - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - fosid number
- Internet Service application list ID.
- 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, otherwise, 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.
- 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[Internetservicedefinition
Entry Args] - Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - fosid int
- Internet Service application list ID.
- 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, otherwise, 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.
- 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>
- Protocol and port information in an Internet Service entry. The structure of
entry
block is documented below. - fosid Number
- Internet Service application list ID.
- 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, otherwise, 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
InternetservicedefinitionEntry, InternetservicedefinitionEntryArgs
- Category
Id int - Internet Service category ID.
- Name string
- Internet Service name.
- Port int
- Integer value for ending TCP/UDP/SCTP destination port in range (0 to 65535). 0 means undefined.
- Port
Ranges List<Pulumiverse.Fortios. Firewall. Inputs. Internetservicedefinition Entry Port Range> - Port ranges in the definition entry. The structure of
port_range
block is documented below. - Protocol int
- Integer value for the protocol type as defined by IANA (0 - 255).
- Seq
Num int - Entry sequence number.
- Category
Id int - Internet Service category ID.
- Name string
- Internet Service name.
- Port int
- Integer value for ending TCP/UDP/SCTP destination port in range (0 to 65535). 0 means undefined.
- Port
Ranges []InternetservicedefinitionEntry Port Range - Port ranges in the definition entry. The structure of
port_range
block is documented below. - Protocol int
- Integer value for the protocol type as defined by IANA (0 - 255).
- Seq
Num int - Entry sequence number.
- category
Id Integer - Internet Service category ID.
- name String
- Internet Service name.
- port Integer
- Integer value for ending TCP/UDP/SCTP destination port in range (0 to 65535). 0 means undefined.
- port
Ranges List<InternetservicedefinitionEntry Port Range> - Port ranges in the definition entry. The structure of
port_range
block is documented below. - protocol Integer
- Integer value for the protocol type as defined by IANA (0 - 255).
- seq
Num Integer - Entry sequence number.
- category
Id number - Internet Service category ID.
- name string
- Internet Service name.
- port number
- Integer value for ending TCP/UDP/SCTP destination port in range (0 to 65535). 0 means undefined.
- port
Ranges InternetservicedefinitionEntry Port Range[] - Port ranges in the definition entry. The structure of
port_range
block is documented below. - protocol number
- Integer value for the protocol type as defined by IANA (0 - 255).
- seq
Num number - Entry sequence number.
- category_
id int - Internet Service category ID.
- name str
- Internet Service name.
- port int
- Integer value for ending TCP/UDP/SCTP destination port in range (0 to 65535). 0 means undefined.
- port_
ranges Sequence[InternetservicedefinitionEntry Port Range] - Port ranges in the definition entry. The structure of
port_range
block is documented below. - protocol int
- Integer value for the protocol type as defined by IANA (0 - 255).
- seq_
num int - Entry sequence number.
- category
Id Number - Internet Service category ID.
- name String
- Internet Service name.
- port Number
- Integer value for ending TCP/UDP/SCTP destination port in range (0 to 65535). 0 means undefined.
- port
Ranges List<Property Map> - Port ranges in the definition entry. The structure of
port_range
block is documented below. - protocol Number
- Integer value for the protocol type as defined by IANA (0 - 255).
- seq
Num Number - Entry sequence number.
InternetservicedefinitionEntryPortRange, InternetservicedefinitionEntryPortRangeArgs
- end_
port int - Ending TCP/UDP/SCTP destination port (1 to 65535).
- id int
- Custom entry port range ID.
- start_
port int - Starting TCP/UDP/SCTP destination port (1 to 65535).
Import
Firewall InternetServiceDefinition can be imported using any of these accepted formats:
$ pulumi import fortios:firewall/internetservicedefinition:Internetservicedefinition labelname {{fosid}}
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:firewall/internetservicedefinition:Internetservicedefinition 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.