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

fortimanager.ObjectFirewallInternetservicecustomEntryPortrange

Explore with Pulumi AI

Port ranges in the custom entry.

This resource is a sub resource for variable port_range of resource fortimanager.ObjectFirewallInternetservicecustomEntry. Conflict and overwrite may occur if use both of them.

Create ObjectFirewallInternetservicecustomEntryPortrange Resource

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

Constructor syntax

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

@overload
def ObjectFirewallInternetservicecustomEntryPortrange(resource_name: str,
                                                      opts: Optional[ResourceOptions] = None,
                                                      entry: Optional[str] = None,
                                                      internet_service_custom: Optional[str] = None,
                                                      adom: Optional[str] = None,
                                                      end_port: Optional[float] = None,
                                                      fosid: Optional[float] = None,
                                                      object_firewall_internetservicecustom_entry_portrange_id: Optional[str] = None,
                                                      scopetype: Optional[str] = None,
                                                      start_port: Optional[float] = None)
func NewObjectFirewallInternetservicecustomEntryPortrange(ctx *Context, name string, args ObjectFirewallInternetservicecustomEntryPortrangeArgs, opts ...ResourceOption) (*ObjectFirewallInternetservicecustomEntryPortrange, error)
public ObjectFirewallInternetservicecustomEntryPortrange(string name, ObjectFirewallInternetservicecustomEntryPortrangeArgs args, CustomResourceOptions? opts = null)
public ObjectFirewallInternetservicecustomEntryPortrange(String name, ObjectFirewallInternetservicecustomEntryPortrangeArgs args)
public ObjectFirewallInternetservicecustomEntryPortrange(String name, ObjectFirewallInternetservicecustomEntryPortrangeArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFirewallInternetservicecustomEntryPortrange
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. ObjectFirewallInternetservicecustomEntryPortrangeArgs
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. ObjectFirewallInternetservicecustomEntryPortrangeArgs
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. ObjectFirewallInternetservicecustomEntryPortrangeArgs
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. ObjectFirewallInternetservicecustomEntryPortrangeArgs
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. ObjectFirewallInternetservicecustomEntryPortrangeArgs
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 objectFirewallInternetservicecustomEntryPortrangeResource = new Fortimanager.ObjectFirewallInternetservicecustomEntryPortrange("objectFirewallInternetservicecustomEntryPortrangeResource", new()
{
    Entry = "string",
    InternetServiceCustom = "string",
    Adom = "string",
    EndPort = 0,
    Fosid = 0,
    ObjectFirewallInternetservicecustomEntryPortrangeId = "string",
    Scopetype = "string",
    StartPort = 0,
});
Copy
example, err := fortimanager.NewObjectFirewallInternetservicecustomEntryPortrange(ctx, "objectFirewallInternetservicecustomEntryPortrangeResource", &fortimanager.ObjectFirewallInternetservicecustomEntryPortrangeArgs{
Entry: pulumi.String("string"),
InternetServiceCustom: pulumi.String("string"),
Adom: pulumi.String("string"),
EndPort: pulumi.Float64(0),
Fosid: pulumi.Float64(0),
ObjectFirewallInternetservicecustomEntryPortrangeId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
StartPort: pulumi.Float64(0),
})
Copy
var objectFirewallInternetservicecustomEntryPortrangeResource = new ObjectFirewallInternetservicecustomEntryPortrange("objectFirewallInternetservicecustomEntryPortrangeResource", ObjectFirewallInternetservicecustomEntryPortrangeArgs.builder()
    .entry("string")
    .internetServiceCustom("string")
    .adom("string")
    .endPort(0)
    .fosid(0)
    .objectFirewallInternetservicecustomEntryPortrangeId("string")
    .scopetype("string")
    .startPort(0)
    .build());
Copy
object_firewall_internetservicecustom_entry_portrange_resource = fortimanager.ObjectFirewallInternetservicecustomEntryPortrange("objectFirewallInternetservicecustomEntryPortrangeResource",
    entry="string",
    internet_service_custom="string",
    adom="string",
    end_port=0,
    fosid=0,
    object_firewall_internetservicecustom_entry_portrange_id="string",
    scopetype="string",
    start_port=0)
Copy
const objectFirewallInternetservicecustomEntryPortrangeResource = new fortimanager.ObjectFirewallInternetservicecustomEntryPortrange("objectFirewallInternetservicecustomEntryPortrangeResource", {
    entry: "string",
    internetServiceCustom: "string",
    adom: "string",
    endPort: 0,
    fosid: 0,
    objectFirewallInternetservicecustomEntryPortrangeId: "string",
    scopetype: "string",
    startPort: 0,
});
Copy
type: fortimanager:ObjectFirewallInternetservicecustomEntryPortrange
properties:
    adom: string
    endPort: 0
    entry: string
    fosid: 0
    internetServiceCustom: string
    objectFirewallInternetservicecustomEntryPortrangeId: string
    scopetype: string
    startPort: 0
Copy

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

Entry This property is required. string
Entry.
InternetServiceCustom This property is required. string
Internet Service Custom.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndPort double
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
Fosid double
Custom entry port range ID.
ObjectFirewallInternetservicecustomEntryPortrangeId string
an identifier for the resource with format {{fosid}}.
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.
StartPort double
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
Entry This property is required. string
Entry.
InternetServiceCustom This property is required. string
Internet Service Custom.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndPort float64
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
Fosid float64
Custom entry port range ID.
ObjectFirewallInternetservicecustomEntryPortrangeId string
an identifier for the resource with format {{fosid}}.
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.
StartPort float64
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
entry This property is required. String
Entry.
internetServiceCustom This property is required. String
Internet Service Custom.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endPort Double
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
fosid Double
Custom entry port range ID.
objectFirewallInternetservicecustomEntryPortrangeId String
an identifier for the resource with format {{fosid}}.
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.
startPort Double
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
entry This property is required. string
Entry.
internetServiceCustom This property is required. string
Internet Service Custom.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endPort number
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
fosid number
Custom entry port range ID.
objectFirewallInternetservicecustomEntryPortrangeId string
an identifier for the resource with format {{fosid}}.
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.
startPort number
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
entry This property is required. str
Entry.
internet_service_custom This property is required. str
Internet Service Custom.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
end_port float
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
fosid float
Custom entry port range ID.
object_firewall_internetservicecustom_entry_portrange_id str
an identifier for the resource with format {{fosid}}.
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.
start_port float
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
entry This property is required. String
Entry.
internetServiceCustom This property is required. String
Internet Service Custom.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endPort Number
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
fosid Number
Custom entry port range ID.
objectFirewallInternetservicecustomEntryPortrangeId String
an identifier for the resource with format {{fosid}}.
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.
startPort Number
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).

Outputs

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

Get an existing ObjectFirewallInternetservicecustomEntryPortrange 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?: ObjectFirewallInternetservicecustomEntryPortrangeState, opts?: CustomResourceOptions): ObjectFirewallInternetservicecustomEntryPortrange
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        end_port: Optional[float] = None,
        entry: Optional[str] = None,
        fosid: Optional[float] = None,
        internet_service_custom: Optional[str] = None,
        object_firewall_internetservicecustom_entry_portrange_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        start_port: Optional[float] = None) -> ObjectFirewallInternetservicecustomEntryPortrange
func GetObjectFirewallInternetservicecustomEntryPortrange(ctx *Context, name string, id IDInput, state *ObjectFirewallInternetservicecustomEntryPortrangeState, opts ...ResourceOption) (*ObjectFirewallInternetservicecustomEntryPortrange, error)
public static ObjectFirewallInternetservicecustomEntryPortrange Get(string name, Input<string> id, ObjectFirewallInternetservicecustomEntryPortrangeState? state, CustomResourceOptions? opts = null)
public static ObjectFirewallInternetservicecustomEntryPortrange get(String name, Output<String> id, ObjectFirewallInternetservicecustomEntryPortrangeState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectFirewallInternetservicecustomEntryPortrange    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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndPort double
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
Entry string
Entry.
Fosid double
Custom entry port range ID.
InternetServiceCustom string
Internet Service Custom.
ObjectFirewallInternetservicecustomEntryPortrangeId string
an identifier for the resource with format {{fosid}}.
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.
StartPort double
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndPort float64
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
Entry string
Entry.
Fosid float64
Custom entry port range ID.
InternetServiceCustom string
Internet Service Custom.
ObjectFirewallInternetservicecustomEntryPortrangeId string
an identifier for the resource with format {{fosid}}.
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.
StartPort float64
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endPort Double
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
entry String
Entry.
fosid Double
Custom entry port range ID.
internetServiceCustom String
Internet Service Custom.
objectFirewallInternetservicecustomEntryPortrangeId String
an identifier for the resource with format {{fosid}}.
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.
startPort Double
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endPort number
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
entry string
Entry.
fosid number
Custom entry port range ID.
internetServiceCustom string
Internet Service Custom.
objectFirewallInternetservicecustomEntryPortrangeId string
an identifier for the resource with format {{fosid}}.
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.
startPort number
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
end_port float
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
entry str
Entry.
fosid float
Custom entry port range ID.
internet_service_custom str
Internet Service Custom.
object_firewall_internetservicecustom_entry_portrange_id str
an identifier for the resource with format {{fosid}}.
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.
start_port float
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endPort Number
Integer value for ending TCP/UDP/SCTP destination port in range (1 to 65535).
entry String
Entry.
fosid Number
Custom entry port range ID.
internetServiceCustom String
Internet Service Custom.
objectFirewallInternetservicecustomEntryPortrangeId String
an identifier for the resource with format {{fosid}}.
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.
startPort Number
Integer value for starting TCP/UDP/SCTP destination port in range (1 to 65535).

Import

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

Set import_options = [“internet_service_custom=YOUR_VALUE”, “entry=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectFirewallInternetservicecustomEntryPortrange:ObjectFirewallInternetservicecustomEntryPortrange 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.