1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectFirewallInternetserviceadditionEntry
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.ObjectFirewallInternetserviceadditionEntry

Explore with Pulumi AI

Entries added to the Internet Service addition database.

This resource is a sub resource for variable entry of resource fortimanager.ObjectFirewallInternetserviceaddition. Conflict and overwrite may occur if use both of them. The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • port_range: fortimanager.ObjectFirewallInternetserviceadditionEntryPortrange

Create ObjectFirewallInternetserviceadditionEntry Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ObjectFirewallInternetserviceadditionEntry(name: string, args: ObjectFirewallInternetserviceadditionEntryArgs, opts?: CustomResourceOptions);
@overload
def ObjectFirewallInternetserviceadditionEntry(resource_name: str,
                                               args: ObjectFirewallInternetserviceadditionEntryInitArgs,
                                               opts: Optional[ResourceOptions] = None)

@overload
def ObjectFirewallInternetserviceadditionEntry(resource_name: str,
                                               opts: Optional[ResourceOptions] = None,
                                               internet_service_addition: Optional[str] = None,
                                               addr_mode: Optional[str] = None,
                                               adom: Optional[str] = None,
                                               dynamic_sort_subtable: Optional[str] = None,
                                               fosid: Optional[float] = None,
                                               object_firewall_internetserviceaddition_entry_id: Optional[str] = None,
                                               port_ranges: Optional[Sequence[ObjectFirewallInternetserviceadditionEntryPortRangeArgs]] = None,
                                               protocol: Optional[float] = None,
                                               scopetype: Optional[str] = None)
func NewObjectFirewallInternetserviceadditionEntry(ctx *Context, name string, args ObjectFirewallInternetserviceadditionEntryArgs, opts ...ResourceOption) (*ObjectFirewallInternetserviceadditionEntry, error)
public ObjectFirewallInternetserviceadditionEntry(string name, ObjectFirewallInternetserviceadditionEntryArgs args, CustomResourceOptions? opts = null)
public ObjectFirewallInternetserviceadditionEntry(String name, ObjectFirewallInternetserviceadditionEntryArgs args)
public ObjectFirewallInternetserviceadditionEntry(String name, ObjectFirewallInternetserviceadditionEntryArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFirewallInternetserviceadditionEntry
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 This property is required. ObjectFirewallInternetserviceadditionEntryArgs
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 This property is required. ObjectFirewallInternetserviceadditionEntryInitArgs
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 This property is required. ObjectFirewallInternetserviceadditionEntryArgs
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 This property is required. ObjectFirewallInternetserviceadditionEntryArgs
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. ObjectFirewallInternetserviceadditionEntryArgs
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 objectFirewallInternetserviceadditionEntryResource = new Fortimanager.ObjectFirewallInternetserviceadditionEntry("objectFirewallInternetserviceadditionEntryResource", new()
{
    InternetServiceAddition = "string",
    AddrMode = "string",
    Adom = "string",
    DynamicSortSubtable = "string",
    Fosid = 0,
    ObjectFirewallInternetserviceadditionEntryId = "string",
    PortRanges = new[]
    {
        new Fortimanager.Inputs.ObjectFirewallInternetserviceadditionEntryPortRangeArgs
        {
            EndPort = 0,
            Id = 0,
            StartPort = 0,
        },
    },
    Protocol = 0,
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectFirewallInternetserviceadditionEntry(ctx, "objectFirewallInternetserviceadditionEntryResource", &fortimanager.ObjectFirewallInternetserviceadditionEntryArgs{
InternetServiceAddition: pulumi.String("string"),
AddrMode: pulumi.String("string"),
Adom: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
Fosid: pulumi.Float64(0),
ObjectFirewallInternetserviceadditionEntryId: pulumi.String("string"),
PortRanges: .ObjectFirewallInternetserviceadditionEntryPortRangeTypeArray{
&.ObjectFirewallInternetserviceadditionEntryPortRangeTypeArgs{
EndPort: pulumi.Float64(0),
Id: pulumi.Float64(0),
StartPort: pulumi.Float64(0),
},
},
Protocol: pulumi.Float64(0),
Scopetype: pulumi.String("string"),
})
Copy
var objectFirewallInternetserviceadditionEntryResource = new ObjectFirewallInternetserviceadditionEntry("objectFirewallInternetserviceadditionEntryResource", ObjectFirewallInternetserviceadditionEntryArgs.builder()
    .internetServiceAddition("string")
    .addrMode("string")
    .adom("string")
    .dynamicSortSubtable("string")
    .fosid(0)
    .objectFirewallInternetserviceadditionEntryId("string")
    .portRanges(ObjectFirewallInternetserviceadditionEntryPortRangeArgs.builder()
        .endPort(0)
        .id(0)
        .startPort(0)
        .build())
    .protocol(0)
    .scopetype("string")
    .build());
Copy
object_firewall_internetserviceaddition_entry_resource = fortimanager.ObjectFirewallInternetserviceadditionEntry("objectFirewallInternetserviceadditionEntryResource",
    internet_service_addition="string",
    addr_mode="string",
    adom="string",
    dynamic_sort_subtable="string",
    fosid=0,
    object_firewall_internetserviceaddition_entry_id="string",
    port_ranges=[{
        "end_port": 0,
        "id": 0,
        "start_port": 0,
    }],
    protocol=0,
    scopetype="string")
Copy
const objectFirewallInternetserviceadditionEntryResource = new fortimanager.ObjectFirewallInternetserviceadditionEntry("objectFirewallInternetserviceadditionEntryResource", {
    internetServiceAddition: "string",
    addrMode: "string",
    adom: "string",
    dynamicSortSubtable: "string",
    fosid: 0,
    objectFirewallInternetserviceadditionEntryId: "string",
    portRanges: [{
        endPort: 0,
        id: 0,
        startPort: 0,
    }],
    protocol: 0,
    scopetype: "string",
});
Copy
type: fortimanager:ObjectFirewallInternetserviceadditionEntry
properties:
    addrMode: string
    adom: string
    dynamicSortSubtable: string
    fosid: 0
    internetServiceAddition: string
    objectFirewallInternetserviceadditionEntryId: string
    portRanges:
        - endPort: 0
          id: 0
          startPort: 0
    protocol: 0
    scopetype: string
Copy

ObjectFirewallInternetserviceadditionEntry 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 ObjectFirewallInternetserviceadditionEntry resource accepts the following input properties:

InternetServiceAddition This property is required. string
Internet Service Addition.
AddrMode string
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Fosid double
Entry ID(1-255).
ObjectFirewallInternetserviceadditionEntryId string
an identifier for the resource with format {{fosid}}.
PortRanges List<ObjectFirewallInternetserviceadditionEntryPortRange>
Port-Range. The structure of port_range block is documented below.
Protocol double
Integer value for the protocol type as defined by IANA (0 - 255).
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
InternetServiceAddition This property is required. string
Internet Service Addition.
AddrMode string
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Fosid float64
Entry ID(1-255).
ObjectFirewallInternetserviceadditionEntryId string
an identifier for the resource with format {{fosid}}.
PortRanges []ObjectFirewallInternetserviceadditionEntryPortRangeTypeArgs
Port-Range. The structure of port_range block is documented below.
Protocol float64
Integer value for the protocol type as defined by IANA (0 - 255).
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
internetServiceAddition This property is required. String
Internet Service Addition.
addrMode String
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
fosid Double
Entry ID(1-255).
objectFirewallInternetserviceadditionEntryId String
an identifier for the resource with format {{fosid}}.
portRanges List<ObjectFirewallInternetserviceadditionEntryPortRange>
Port-Range. The structure of port_range block is documented below.
protocol Double
Integer value for the protocol type as defined by IANA (0 - 255).
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
internetServiceAddition This property is required. string
Internet Service Addition.
addrMode string
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
fosid number
Entry ID(1-255).
objectFirewallInternetserviceadditionEntryId string
an identifier for the resource with format {{fosid}}.
portRanges ObjectFirewallInternetserviceadditionEntryPortRange[]
Port-Range. The structure of port_range block is documented below.
protocol number
Integer value for the protocol type as defined by IANA (0 - 255).
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
internet_service_addition This property is required. str
Internet Service Addition.
addr_mode str
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
fosid float
Entry ID(1-255).
object_firewall_internetserviceaddition_entry_id str
an identifier for the resource with format {{fosid}}.
port_ranges Sequence[ObjectFirewallInternetserviceadditionEntryPortRangeArgs]
Port-Range. The structure of port_range block is documented below.
protocol float
Integer value for the protocol type as defined by IANA (0 - 255).
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
internetServiceAddition This property is required. String
Internet Service Addition.
addrMode String
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
fosid Number
Entry ID(1-255).
objectFirewallInternetserviceadditionEntryId String
an identifier for the resource with format {{fosid}}.
portRanges List<Property Map>
Port-Range. The structure of port_range block is documented below.
protocol Number
Integer value for the protocol type as defined by IANA (0 - 255).
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObjectFirewallInternetserviceadditionEntry 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 ObjectFirewallInternetserviceadditionEntry Resource

Get an existing ObjectFirewallInternetserviceadditionEntry 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?: ObjectFirewallInternetserviceadditionEntryState, opts?: CustomResourceOptions): ObjectFirewallInternetserviceadditionEntry
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        addr_mode: Optional[str] = None,
        adom: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        fosid: Optional[float] = None,
        internet_service_addition: Optional[str] = None,
        object_firewall_internetserviceaddition_entry_id: Optional[str] = None,
        port_ranges: Optional[Sequence[ObjectFirewallInternetserviceadditionEntryPortRangeArgs]] = None,
        protocol: Optional[float] = None,
        scopetype: Optional[str] = None) -> ObjectFirewallInternetserviceadditionEntry
func GetObjectFirewallInternetserviceadditionEntry(ctx *Context, name string, id IDInput, state *ObjectFirewallInternetserviceadditionEntryState, opts ...ResourceOption) (*ObjectFirewallInternetserviceadditionEntry, error)
public static ObjectFirewallInternetserviceadditionEntry Get(string name, Input<string> id, ObjectFirewallInternetserviceadditionEntryState? state, CustomResourceOptions? opts = null)
public static ObjectFirewallInternetserviceadditionEntry get(String name, Output<String> id, ObjectFirewallInternetserviceadditionEntryState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectFirewallInternetserviceadditionEntry    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:
AddrMode string
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Fosid double
Entry ID(1-255).
InternetServiceAddition string
Internet Service Addition.
ObjectFirewallInternetserviceadditionEntryId string
an identifier for the resource with format {{fosid}}.
PortRanges List<ObjectFirewallInternetserviceadditionEntryPortRange>
Port-Range. The structure of port_range block is documented below.
Protocol double
Integer value for the protocol type as defined by IANA (0 - 255).
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
AddrMode string
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Fosid float64
Entry ID(1-255).
InternetServiceAddition string
Internet Service Addition.
ObjectFirewallInternetserviceadditionEntryId string
an identifier for the resource with format {{fosid}}.
PortRanges []ObjectFirewallInternetserviceadditionEntryPortRangeTypeArgs
Port-Range. The structure of port_range block is documented below.
Protocol float64
Integer value for the protocol type as defined by IANA (0 - 255).
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
addrMode String
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
fosid Double
Entry ID(1-255).
internetServiceAddition String
Internet Service Addition.
objectFirewallInternetserviceadditionEntryId String
an identifier for the resource with format {{fosid}}.
portRanges List<ObjectFirewallInternetserviceadditionEntryPortRange>
Port-Range. The structure of port_range block is documented below.
protocol Double
Integer value for the protocol type as defined by IANA (0 - 255).
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
addrMode string
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
fosid number
Entry ID(1-255).
internetServiceAddition string
Internet Service Addition.
objectFirewallInternetserviceadditionEntryId string
an identifier for the resource with format {{fosid}}.
portRanges ObjectFirewallInternetserviceadditionEntryPortRange[]
Port-Range. The structure of port_range block is documented below.
protocol number
Integer value for the protocol type as defined by IANA (0 - 255).
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
addr_mode str
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
fosid float
Entry ID(1-255).
internet_service_addition str
Internet Service Addition.
object_firewall_internetserviceaddition_entry_id str
an identifier for the resource with format {{fosid}}.
port_ranges Sequence[ObjectFirewallInternetserviceadditionEntryPortRangeArgs]
Port-Range. The structure of port_range block is documented below.
protocol float
Integer value for the protocol type as defined by IANA (0 - 255).
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
addrMode String
Address mode (IPv4 or IPv6) Valid values: ipv4, ipv6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
fosid Number
Entry ID(1-255).
internetServiceAddition String
Internet Service Addition.
objectFirewallInternetserviceadditionEntryId String
an identifier for the resource with format {{fosid}}.
portRanges List<Property Map>
Port-Range. The structure of port_range block is documented below.
protocol Number
Integer value for the protocol type as defined by IANA (0 - 255).
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Supporting Types

ObjectFirewallInternetserviceadditionEntryPortRange
, ObjectFirewallInternetserviceadditionEntryPortRangeArgs

EndPort double
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
Id double
Custom entry port range ID.
StartPort double
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
EndPort float64
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
Id float64
Custom entry port range ID.
StartPort float64
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
endPort Double
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
id Double
Custom entry port range ID.
startPort Double
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
endPort number
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
id number
Custom entry port range ID.
startPort number
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
end_port float
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
id float
Custom entry port range ID.
start_port float
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
endPort Number
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
id Number
Custom entry port range ID.
startPort Number
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).

Import

ObjectFirewall InternetServiceAdditionEntry can be imported using any of these accepted formats:

Set import_options = [“internet_service_addition=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectFirewallInternetserviceadditionEntry:ObjectFirewallInternetserviceadditionEntry labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.