1. Packages
  2. Fortios
  3. API Docs
  4. firewall
  5. Internetservice
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.firewall.Internetservice

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    Show Internet Service application.

    Create Internetservice Resource

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

    Constructor syntax

    new Internetservice(name: string, args?: InternetserviceArgs, opts?: CustomResourceOptions);
    @overload
    def Internetservice(resource_name: str,
                        args: Optional[InternetserviceArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def Internetservice(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        database: Optional[str] = None,
                        direction: Optional[str] = None,
                        extra_ip6_range_number: Optional[int] = None,
                        extra_ip_range_number: Optional[int] = None,
                        fosid: Optional[int] = None,
                        icon_id: Optional[int] = None,
                        ip6_range_number: Optional[int] = None,
                        ip_number: Optional[int] = None,
                        ip_range_number: Optional[int] = None,
                        name: Optional[str] = None,
                        obsolete: Optional[int] = None,
                        reputation: Optional[int] = None,
                        singularity: Optional[int] = None,
                        sld_id: Optional[int] = None,
                        vdomparam: Optional[str] = None)
    func NewInternetservice(ctx *Context, name string, args *InternetserviceArgs, opts ...ResourceOption) (*Internetservice, error)
    public Internetservice(string name, InternetserviceArgs? args = null, CustomResourceOptions? opts = null)
    public Internetservice(String name, InternetserviceArgs args)
    public Internetservice(String name, InternetserviceArgs args, CustomResourceOptions options)
    
    type: fortios:firewall:Internetservice
    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 InternetserviceArgs
    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 InternetserviceArgs
    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 InternetserviceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InternetserviceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InternetserviceArgs
    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 internetserviceResource = new Fortios.Firewall.Internetservice("internetserviceResource", new()
    {
        Database = "string",
        Direction = "string",
        ExtraIp6RangeNumber = 0,
        ExtraIpRangeNumber = 0,
        Fosid = 0,
        IconId = 0,
        Ip6RangeNumber = 0,
        IpNumber = 0,
        IpRangeNumber = 0,
        Name = "string",
        Obsolete = 0,
        Reputation = 0,
        Singularity = 0,
        SldId = 0,
        Vdomparam = "string",
    });
    
    example, err := firewall.NewInternetservice(ctx, "internetserviceResource", &firewall.InternetserviceArgs{
    	Database:            pulumi.String("string"),
    	Direction:           pulumi.String("string"),
    	ExtraIp6RangeNumber: pulumi.Int(0),
    	ExtraIpRangeNumber:  pulumi.Int(0),
    	Fosid:               pulumi.Int(0),
    	IconId:              pulumi.Int(0),
    	Ip6RangeNumber:      pulumi.Int(0),
    	IpNumber:            pulumi.Int(0),
    	IpRangeNumber:       pulumi.Int(0),
    	Name:                pulumi.String("string"),
    	Obsolete:            pulumi.Int(0),
    	Reputation:          pulumi.Int(0),
    	Singularity:         pulumi.Int(0),
    	SldId:               pulumi.Int(0),
    	Vdomparam:           pulumi.String("string"),
    })
    
    var internetserviceResource = new Internetservice("internetserviceResource", InternetserviceArgs.builder()
        .database("string")
        .direction("string")
        .extraIp6RangeNumber(0)
        .extraIpRangeNumber(0)
        .fosid(0)
        .iconId(0)
        .ip6RangeNumber(0)
        .ipNumber(0)
        .ipRangeNumber(0)
        .name("string")
        .obsolete(0)
        .reputation(0)
        .singularity(0)
        .sldId(0)
        .vdomparam("string")
        .build());
    
    internetservice_resource = fortios.firewall.Internetservice("internetserviceResource",
        database="string",
        direction="string",
        extra_ip6_range_number=0,
        extra_ip_range_number=0,
        fosid=0,
        icon_id=0,
        ip6_range_number=0,
        ip_number=0,
        ip_range_number=0,
        name="string",
        obsolete=0,
        reputation=0,
        singularity=0,
        sld_id=0,
        vdomparam="string")
    
    const internetserviceResource = new fortios.firewall.Internetservice("internetserviceResource", {
        database: "string",
        direction: "string",
        extraIp6RangeNumber: 0,
        extraIpRangeNumber: 0,
        fosid: 0,
        iconId: 0,
        ip6RangeNumber: 0,
        ipNumber: 0,
        ipRangeNumber: 0,
        name: "string",
        obsolete: 0,
        reputation: 0,
        singularity: 0,
        sldId: 0,
        vdomparam: "string",
    });
    
    type: fortios:firewall:Internetservice
    properties:
        database: string
        direction: string
        extraIp6RangeNumber: 0
        extraIpRangeNumber: 0
        fosid: 0
        iconId: 0
        ip6RangeNumber: 0
        ipNumber: 0
        ipRangeNumber: 0
        name: string
        obsolete: 0
        reputation: 0
        singularity: 0
        sldId: 0
        vdomparam: string
    

    Internetservice Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Internetservice resource accepts the following input properties:

    Database string
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    Direction string
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    ExtraIp6RangeNumber int
    Extra number of IPv6 ranges.
    ExtraIpRangeNumber int
    Extra number of IP ranges.
    Fosid int
    Internet Service ID.
    IconId int
    Icon ID of Internet Service.
    Ip6RangeNumber int
    Number of IPv6 ranges.
    IpNumber int
    Total number of IP addresses.
    IpRangeNumber int
    Total number of IP ranges.
    Name string
    Internet Service name.
    Obsolete int
    Indicates whether the Internet Service can be used.
    Reputation int
    Reputation level of the Internet Service.
    Singularity int
    Singular level of the Internet Service.
    SldId int
    Second Level Domain.
    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.
    Database string
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    Direction string
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    ExtraIp6RangeNumber int
    Extra number of IPv6 ranges.
    ExtraIpRangeNumber int
    Extra number of IP ranges.
    Fosid int
    Internet Service ID.
    IconId int
    Icon ID of Internet Service.
    Ip6RangeNumber int
    Number of IPv6 ranges.
    IpNumber int
    Total number of IP addresses.
    IpRangeNumber int
    Total number of IP ranges.
    Name string
    Internet Service name.
    Obsolete int
    Indicates whether the Internet Service can be used.
    Reputation int
    Reputation level of the Internet Service.
    Singularity int
    Singular level of the Internet Service.
    SldId int
    Second Level Domain.
    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.
    database String
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    direction String
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    extraIp6RangeNumber Integer
    Extra number of IPv6 ranges.
    extraIpRangeNumber Integer
    Extra number of IP ranges.
    fosid Integer
    Internet Service ID.
    iconId Integer
    Icon ID of Internet Service.
    ip6RangeNumber Integer
    Number of IPv6 ranges.
    ipNumber Integer
    Total number of IP addresses.
    ipRangeNumber Integer
    Total number of IP ranges.
    name String
    Internet Service name.
    obsolete Integer
    Indicates whether the Internet Service can be used.
    reputation Integer
    Reputation level of the Internet Service.
    singularity Integer
    Singular level of the Internet Service.
    sldId Integer
    Second Level Domain.
    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.
    database string
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    direction string
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    extraIp6RangeNumber number
    Extra number of IPv6 ranges.
    extraIpRangeNumber number
    Extra number of IP ranges.
    fosid number
    Internet Service ID.
    iconId number
    Icon ID of Internet Service.
    ip6RangeNumber number
    Number of IPv6 ranges.
    ipNumber number
    Total number of IP addresses.
    ipRangeNumber number
    Total number of IP ranges.
    name string
    Internet Service name.
    obsolete number
    Indicates whether the Internet Service can be used.
    reputation number
    Reputation level of the Internet Service.
    singularity number
    Singular level of the Internet Service.
    sldId number
    Second Level Domain.
    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.
    database str
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    direction str
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    extra_ip6_range_number int
    Extra number of IPv6 ranges.
    extra_ip_range_number int
    Extra number of IP ranges.
    fosid int
    Internet Service ID.
    icon_id int
    Icon ID of Internet Service.
    ip6_range_number int
    Number of IPv6 ranges.
    ip_number int
    Total number of IP addresses.
    ip_range_number int
    Total number of IP ranges.
    name str
    Internet Service name.
    obsolete int
    Indicates whether the Internet Service can be used.
    reputation int
    Reputation level of the Internet Service.
    singularity int
    Singular level of the Internet Service.
    sld_id int
    Second Level Domain.
    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.
    database String
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    direction String
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    extraIp6RangeNumber Number
    Extra number of IPv6 ranges.
    extraIpRangeNumber Number
    Extra number of IP ranges.
    fosid Number
    Internet Service ID.
    iconId Number
    Icon ID of Internet Service.
    ip6RangeNumber Number
    Number of IPv6 ranges.
    ipNumber Number
    Total number of IP addresses.
    ipRangeNumber Number
    Total number of IP ranges.
    name String
    Internet Service name.
    obsolete Number
    Indicates whether the Internet Service can be used.
    reputation Number
    Reputation level of the Internet Service.
    singularity Number
    Singular level of the Internet Service.
    sldId Number
    Second Level Domain.
    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 Internetservice 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 Internetservice Resource

    Get an existing Internetservice 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?: InternetserviceState, opts?: CustomResourceOptions): Internetservice
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            database: Optional[str] = None,
            direction: Optional[str] = None,
            extra_ip6_range_number: Optional[int] = None,
            extra_ip_range_number: Optional[int] = None,
            fosid: Optional[int] = None,
            icon_id: Optional[int] = None,
            ip6_range_number: Optional[int] = None,
            ip_number: Optional[int] = None,
            ip_range_number: Optional[int] = None,
            name: Optional[str] = None,
            obsolete: Optional[int] = None,
            reputation: Optional[int] = None,
            singularity: Optional[int] = None,
            sld_id: Optional[int] = None,
            vdomparam: Optional[str] = None) -> Internetservice
    func GetInternetservice(ctx *Context, name string, id IDInput, state *InternetserviceState, opts ...ResourceOption) (*Internetservice, error)
    public static Internetservice Get(string name, Input<string> id, InternetserviceState? state, CustomResourceOptions? opts = null)
    public static Internetservice get(String name, Output<String> id, InternetserviceState 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.
    The following state arguments are supported:
    Database string
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    Direction string
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    ExtraIp6RangeNumber int
    Extra number of IPv6 ranges.
    ExtraIpRangeNumber int
    Extra number of IP ranges.
    Fosid int
    Internet Service ID.
    IconId int
    Icon ID of Internet Service.
    Ip6RangeNumber int
    Number of IPv6 ranges.
    IpNumber int
    Total number of IP addresses.
    IpRangeNumber int
    Total number of IP ranges.
    Name string
    Internet Service name.
    Obsolete int
    Indicates whether the Internet Service can be used.
    Reputation int
    Reputation level of the Internet Service.
    Singularity int
    Singular level of the Internet Service.
    SldId int
    Second Level Domain.
    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.
    Database string
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    Direction string
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    ExtraIp6RangeNumber int
    Extra number of IPv6 ranges.
    ExtraIpRangeNumber int
    Extra number of IP ranges.
    Fosid int
    Internet Service ID.
    IconId int
    Icon ID of Internet Service.
    Ip6RangeNumber int
    Number of IPv6 ranges.
    IpNumber int
    Total number of IP addresses.
    IpRangeNumber int
    Total number of IP ranges.
    Name string
    Internet Service name.
    Obsolete int
    Indicates whether the Internet Service can be used.
    Reputation int
    Reputation level of the Internet Service.
    Singularity int
    Singular level of the Internet Service.
    SldId int
    Second Level Domain.
    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.
    database String
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    direction String
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    extraIp6RangeNumber Integer
    Extra number of IPv6 ranges.
    extraIpRangeNumber Integer
    Extra number of IP ranges.
    fosid Integer
    Internet Service ID.
    iconId Integer
    Icon ID of Internet Service.
    ip6RangeNumber Integer
    Number of IPv6 ranges.
    ipNumber Integer
    Total number of IP addresses.
    ipRangeNumber Integer
    Total number of IP ranges.
    name String
    Internet Service name.
    obsolete Integer
    Indicates whether the Internet Service can be used.
    reputation Integer
    Reputation level of the Internet Service.
    singularity Integer
    Singular level of the Internet Service.
    sldId Integer
    Second Level Domain.
    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.
    database string
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    direction string
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    extraIp6RangeNumber number
    Extra number of IPv6 ranges.
    extraIpRangeNumber number
    Extra number of IP ranges.
    fosid number
    Internet Service ID.
    iconId number
    Icon ID of Internet Service.
    ip6RangeNumber number
    Number of IPv6 ranges.
    ipNumber number
    Total number of IP addresses.
    ipRangeNumber number
    Total number of IP ranges.
    name string
    Internet Service name.
    obsolete number
    Indicates whether the Internet Service can be used.
    reputation number
    Reputation level of the Internet Service.
    singularity number
    Singular level of the Internet Service.
    sldId number
    Second Level Domain.
    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.
    database str
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    direction str
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    extra_ip6_range_number int
    Extra number of IPv6 ranges.
    extra_ip_range_number int
    Extra number of IP ranges.
    fosid int
    Internet Service ID.
    icon_id int
    Icon ID of Internet Service.
    ip6_range_number int
    Number of IPv6 ranges.
    ip_number int
    Total number of IP addresses.
    ip_range_number int
    Total number of IP ranges.
    name str
    Internet Service name.
    obsolete int
    Indicates whether the Internet Service can be used.
    reputation int
    Reputation level of the Internet Service.
    singularity int
    Singular level of the Internet Service.
    sld_id int
    Second Level Domain.
    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.
    database String
    Database name this Internet Service belongs to. Valid values: isdb, irdb.
    direction String
    How this service may be used in a firewall policy (source, destination or both). Valid values: src, dst, both.
    extraIp6RangeNumber Number
    Extra number of IPv6 ranges.
    extraIpRangeNumber Number
    Extra number of IP ranges.
    fosid Number
    Internet Service ID.
    iconId Number
    Icon ID of Internet Service.
    ip6RangeNumber Number
    Number of IPv6 ranges.
    ipNumber Number
    Total number of IP addresses.
    ipRangeNumber Number
    Total number of IP ranges.
    name String
    Internet Service name.
    obsolete Number
    Indicates whether the Internet Service can be used.
    reputation Number
    Reputation level of the Internet Service.
    singularity Number
    Singular level of the Internet Service.
    sldId Number
    Second Level Domain.
    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.

    Import

    Firewall InternetService can be imported using any of these accepted formats:

    $ pulumi import fortios:firewall/internetservice:Internetservice labelname {{fosid}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:firewall/internetservice:Internetservice 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.
    fortios logo
    Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse