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

fortios.firewall.DoSpolicy

Explore with Pulumi AI

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

    Configure IPv4 DoS policies.

    Create DoSpolicy Resource

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

    Constructor syntax

    new DoSpolicy(name: string, args: DoSpolicyArgs, opts?: CustomResourceOptions);
    @overload
    def DoSpolicy(resource_name: str,
                  args: DoSpolicyArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def DoSpolicy(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  dstaddrs: Optional[Sequence[DoSpolicyDstaddrArgs]] = None,
                  interface: Optional[str] = None,
                  srcaddrs: Optional[Sequence[DoSpolicySrcaddrArgs]] = None,
                  anomalies: Optional[Sequence[DoSpolicyAnomalyArgs]] = None,
                  comments: Optional[str] = None,
                  dynamic_sort_subtable: Optional[str] = None,
                  get_all_tables: Optional[str] = None,
                  name: Optional[str] = None,
                  policyid: Optional[int] = None,
                  services: Optional[Sequence[DoSpolicyServiceArgs]] = None,
                  status: Optional[str] = None,
                  vdomparam: Optional[str] = None)
    func NewDoSpolicy(ctx *Context, name string, args DoSpolicyArgs, opts ...ResourceOption) (*DoSpolicy, error)
    public DoSpolicy(string name, DoSpolicyArgs args, CustomResourceOptions? opts = null)
    public DoSpolicy(String name, DoSpolicyArgs args)
    public DoSpolicy(String name, DoSpolicyArgs args, CustomResourceOptions options)
    
    type: fortios:firewall:DoSpolicy
    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 DoSpolicyArgs
    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 DoSpolicyArgs
    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 DoSpolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DoSpolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DoSpolicyArgs
    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 doSpolicyResource = new Fortios.Firewall.DoSpolicy("doSpolicyResource", new()
    {
        Dstaddrs = new[]
        {
            new Fortios.Firewall.Inputs.DoSpolicyDstaddrArgs
            {
                Name = "string",
            },
        },
        Interface = "string",
        Srcaddrs = new[]
        {
            new Fortios.Firewall.Inputs.DoSpolicySrcaddrArgs
            {
                Name = "string",
            },
        },
        Anomalies = new[]
        {
            new Fortios.Firewall.Inputs.DoSpolicyAnomalyArgs
            {
                Action = "string",
                Log = "string",
                Name = "string",
                Quarantine = "string",
                QuarantineExpiry = "string",
                QuarantineLog = "string",
                Status = "string",
                Threshold = 0,
                Thresholddefault = 0,
            },
        },
        Comments = "string",
        DynamicSortSubtable = "string",
        GetAllTables = "string",
        Name = "string",
        Policyid = 0,
        Services = new[]
        {
            new Fortios.Firewall.Inputs.DoSpolicyServiceArgs
            {
                Name = "string",
            },
        },
        Status = "string",
        Vdomparam = "string",
    });
    
    example, err := firewall.NewDoSpolicy(ctx, "doSpolicyResource", &firewall.DoSpolicyArgs{
    	Dstaddrs: firewall.DoSpolicyDstaddrArray{
    		&firewall.DoSpolicyDstaddrArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Interface: pulumi.String("string"),
    	Srcaddrs: firewall.DoSpolicySrcaddrArray{
    		&firewall.DoSpolicySrcaddrArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Anomalies: firewall.DoSpolicyAnomalyArray{
    		&firewall.DoSpolicyAnomalyArgs{
    			Action:           pulumi.String("string"),
    			Log:              pulumi.String("string"),
    			Name:             pulumi.String("string"),
    			Quarantine:       pulumi.String("string"),
    			QuarantineExpiry: pulumi.String("string"),
    			QuarantineLog:    pulumi.String("string"),
    			Status:           pulumi.String("string"),
    			Threshold:        pulumi.Int(0),
    			Thresholddefault: pulumi.Int(0),
    		},
    	},
    	Comments:            pulumi.String("string"),
    	DynamicSortSubtable: pulumi.String("string"),
    	GetAllTables:        pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Policyid:            pulumi.Int(0),
    	Services: firewall.DoSpolicyServiceArray{
    		&firewall.DoSpolicyServiceArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Status:    pulumi.String("string"),
    	Vdomparam: pulumi.String("string"),
    })
    
    var doSpolicyResource = new DoSpolicy("doSpolicyResource", DoSpolicyArgs.builder()
        .dstaddrs(DoSpolicyDstaddrArgs.builder()
            .name("string")
            .build())
        .interface_("string")
        .srcaddrs(DoSpolicySrcaddrArgs.builder()
            .name("string")
            .build())
        .anomalies(DoSpolicyAnomalyArgs.builder()
            .action("string")
            .log("string")
            .name("string")
            .quarantine("string")
            .quarantineExpiry("string")
            .quarantineLog("string")
            .status("string")
            .threshold(0)
            .thresholddefault(0)
            .build())
        .comments("string")
        .dynamicSortSubtable("string")
        .getAllTables("string")
        .name("string")
        .policyid(0)
        .services(DoSpolicyServiceArgs.builder()
            .name("string")
            .build())
        .status("string")
        .vdomparam("string")
        .build());
    
    do_spolicy_resource = fortios.firewall.DoSpolicy("doSpolicyResource",
        dstaddrs=[fortios.firewall.DoSpolicyDstaddrArgs(
            name="string",
        )],
        interface="string",
        srcaddrs=[fortios.firewall.DoSpolicySrcaddrArgs(
            name="string",
        )],
        anomalies=[fortios.firewall.DoSpolicyAnomalyArgs(
            action="string",
            log="string",
            name="string",
            quarantine="string",
            quarantine_expiry="string",
            quarantine_log="string",
            status="string",
            threshold=0,
            thresholddefault=0,
        )],
        comments="string",
        dynamic_sort_subtable="string",
        get_all_tables="string",
        name="string",
        policyid=0,
        services=[fortios.firewall.DoSpolicyServiceArgs(
            name="string",
        )],
        status="string",
        vdomparam="string")
    
    const doSpolicyResource = new fortios.firewall.DoSpolicy("doSpolicyResource", {
        dstaddrs: [{
            name: "string",
        }],
        "interface": "string",
        srcaddrs: [{
            name: "string",
        }],
        anomalies: [{
            action: "string",
            log: "string",
            name: "string",
            quarantine: "string",
            quarantineExpiry: "string",
            quarantineLog: "string",
            status: "string",
            threshold: 0,
            thresholddefault: 0,
        }],
        comments: "string",
        dynamicSortSubtable: "string",
        getAllTables: "string",
        name: "string",
        policyid: 0,
        services: [{
            name: "string",
        }],
        status: "string",
        vdomparam: "string",
    });
    
    type: fortios:firewall:DoSpolicy
    properties:
        anomalies:
            - action: string
              log: string
              name: string
              quarantine: string
              quarantineExpiry: string
              quarantineLog: string
              status: string
              threshold: 0
              thresholddefault: 0
        comments: string
        dstaddrs:
            - name: string
        dynamicSortSubtable: string
        getAllTables: string
        interface: string
        name: string
        policyid: 0
        services:
            - name: string
        srcaddrs:
            - name: string
        status: string
        vdomparam: string
    

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

    Dstaddrs List<Pulumiverse.Fortios.Firewall.Inputs.DoSpolicyDstaddr>
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    Interface string
    Incoming interface name from available interfaces.
    Srcaddrs List<Pulumiverse.Fortios.Firewall.Inputs.DoSpolicySrcaddr>
    Source address name from available addresses. The structure of srcaddr block is documented below.
    Anomalies List<Pulumiverse.Fortios.Firewall.Inputs.DoSpolicyAnomaly>
    Anomaly name. The structure of anomaly block is documented below.
    Comments string
    Comment.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Name string
    Policy name.
    Policyid int
    Policy ID.
    Services List<Pulumiverse.Fortios.Firewall.Inputs.DoSpolicyService>
    Service object from available options. The structure of service block is documented below.
    Status string
    Enable/disable this policy. Valid values: enable, disable.
    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.
    Dstaddrs []DoSpolicyDstaddrArgs
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    Interface string
    Incoming interface name from available interfaces.
    Srcaddrs []DoSpolicySrcaddrArgs
    Source address name from available addresses. The structure of srcaddr block is documented below.
    Anomalies []DoSpolicyAnomalyArgs
    Anomaly name. The structure of anomaly block is documented below.
    Comments string
    Comment.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Name string
    Policy name.
    Policyid int
    Policy ID.
    Services []DoSpolicyServiceArgs
    Service object from available options. The structure of service block is documented below.
    Status string
    Enable/disable this policy. Valid values: enable, disable.
    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.
    dstaddrs List<DoSpolicyDstaddr>
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    interface_ String
    Incoming interface name from available interfaces.
    srcaddrs List<DoSpolicySrcaddr>
    Source address name from available addresses. The structure of srcaddr block is documented below.
    anomalies List<DoSpolicyAnomaly>
    Anomaly name. The structure of anomaly block is documented below.
    comments String
    Comment.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name String
    Policy name.
    policyid Integer
    Policy ID.
    services List<DoSpolicyService>
    Service object from available options. The structure of service block is documented below.
    status String
    Enable/disable this policy. Valid values: enable, disable.
    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.
    dstaddrs DoSpolicyDstaddr[]
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    interface string
    Incoming interface name from available interfaces.
    srcaddrs DoSpolicySrcaddr[]
    Source address name from available addresses. The structure of srcaddr block is documented below.
    anomalies DoSpolicyAnomaly[]
    Anomaly name. The structure of anomaly block is documented below.
    comments string
    Comment.
    dynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name string
    Policy name.
    policyid number
    Policy ID.
    services DoSpolicyService[]
    Service object from available options. The structure of service block is documented below.
    status string
    Enable/disable this policy. Valid values: enable, disable.
    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.
    dstaddrs Sequence[DoSpolicyDstaddrArgs]
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    interface str
    Incoming interface name from available interfaces.
    srcaddrs Sequence[DoSpolicySrcaddrArgs]
    Source address name from available addresses. The structure of srcaddr block is documented below.
    anomalies Sequence[DoSpolicyAnomalyArgs]
    Anomaly name. The structure of anomaly block is documented below.
    comments str
    Comment.
    dynamic_sort_subtable str
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name str
    Policy name.
    policyid int
    Policy ID.
    services Sequence[DoSpolicyServiceArgs]
    Service object from available options. The structure of service block is documented below.
    status str
    Enable/disable this policy. Valid values: enable, disable.
    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.
    dstaddrs List<Property Map>
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    interface String
    Incoming interface name from available interfaces.
    srcaddrs List<Property Map>
    Source address name from available addresses. The structure of srcaddr block is documented below.
    anomalies List<Property Map>
    Anomaly name. The structure of anomaly block is documented below.
    comments String
    Comment.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name String
    Policy name.
    policyid Number
    Policy ID.
    services List<Property Map>
    Service object from available options. The structure of service block is documented below.
    status String
    Enable/disable this policy. Valid values: enable, disable.
    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 DoSpolicy 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 DoSpolicy Resource

    Get an existing DoSpolicy 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?: DoSpolicyState, opts?: CustomResourceOptions): DoSpolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            anomalies: Optional[Sequence[DoSpolicyAnomalyArgs]] = None,
            comments: Optional[str] = None,
            dstaddrs: Optional[Sequence[DoSpolicyDstaddrArgs]] = None,
            dynamic_sort_subtable: Optional[str] = None,
            get_all_tables: Optional[str] = None,
            interface: Optional[str] = None,
            name: Optional[str] = None,
            policyid: Optional[int] = None,
            services: Optional[Sequence[DoSpolicyServiceArgs]] = None,
            srcaddrs: Optional[Sequence[DoSpolicySrcaddrArgs]] = None,
            status: Optional[str] = None,
            vdomparam: Optional[str] = None) -> DoSpolicy
    func GetDoSpolicy(ctx *Context, name string, id IDInput, state *DoSpolicyState, opts ...ResourceOption) (*DoSpolicy, error)
    public static DoSpolicy Get(string name, Input<string> id, DoSpolicyState? state, CustomResourceOptions? opts = null)
    public static DoSpolicy get(String name, Output<String> id, DoSpolicyState 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:
    Anomalies List<Pulumiverse.Fortios.Firewall.Inputs.DoSpolicyAnomaly>
    Anomaly name. The structure of anomaly block is documented below.
    Comments string
    Comment.
    Dstaddrs List<Pulumiverse.Fortios.Firewall.Inputs.DoSpolicyDstaddr>
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Interface string
    Incoming interface name from available interfaces.
    Name string
    Policy name.
    Policyid int
    Policy ID.
    Services List<Pulumiverse.Fortios.Firewall.Inputs.DoSpolicyService>
    Service object from available options. The structure of service block is documented below.
    Srcaddrs List<Pulumiverse.Fortios.Firewall.Inputs.DoSpolicySrcaddr>
    Source address name from available addresses. The structure of srcaddr block is documented below.
    Status string
    Enable/disable this policy. Valid values: enable, disable.
    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.
    Anomalies []DoSpolicyAnomalyArgs
    Anomaly name. The structure of anomaly block is documented below.
    Comments string
    Comment.
    Dstaddrs []DoSpolicyDstaddrArgs
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Interface string
    Incoming interface name from available interfaces.
    Name string
    Policy name.
    Policyid int
    Policy ID.
    Services []DoSpolicyServiceArgs
    Service object from available options. The structure of service block is documented below.
    Srcaddrs []DoSpolicySrcaddrArgs
    Source address name from available addresses. The structure of srcaddr block is documented below.
    Status string
    Enable/disable this policy. Valid values: enable, disable.
    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.
    anomalies List<DoSpolicyAnomaly>
    Anomaly name. The structure of anomaly block is documented below.
    comments String
    Comment.
    dstaddrs List<DoSpolicyDstaddr>
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    interface_ String
    Incoming interface name from available interfaces.
    name String
    Policy name.
    policyid Integer
    Policy ID.
    services List<DoSpolicyService>
    Service object from available options. The structure of service block is documented below.
    srcaddrs List<DoSpolicySrcaddr>
    Source address name from available addresses. The structure of srcaddr block is documented below.
    status String
    Enable/disable this policy. Valid values: enable, disable.
    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.
    anomalies DoSpolicyAnomaly[]
    Anomaly name. The structure of anomaly block is documented below.
    comments string
    Comment.
    dstaddrs DoSpolicyDstaddr[]
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    dynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    interface string
    Incoming interface name from available interfaces.
    name string
    Policy name.
    policyid number
    Policy ID.
    services DoSpolicyService[]
    Service object from available options. The structure of service block is documented below.
    srcaddrs DoSpolicySrcaddr[]
    Source address name from available addresses. The structure of srcaddr block is documented below.
    status string
    Enable/disable this policy. Valid values: enable, disable.
    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.
    anomalies Sequence[DoSpolicyAnomalyArgs]
    Anomaly name. The structure of anomaly block is documented below.
    comments str
    Comment.
    dstaddrs Sequence[DoSpolicyDstaddrArgs]
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    dynamic_sort_subtable str
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    interface str
    Incoming interface name from available interfaces.
    name str
    Policy name.
    policyid int
    Policy ID.
    services Sequence[DoSpolicyServiceArgs]
    Service object from available options. The structure of service block is documented below.
    srcaddrs Sequence[DoSpolicySrcaddrArgs]
    Source address name from available addresses. The structure of srcaddr block is documented below.
    status str
    Enable/disable this policy. Valid values: enable, disable.
    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.
    anomalies List<Property Map>
    Anomaly name. The structure of anomaly block is documented below.
    comments String
    Comment.
    dstaddrs List<Property Map>
    Destination address name from available addresses. The structure of dstaddr block is documented below.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    interface String
    Incoming interface name from available interfaces.
    name String
    Policy name.
    policyid Number
    Policy ID.
    services List<Property Map>
    Service object from available options. The structure of service block is documented below.
    srcaddrs List<Property Map>
    Source address name from available addresses. The structure of srcaddr block is documented below.
    status String
    Enable/disable this policy. Valid values: enable, disable.
    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.

    Supporting Types

    DoSpolicyAnomaly, DoSpolicyAnomalyArgs

    Action string
    Action taken when the threshold is reached.
    Log string
    Enable/disable anomaly logging. Valid values: enable, disable.
    Name string
    Anomaly name.
    Quarantine string
    Quarantine method. Valid values: none, attacker.
    QuarantineExpiry string
    Duration of quarantine. (Format ###d##h##m, minimum 1m, maximum 364d23h59m, default = 5m). Requires quarantine set to attacker.
    QuarantineLog string
    Enable/disable quarantine logging. Valid values: disable, enable.
    Status string
    Enable/disable this anomaly. Valid values: disable, enable.
    Threshold int
    Anomaly threshold. Number of detected instances that triggers the anomaly action. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    Thresholddefault int
    Number of detected instances which triggers action (1 - 2147483647, default = 1000). Note that each anomaly has a different threshold value assigned to it. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    Action string
    Action taken when the threshold is reached.
    Log string
    Enable/disable anomaly logging. Valid values: enable, disable.
    Name string
    Anomaly name.
    Quarantine string
    Quarantine method. Valid values: none, attacker.
    QuarantineExpiry string
    Duration of quarantine. (Format ###d##h##m, minimum 1m, maximum 364d23h59m, default = 5m). Requires quarantine set to attacker.
    QuarantineLog string
    Enable/disable quarantine logging. Valid values: disable, enable.
    Status string
    Enable/disable this anomaly. Valid values: disable, enable.
    Threshold int
    Anomaly threshold. Number of detected instances that triggers the anomaly action. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    Thresholddefault int
    Number of detected instances which triggers action (1 - 2147483647, default = 1000). Note that each anomaly has a different threshold value assigned to it. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    action String
    Action taken when the threshold is reached.
    log String
    Enable/disable anomaly logging. Valid values: enable, disable.
    name String
    Anomaly name.
    quarantine String
    Quarantine method. Valid values: none, attacker.
    quarantineExpiry String
    Duration of quarantine. (Format ###d##h##m, minimum 1m, maximum 364d23h59m, default = 5m). Requires quarantine set to attacker.
    quarantineLog String
    Enable/disable quarantine logging. Valid values: disable, enable.
    status String
    Enable/disable this anomaly. Valid values: disable, enable.
    threshold Integer
    Anomaly threshold. Number of detected instances that triggers the anomaly action. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    thresholddefault Integer
    Number of detected instances which triggers action (1 - 2147483647, default = 1000). Note that each anomaly has a different threshold value assigned to it. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    action string
    Action taken when the threshold is reached.
    log string
    Enable/disable anomaly logging. Valid values: enable, disable.
    name string
    Anomaly name.
    quarantine string
    Quarantine method. Valid values: none, attacker.
    quarantineExpiry string
    Duration of quarantine. (Format ###d##h##m, minimum 1m, maximum 364d23h59m, default = 5m). Requires quarantine set to attacker.
    quarantineLog string
    Enable/disable quarantine logging. Valid values: disable, enable.
    status string
    Enable/disable this anomaly. Valid values: disable, enable.
    threshold number
    Anomaly threshold. Number of detected instances that triggers the anomaly action. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    thresholddefault number
    Number of detected instances which triggers action (1 - 2147483647, default = 1000). Note that each anomaly has a different threshold value assigned to it. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    action str
    Action taken when the threshold is reached.
    log str
    Enable/disable anomaly logging. Valid values: enable, disable.
    name str
    Anomaly name.
    quarantine str
    Quarantine method. Valid values: none, attacker.
    quarantine_expiry str
    Duration of quarantine. (Format ###d##h##m, minimum 1m, maximum 364d23h59m, default = 5m). Requires quarantine set to attacker.
    quarantine_log str
    Enable/disable quarantine logging. Valid values: disable, enable.
    status str
    Enable/disable this anomaly. Valid values: disable, enable.
    threshold int
    Anomaly threshold. Number of detected instances that triggers the anomaly action. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    thresholddefault int
    Number of detected instances which triggers action (1 - 2147483647, default = 1000). Note that each anomaly has a different threshold value assigned to it. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    action String
    Action taken when the threshold is reached.
    log String
    Enable/disable anomaly logging. Valid values: enable, disable.
    name String
    Anomaly name.
    quarantine String
    Quarantine method. Valid values: none, attacker.
    quarantineExpiry String
    Duration of quarantine. (Format ###d##h##m, minimum 1m, maximum 364d23h59m, default = 5m). Requires quarantine set to attacker.
    quarantineLog String
    Enable/disable quarantine logging. Valid values: disable, enable.
    status String
    Enable/disable this anomaly. Valid values: disable, enable.
    threshold Number
    Anomaly threshold. Number of detected instances that triggers the anomaly action. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.
    thresholddefault Number
    Number of detected instances which triggers action (1 - 2147483647, default = 1000). Note that each anomaly has a different threshold value assigned to it. On FortiOS versions 6.2.0-6.4.2, 7.0.0-7.0.5, 7.2.0: packets per minute. On FortiOS versions 6.4.10-6.4.14, 7.0.6-7.0.13, >= 7.2.1: packets per second or concurrent session number.

    DoSpolicyDstaddr, DoSpolicyDstaddrArgs

    Name string
    Address name.
    Name string
    Address name.
    name String
    Address name.
    name string
    Address name.
    name str
    Address name.
    name String
    Address name.

    DoSpolicyService, DoSpolicyServiceArgs

    Name string
    Service name.
    Name string
    Service name.
    name String
    Service name.
    name string
    Service name.
    name str
    Service name.
    name String
    Service name.

    DoSpolicySrcaddr, DoSpolicySrcaddrArgs

    Name string
    Service name.
    Name string
    Service name.
    name String
    Service name.
    name string
    Service name.
    name str
    Service name.
    name String
    Service name.

    Import

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

    $ pulumi import fortios:firewall/doSpolicy:DoSpolicy labelname {{policyid}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:firewall/doSpolicy:DoSpolicy labelname {{policyid}}
    

    $ 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