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

fortimanager.ObjectRouterAccesslistRule

Explore with Pulumi AI

Rule.

This resource is a sub resource for variable rule of resource fortimanager.ObjectRouterAccesslist. 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 trnameObjectRouterAccesslist = new fortimanager.ObjectRouterAccesslist("trnameObjectRouterAccesslist", {});
const trnameObjectRouterAccesslistRule = new fortimanager.ObjectRouterAccesslistRule("trnameObjectRouterAccesslistRule", {
    accessList: trnameObjectRouterAccesslist.name,
    action: "permit",
    fosid: 1,
}, {
    dependsOn: [trnameObjectRouterAccesslist],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_router_accesslist = fortimanager.ObjectRouterAccesslist("trnameObjectRouterAccesslist")
trname_object_router_accesslist_rule = fortimanager.ObjectRouterAccesslistRule("trnameObjectRouterAccesslistRule",
    access_list=trname_object_router_accesslist.name,
    action="permit",
    fosid=1,
    opts = pulumi.ResourceOptions(depends_on=[trname_object_router_accesslist]))
Copy
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 {
		trnameObjectRouterAccesslist, err := fortimanager.NewObjectRouterAccesslist(ctx, "trnameObjectRouterAccesslist", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectRouterAccesslistRule(ctx, "trnameObjectRouterAccesslistRule", &fortimanager.ObjectRouterAccesslistRuleArgs{
			AccessList: trnameObjectRouterAccesslist.Name,
			Action:     pulumi.String("permit"),
			Fosid:      pulumi.Float64(1),
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectRouterAccesslist,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trnameObjectRouterAccesslist = new Fortimanager.ObjectRouterAccesslist("trnameObjectRouterAccesslist");

    var trnameObjectRouterAccesslistRule = new Fortimanager.ObjectRouterAccesslistRule("trnameObjectRouterAccesslistRule", new()
    {
        AccessList = trnameObjectRouterAccesslist.Name,
        Action = "permit",
        Fosid = 1,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectRouterAccesslist,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectRouterAccesslist;
import com.pulumi.fortimanager.ObjectRouterAccesslistRule;
import com.pulumi.fortimanager.ObjectRouterAccesslistRuleArgs;
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 trnameObjectRouterAccesslist = new ObjectRouterAccesslist("trnameObjectRouterAccesslist");

        var trnameObjectRouterAccesslistRule = new ObjectRouterAccesslistRule("trnameObjectRouterAccesslistRule", ObjectRouterAccesslistRuleArgs.builder()
            .accessList(trnameObjectRouterAccesslist.name())
            .action("permit")
            .fosid(1)
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectRouterAccesslist)
                .build());

    }
}
Copy
resources:
  trnameObjectRouterAccesslistRule:
    type: fortimanager:ObjectRouterAccesslistRule
    properties:
      accessList: ${trnameObjectRouterAccesslist.name}
      action: permit
      fosid: 1
    options:
      dependsOn:
        - ${trnameObjectRouterAccesslist}
  trnameObjectRouterAccesslist:
    type: fortimanager:ObjectRouterAccesslist
Copy

Create ObjectRouterAccesslistRule Resource

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

Constructor syntax

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

@overload
def ObjectRouterAccesslistRule(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               access_list: Optional[str] = None,
                               action: Optional[str] = None,
                               adom: Optional[str] = None,
                               exact_match: Optional[str] = None,
                               flags: Optional[float] = None,
                               fosid: Optional[float] = None,
                               object_router_accesslist_rule_id: Optional[str] = None,
                               prefix: Optional[str] = None,
                               scopetype: Optional[str] = None,
                               wildcard: Optional[str] = None)
func NewObjectRouterAccesslistRule(ctx *Context, name string, args ObjectRouterAccesslistRuleArgs, opts ...ResourceOption) (*ObjectRouterAccesslistRule, error)
public ObjectRouterAccesslistRule(string name, ObjectRouterAccesslistRuleArgs args, CustomResourceOptions? opts = null)
public ObjectRouterAccesslistRule(String name, ObjectRouterAccesslistRuleArgs args)
public ObjectRouterAccesslistRule(String name, ObjectRouterAccesslistRuleArgs args, CustomResourceOptions options)
type: fortimanager:ObjectRouterAccesslistRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ObjectRouterAccesslistRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ObjectRouterAccesslistRuleInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectRouterAccesslistRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ObjectRouterAccesslistRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ObjectRouterAccesslistRuleArgs
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 objectRouterAccesslistRuleResource = new Fortimanager.ObjectRouterAccesslistRule("objectRouterAccesslistRuleResource", new()
{
    AccessList = "string",
    Action = "string",
    Adom = "string",
    ExactMatch = "string",
    Flags = 0,
    Fosid = 0,
    ObjectRouterAccesslistRuleId = "string",
    Prefix = "string",
    Scopetype = "string",
    Wildcard = "string",
});
Copy
example, err := fortimanager.NewObjectRouterAccesslistRule(ctx, "objectRouterAccesslistRuleResource", &fortimanager.ObjectRouterAccesslistRuleArgs{
	AccessList:                   pulumi.String("string"),
	Action:                       pulumi.String("string"),
	Adom:                         pulumi.String("string"),
	ExactMatch:                   pulumi.String("string"),
	Flags:                        pulumi.Float64(0),
	Fosid:                        pulumi.Float64(0),
	ObjectRouterAccesslistRuleId: pulumi.String("string"),
	Prefix:                       pulumi.String("string"),
	Scopetype:                    pulumi.String("string"),
	Wildcard:                     pulumi.String("string"),
})
Copy
var objectRouterAccesslistRuleResource = new ObjectRouterAccesslistRule("objectRouterAccesslistRuleResource", ObjectRouterAccesslistRuleArgs.builder()
    .accessList("string")
    .action("string")
    .adom("string")
    .exactMatch("string")
    .flags(0)
    .fosid(0)
    .objectRouterAccesslistRuleId("string")
    .prefix("string")
    .scopetype("string")
    .wildcard("string")
    .build());
Copy
object_router_accesslist_rule_resource = fortimanager.ObjectRouterAccesslistRule("objectRouterAccesslistRuleResource",
    access_list="string",
    action="string",
    adom="string",
    exact_match="string",
    flags=0,
    fosid=0,
    object_router_accesslist_rule_id="string",
    prefix="string",
    scopetype="string",
    wildcard="string")
Copy
const objectRouterAccesslistRuleResource = new fortimanager.ObjectRouterAccesslistRule("objectRouterAccesslistRuleResource", {
    accessList: "string",
    action: "string",
    adom: "string",
    exactMatch: "string",
    flags: 0,
    fosid: 0,
    objectRouterAccesslistRuleId: "string",
    prefix: "string",
    scopetype: "string",
    wildcard: "string",
});
Copy
type: fortimanager:ObjectRouterAccesslistRule
properties:
    accessList: string
    action: string
    adom: string
    exactMatch: string
    flags: 0
    fosid: 0
    objectRouterAccesslistRuleId: string
    prefix: string
    scopetype: string
    wildcard: string
Copy

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

AccessList This property is required. string
Access List.
Action string
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ExactMatch string
Enable/disable exact match. Valid values: disable, enable.
Flags double
Flags.
Fosid double
Rule ID.
ObjectRouterAccesslistRuleId string
an identifier for the resource with format {{fosid}}.
Prefix string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
Wildcard string
Wildcard to define Cisco-style wildcard filter criteria.
AccessList This property is required. string
Access List.
Action string
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ExactMatch string
Enable/disable exact match. Valid values: disable, enable.
Flags float64
Flags.
Fosid float64
Rule ID.
ObjectRouterAccesslistRuleId string
an identifier for the resource with format {{fosid}}.
Prefix string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
Wildcard string
Wildcard to define Cisco-style wildcard filter criteria.
accessList This property is required. String
Access List.
action String
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
exactMatch String
Enable/disable exact match. Valid values: disable, enable.
flags Double
Flags.
fosid Double
Rule ID.
objectRouterAccesslistRuleId String
an identifier for the resource with format {{fosid}}.
prefix String
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
wildcard String
Wildcard to define Cisco-style wildcard filter criteria.
accessList This property is required. string
Access List.
action string
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
exactMatch string
Enable/disable exact match. Valid values: disable, enable.
flags number
Flags.
fosid number
Rule ID.
objectRouterAccesslistRuleId string
an identifier for the resource with format {{fosid}}.
prefix string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
wildcard string
Wildcard to define Cisco-style wildcard filter criteria.
access_list This property is required. str
Access List.
action str
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
exact_match str
Enable/disable exact match. Valid values: disable, enable.
flags float
Flags.
fosid float
Rule ID.
object_router_accesslist_rule_id str
an identifier for the resource with format {{fosid}}.
prefix str
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
wildcard str
Wildcard to define Cisco-style wildcard filter criteria.
accessList This property is required. String
Access List.
action String
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
exactMatch String
Enable/disable exact match. Valid values: disable, enable.
flags Number
Flags.
fosid Number
Rule ID.
objectRouterAccesslistRuleId String
an identifier for the resource with format {{fosid}}.
prefix String
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
wildcard String
Wildcard to define Cisco-style wildcard filter criteria.

Outputs

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

Get an existing ObjectRouterAccesslistRule 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?: ObjectRouterAccesslistRuleState, opts?: CustomResourceOptions): ObjectRouterAccesslistRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_list: Optional[str] = None,
        action: Optional[str] = None,
        adom: Optional[str] = None,
        exact_match: Optional[str] = None,
        flags: Optional[float] = None,
        fosid: Optional[float] = None,
        object_router_accesslist_rule_id: Optional[str] = None,
        prefix: Optional[str] = None,
        scopetype: Optional[str] = None,
        wildcard: Optional[str] = None) -> ObjectRouterAccesslistRule
func GetObjectRouterAccesslistRule(ctx *Context, name string, id IDInput, state *ObjectRouterAccesslistRuleState, opts ...ResourceOption) (*ObjectRouterAccesslistRule, error)
public static ObjectRouterAccesslistRule Get(string name, Input<string> id, ObjectRouterAccesslistRuleState? state, CustomResourceOptions? opts = null)
public static ObjectRouterAccesslistRule get(String name, Output<String> id, ObjectRouterAccesslistRuleState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectRouterAccesslistRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccessList string
Access List.
Action string
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ExactMatch string
Enable/disable exact match. Valid values: disable, enable.
Flags double
Flags.
Fosid double
Rule ID.
ObjectRouterAccesslistRuleId string
an identifier for the resource with format {{fosid}}.
Prefix string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
Wildcard string
Wildcard to define Cisco-style wildcard filter criteria.
AccessList string
Access List.
Action string
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ExactMatch string
Enable/disable exact match. Valid values: disable, enable.
Flags float64
Flags.
Fosid float64
Rule ID.
ObjectRouterAccesslistRuleId string
an identifier for the resource with format {{fosid}}.
Prefix string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
Wildcard string
Wildcard to define Cisco-style wildcard filter criteria.
accessList String
Access List.
action String
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
exactMatch String
Enable/disable exact match. Valid values: disable, enable.
flags Double
Flags.
fosid Double
Rule ID.
objectRouterAccesslistRuleId String
an identifier for the resource with format {{fosid}}.
prefix String
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
wildcard String
Wildcard to define Cisco-style wildcard filter criteria.
accessList string
Access List.
action string
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
exactMatch string
Enable/disable exact match. Valid values: disable, enable.
flags number
Flags.
fosid number
Rule ID.
objectRouterAccesslistRuleId string
an identifier for the resource with format {{fosid}}.
prefix string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
wildcard string
Wildcard to define Cisco-style wildcard filter criteria.
access_list str
Access List.
action str
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
exact_match str
Enable/disable exact match. Valid values: disable, enable.
flags float
Flags.
fosid float
Rule ID.
object_router_accesslist_rule_id str
an identifier for the resource with format {{fosid}}.
prefix str
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
wildcard str
Wildcard to define Cisco-style wildcard filter criteria.
accessList String
Access List.
action String
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
exactMatch String
Enable/disable exact match. Valid values: disable, enable.
flags Number
Flags.
fosid Number
Rule ID.
objectRouterAccesslistRuleId String
an identifier for the resource with format {{fosid}}.
prefix String
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
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.
wildcard String
Wildcard to define Cisco-style wildcard filter criteria.

Import

ObjectRouter AccessListRule can be imported using any of these accepted formats:

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectRouterAccesslistRule:ObjectRouterAccesslistRule labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.