fortimanager.ObjectFirewallInternetserviceadditionEntry
Explore with Pulumi AI
Entries added to the Internet Service addition database.
This resource is a sub resource for variable
entryof resourcefortimanager.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 string
- The unique name of the resource.
- args ObjectFirewallInternetserviceadditionEntryArgs
- 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 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 string
- The unique name of the resource.
- args ObjectFirewallInternetserviceadditionEntryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectFirewallInternetserviceadditionEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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:
- InternetService stringAddition 
- Internet Service Addition.
- AddrMode string
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- Adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- DynamicSort stringSubtable 
- 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).
- ObjectFirewall stringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- PortRanges List<ObjectFirewall Internetserviceaddition Entry Port Range> 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- InternetService stringAddition 
- Internet Service Addition.
- AddrMode string
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- Adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- DynamicSort stringSubtable 
- 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).
- ObjectFirewall stringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- PortRanges []ObjectFirewall Internetserviceaddition Entry Port Range Type Args 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- internetService StringAddition 
- Internet Service Addition.
- addrMode String
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- adom String
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- dynamicSort StringSubtable 
- 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).
- objectFirewall StringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- portRanges List<ObjectFirewall Internetserviceaddition Entry Port Range> 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- internetService stringAddition 
- Internet Service Addition.
- addrMode string
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- dynamicSort stringSubtable 
- 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).
- objectFirewall stringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- portRanges ObjectFirewall Internetserviceaddition Entry Port Range[] 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- internet_service_ straddition 
- 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 scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- dynamic_sort_ strsubtable 
- 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_ strinternetserviceaddition_ entry_ id 
- an identifier for the resource with format {{fosid}}.
- port_ranges Sequence[ObjectFirewall Internetserviceaddition Entry Port Range Args] 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- internetService StringAddition 
- Internet Service Addition.
- addrMode String
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- adom String
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- dynamicSort StringSubtable 
- 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).
- objectFirewall StringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- portRanges List<Property Map>
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
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) -> ObjectFirewallInternetserviceadditionEntryfunc 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
- 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.
- AddrMode string
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- Adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- DynamicSort stringSubtable 
- 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).
- InternetService stringAddition 
- Internet Service Addition.
- ObjectFirewall stringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- PortRanges List<ObjectFirewall Internetserviceaddition Entry Port Range> 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- AddrMode string
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- Adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- DynamicSort stringSubtable 
- 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).
- InternetService stringAddition 
- Internet Service Addition.
- ObjectFirewall stringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- PortRanges []ObjectFirewall Internetserviceaddition Entry Port Range Type Args 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- addrMode String
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- adom String
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- dynamicSort StringSubtable 
- 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).
- internetService StringAddition 
- Internet Service Addition.
- objectFirewall StringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- portRanges List<ObjectFirewall Internetserviceaddition Entry Port Range> 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- addrMode string
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- adom string
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- dynamicSort stringSubtable 
- 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).
- internetService stringAddition 
- Internet Service Addition.
- objectFirewall stringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- portRanges ObjectFirewall Internetserviceaddition Entry Port Range[] 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- addr_mode str
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- adom str
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- dynamic_sort_ strsubtable 
- 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_ straddition 
- Internet Service Addition.
- object_firewall_ strinternetserviceaddition_ entry_ id 
- an identifier for the resource with format {{fosid}}.
- port_ranges Sequence[ObjectFirewall Internetserviceaddition Entry Port Range Args] 
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
- addrMode String
- Address mode (IPv4 or IPv6) Valid values: ipv4,ipv6.
- adom String
- Adom. This value is valid only when the scopetypeisadom, otherwise the value of adom in the provider will be inherited.
- dynamicSort StringSubtable 
- 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).
- internetService StringAddition 
- Internet Service Addition.
- objectFirewall StringInternetserviceaddition Entry Id 
- an identifier for the resource with format {{fosid}}.
- portRanges List<Property Map>
- Port-Range. The structure of port_rangeblock 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. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit.
Supporting Types
ObjectFirewallInternetserviceadditionEntryPortRange, ObjectFirewallInternetserviceadditionEntryPortRangeArgs            
- 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).
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}}
$ 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 fortimanagerTerraform Provider.