1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectUserSecurityexemptlistRule
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.ObjectUserSecurityexemptlistRule

Explore with Pulumi AI

fortimanager logo
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

    Configure rules for exempting users from captive portal authentication.

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortimanager from "@pulumi/fortimanager";
    
    const trnameObjectUserSecurityexemptlist = new fortimanager.ObjectUserSecurityexemptlist("trnameObjectUserSecurityexemptlist", {});
    const trnameObjectUserSecurityexemptlistRule = new fortimanager.ObjectUserSecurityexemptlistRule("trnameObjectUserSecurityexemptlistRule", {
        securityExemptList: trnameObjectUserSecurityexemptlist.name,
        fosid: 1,
    }, {
        dependsOn: [trnameObjectUserSecurityexemptlist],
    });
    
    import pulumi
    import pulumi_fortimanager as fortimanager
    
    trname_object_user_securityexemptlist = fortimanager.ObjectUserSecurityexemptlist("trnameObjectUserSecurityexemptlist")
    trname_object_user_securityexemptlist_rule = fortimanager.ObjectUserSecurityexemptlistRule("trnameObjectUserSecurityexemptlistRule",
        security_exempt_list=trname_object_user_securityexemptlist.name,
        fosid=1,
        opts = pulumi.ResourceOptions(depends_on=[trname_object_user_securityexemptlist]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		trnameObjectUserSecurityexemptlist, err := fortimanager.NewObjectUserSecurityexemptlist(ctx, "trnameObjectUserSecurityexemptlist", nil)
    		if err != nil {
    			return err
    		}
    		_, err = fortimanager.NewObjectUserSecurityexemptlistRule(ctx, "trnameObjectUserSecurityexemptlistRule", &fortimanager.ObjectUserSecurityexemptlistRuleArgs{
    			SecurityExemptList: trnameObjectUserSecurityexemptlist.Name,
    			Fosid:              pulumi.Float64(1),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			trnameObjectUserSecurityexemptlist,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortimanager = Pulumi.Fortimanager;
    
    return await Deployment.RunAsync(() => 
    {
        var trnameObjectUserSecurityexemptlist = new Fortimanager.ObjectUserSecurityexemptlist("trnameObjectUserSecurityexemptlist");
    
        var trnameObjectUserSecurityexemptlistRule = new Fortimanager.ObjectUserSecurityexemptlistRule("trnameObjectUserSecurityexemptlistRule", new()
        {
            SecurityExemptList = trnameObjectUserSecurityexemptlist.Name,
            Fosid = 1,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                trnameObjectUserSecurityexemptlist,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortimanager.ObjectUserSecurityexemptlist;
    import com.pulumi.fortimanager.ObjectUserSecurityexemptlistRule;
    import com.pulumi.fortimanager.ObjectUserSecurityexemptlistRuleArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var trnameObjectUserSecurityexemptlist = new ObjectUserSecurityexemptlist("trnameObjectUserSecurityexemptlist");
    
            var trnameObjectUserSecurityexemptlistRule = new ObjectUserSecurityexemptlistRule("trnameObjectUserSecurityexemptlistRule", ObjectUserSecurityexemptlistRuleArgs.builder()
                .securityExemptList(trnameObjectUserSecurityexemptlist.name())
                .fosid(1)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(trnameObjectUserSecurityexemptlist)
                    .build());
    
        }
    }
    
    resources:
      trnameObjectUserSecurityexemptlistRule:
        type: fortimanager:ObjectUserSecurityexemptlistRule
        properties:
          securityExemptList: ${trnameObjectUserSecurityexemptlist.name}
          fosid: 1
        options:
          dependsOn:
            - ${trnameObjectUserSecurityexemptlist}
      trnameObjectUserSecurityexemptlist:
        type: fortimanager:ObjectUserSecurityexemptlist
    

    Create ObjectUserSecurityexemptlistRule Resource

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

    Constructor syntax

    new ObjectUserSecurityexemptlistRule(name: string, args: ObjectUserSecurityexemptlistRuleArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectUserSecurityexemptlistRule(resource_name: str,
                                         args: ObjectUserSecurityexemptlistRuleInitArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectUserSecurityexemptlistRule(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         security_exempt_list: Optional[str] = None,
                                         adom: Optional[str] = None,
                                         devices: Optional[str] = None,
                                         dstaddr: Optional[str] = None,
                                         fosid: Optional[float] = None,
                                         object_user_securityexemptlist_rule_id: Optional[str] = None,
                                         scopetype: Optional[str] = None,
                                         service: Optional[str] = None,
                                         srcaddr: Optional[str] = None)
    func NewObjectUserSecurityexemptlistRule(ctx *Context, name string, args ObjectUserSecurityexemptlistRuleArgs, opts ...ResourceOption) (*ObjectUserSecurityexemptlistRule, error)
    public ObjectUserSecurityexemptlistRule(string name, ObjectUserSecurityexemptlistRuleArgs args, CustomResourceOptions? opts = null)
    public ObjectUserSecurityexemptlistRule(String name, ObjectUserSecurityexemptlistRuleArgs args)
    public ObjectUserSecurityexemptlistRule(String name, ObjectUserSecurityexemptlistRuleArgs args, CustomResourceOptions options)
    
    type: fortimanager:ObjectUserSecurityexemptlistRule
    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 ObjectUserSecurityexemptlistRuleArgs
    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 ObjectUserSecurityexemptlistRuleInitArgs
    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 ObjectUserSecurityexemptlistRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectUserSecurityexemptlistRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectUserSecurityexemptlistRuleArgs
    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 objectUserSecurityexemptlistRuleResource = new Fortimanager.ObjectUserSecurityexemptlistRule("objectUserSecurityexemptlistRuleResource", new()
    {
        SecurityExemptList = "string",
        Adom = "string",
        Devices = "string",
        Dstaddr = "string",
        Fosid = 0,
        ObjectUserSecurityexemptlistRuleId = "string",
        Scopetype = "string",
        Service = "string",
        Srcaddr = "string",
    });
    
    example, err := fortimanager.NewObjectUserSecurityexemptlistRule(ctx, "objectUserSecurityexemptlistRuleResource", &fortimanager.ObjectUserSecurityexemptlistRuleArgs{
    SecurityExemptList: pulumi.String("string"),
    Adom: pulumi.String("string"),
    Devices: pulumi.String("string"),
    Dstaddr: pulumi.String("string"),
    Fosid: pulumi.Float64(0),
    ObjectUserSecurityexemptlistRuleId: pulumi.String("string"),
    Scopetype: pulumi.String("string"),
    Service: pulumi.String("string"),
    Srcaddr: pulumi.String("string"),
    })
    
    var objectUserSecurityexemptlistRuleResource = new ObjectUserSecurityexemptlistRule("objectUserSecurityexemptlistRuleResource", ObjectUserSecurityexemptlistRuleArgs.builder()
        .securityExemptList("string")
        .adom("string")
        .devices("string")
        .dstaddr("string")
        .fosid(0)
        .objectUserSecurityexemptlistRuleId("string")
        .scopetype("string")
        .service("string")
        .srcaddr("string")
        .build());
    
    object_user_securityexemptlist_rule_resource = fortimanager.ObjectUserSecurityexemptlistRule("objectUserSecurityexemptlistRuleResource",
        security_exempt_list="string",
        adom="string",
        devices="string",
        dstaddr="string",
        fosid=0,
        object_user_securityexemptlist_rule_id="string",
        scopetype="string",
        service="string",
        srcaddr="string")
    
    const objectUserSecurityexemptlistRuleResource = new fortimanager.ObjectUserSecurityexemptlistRule("objectUserSecurityexemptlistRuleResource", {
        securityExemptList: "string",
        adom: "string",
        devices: "string",
        dstaddr: "string",
        fosid: 0,
        objectUserSecurityexemptlistRuleId: "string",
        scopetype: "string",
        service: "string",
        srcaddr: "string",
    });
    
    type: fortimanager:ObjectUserSecurityexemptlistRule
    properties:
        adom: string
        devices: string
        dstaddr: string
        fosid: 0
        objectUserSecurityexemptlistRuleId: string
        scopetype: string
        securityExemptList: string
        service: string
        srcaddr: string
    

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

    SecurityExemptList string
    Security Exempt List.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Devices string
    Devices or device groups.
    Dstaddr string
    Destination addresses or address groups.
    Fosid double
    ID.
    ObjectUserSecurityexemptlistRuleId 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.
    Service string
    Destination services.
    Srcaddr string
    Source addresses or address groups.
    SecurityExemptList string
    Security Exempt List.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Devices string
    Devices or device groups.
    Dstaddr string
    Destination addresses or address groups.
    Fosid float64
    ID.
    ObjectUserSecurityexemptlistRuleId 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.
    Service string
    Destination services.
    Srcaddr string
    Source addresses or address groups.
    securityExemptList String
    Security Exempt List.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    devices String
    Devices or device groups.
    dstaddr String
    Destination addresses or address groups.
    fosid Double
    ID.
    objectUserSecurityexemptlistRuleId 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.
    service String
    Destination services.
    srcaddr String
    Source addresses or address groups.
    securityExemptList string
    Security Exempt List.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    devices string
    Devices or device groups.
    dstaddr string
    Destination addresses or address groups.
    fosid number
    ID.
    objectUserSecurityexemptlistRuleId 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.
    service string
    Destination services.
    srcaddr string
    Source addresses or address groups.
    security_exempt_list str
    Security Exempt List.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    devices str
    Devices or device groups.
    dstaddr str
    Destination addresses or address groups.
    fosid float
    ID.
    object_user_securityexemptlist_rule_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.
    service str
    Destination services.
    srcaddr str
    Source addresses or address groups.
    securityExemptList String
    Security Exempt List.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    devices String
    Devices or device groups.
    dstaddr String
    Destination addresses or address groups.
    fosid Number
    ID.
    objectUserSecurityexemptlistRuleId 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.
    service String
    Destination services.
    srcaddr String
    Source addresses or address groups.

    Outputs

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

    Get an existing ObjectUserSecurityexemptlistRule 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?: ObjectUserSecurityexemptlistRuleState, opts?: CustomResourceOptions): ObjectUserSecurityexemptlistRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            devices: Optional[str] = None,
            dstaddr: Optional[str] = None,
            fosid: Optional[float] = None,
            object_user_securityexemptlist_rule_id: Optional[str] = None,
            scopetype: Optional[str] = None,
            security_exempt_list: Optional[str] = None,
            service: Optional[str] = None,
            srcaddr: Optional[str] = None) -> ObjectUserSecurityexemptlistRule
    func GetObjectUserSecurityexemptlistRule(ctx *Context, name string, id IDInput, state *ObjectUserSecurityexemptlistRuleState, opts ...ResourceOption) (*ObjectUserSecurityexemptlistRule, error)
    public static ObjectUserSecurityexemptlistRule Get(string name, Input<string> id, ObjectUserSecurityexemptlistRuleState? state, CustomResourceOptions? opts = null)
    public static ObjectUserSecurityexemptlistRule get(String name, Output<String> id, ObjectUserSecurityexemptlistRuleState state, CustomResourceOptions options)
    resources:  _:    type: fortimanager:ObjectUserSecurityexemptlistRule    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.
    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.
    Devices string
    Devices or device groups.
    Dstaddr string
    Destination addresses or address groups.
    Fosid double
    ID.
    ObjectUserSecurityexemptlistRuleId 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.
    SecurityExemptList string
    Security Exempt List.
    Service string
    Destination services.
    Srcaddr string
    Source addresses or address groups.
    Adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    Devices string
    Devices or device groups.
    Dstaddr string
    Destination addresses or address groups.
    Fosid float64
    ID.
    ObjectUserSecurityexemptlistRuleId 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.
    SecurityExemptList string
    Security Exempt List.
    Service string
    Destination services.
    Srcaddr string
    Source addresses or address groups.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    devices String
    Devices or device groups.
    dstaddr String
    Destination addresses or address groups.
    fosid Double
    ID.
    objectUserSecurityexemptlistRuleId 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.
    securityExemptList String
    Security Exempt List.
    service String
    Destination services.
    srcaddr String
    Source addresses or address groups.
    adom string
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    devices string
    Devices or device groups.
    dstaddr string
    Destination addresses or address groups.
    fosid number
    ID.
    objectUserSecurityexemptlistRuleId 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.
    securityExemptList string
    Security Exempt List.
    service string
    Destination services.
    srcaddr string
    Source addresses or address groups.
    adom str
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    devices str
    Devices or device groups.
    dstaddr str
    Destination addresses or address groups.
    fosid float
    ID.
    object_user_securityexemptlist_rule_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.
    security_exempt_list str
    Security Exempt List.
    service str
    Destination services.
    srcaddr str
    Source addresses or address groups.
    adom String
    Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
    devices String
    Devices or device groups.
    dstaddr String
    Destination addresses or address groups.
    fosid Number
    ID.
    objectUserSecurityexemptlistRuleId 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.
    securityExemptList String
    Security Exempt List.
    service String
    Destination services.
    srcaddr String
    Source addresses or address groups.

    Import

    ObjectUser SecurityExemptListRule can be imported using any of these accepted formats:

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

    $ export “FORTIMANAGER_IMPORT_TABLE”=“true”

    $ pulumi import fortimanager:index/objectUserSecurityexemptlistRule:ObjectUserSecurityexemptlistRule 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 fortimanager Terraform Provider.
    fortimanager logo
    fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev