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

fortimanager.ObjectRouterAccesslist

Explore with Pulumi AI

Configure access lists.

The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • rule: fortimanager.ObjectRouterAccesslistRule

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname = new fortimanager.ObjectRouterAccesslist("trname", {rules: [{
    action: "permit",
    id: 1,
}]});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.ObjectRouterAccesslist("trname", rules=[{
    "action": "permit",
    "id": 1,
}])
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 {
		_, err := fortimanager.NewObjectRouterAccesslist(ctx, "trname", &fortimanager.ObjectRouterAccesslistArgs{
			Rules: fortimanager.ObjectRouterAccesslistRuleTypeArray{
				&fortimanager.ObjectRouterAccesslistRuleTypeArgs{
					Action: pulumi.String("permit"),
					Id:     pulumi.Float64(1),
				},
			},
		})
		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 trname = new Fortimanager.ObjectRouterAccesslist("trname", new()
    {
        Rules = new[]
        {
            new Fortimanager.Inputs.ObjectRouterAccesslistRuleArgs
            {
                Action = "permit",
                Id = 1,
            },
        },
    });

});
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.ObjectRouterAccesslistArgs;
import com.pulumi.fortimanager.inputs.ObjectRouterAccesslistRuleArgs;
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 trname = new ObjectRouterAccesslist("trname", ObjectRouterAccesslistArgs.builder()
            .rules(ObjectRouterAccesslistRuleArgs.builder()
                .action("permit")
                .id(1)
                .build())
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:ObjectRouterAccesslist
    properties:
      rules:
        - action: permit
          id: 1
Copy

Create ObjectRouterAccesslist Resource

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

Constructor syntax

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

@overload
def ObjectRouterAccesslist(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           adom: Optional[str] = None,
                           comments: Optional[str] = None,
                           dynamic_sort_subtable: Optional[str] = None,
                           name: Optional[str] = None,
                           object_router_accesslist_id: Optional[str] = None,
                           rules: Optional[Sequence[ObjectRouterAccesslistRuleArgs]] = None,
                           scopetype: Optional[str] = None)
func NewObjectRouterAccesslist(ctx *Context, name string, args *ObjectRouterAccesslistArgs, opts ...ResourceOption) (*ObjectRouterAccesslist, error)
public ObjectRouterAccesslist(string name, ObjectRouterAccesslistArgs? args = null, CustomResourceOptions? opts = null)
public ObjectRouterAccesslist(String name, ObjectRouterAccesslistArgs args)
public ObjectRouterAccesslist(String name, ObjectRouterAccesslistArgs args, CustomResourceOptions options)
type: fortimanager:ObjectRouterAccesslist
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 ObjectRouterAccesslistArgs
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 ObjectRouterAccesslistArgs
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 ObjectRouterAccesslistArgs
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 ObjectRouterAccesslistArgs
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. ObjectRouterAccesslistArgs
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 objectRouterAccesslistResource = new Fortimanager.ObjectRouterAccesslist("objectRouterAccesslistResource", new()
{
    Adom = "string",
    Comments = "string",
    DynamicSortSubtable = "string",
    Name = "string",
    ObjectRouterAccesslistId = "string",
    Rules = new[]
    {
        new Fortimanager.Inputs.ObjectRouterAccesslistRuleArgs
        {
            Action = "string",
            ExactMatch = "string",
            Flags = 0,
            Id = 0,
            Prefix = "string",
            Wildcard = "string",
        },
    },
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectRouterAccesslist(ctx, "objectRouterAccesslistResource", &fortimanager.ObjectRouterAccesslistArgs{
Adom: pulumi.String("string"),
Comments: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectRouterAccesslistId: pulumi.String("string"),
Rules: .ObjectRouterAccesslistRuleTypeArray{
&.ObjectRouterAccesslistRuleTypeArgs{
Action: pulumi.String("string"),
ExactMatch: pulumi.String("string"),
Flags: pulumi.Float64(0),
Id: pulumi.Float64(0),
Prefix: pulumi.String("string"),
Wildcard: pulumi.String("string"),
},
},
Scopetype: pulumi.String("string"),
})
Copy
var objectRouterAccesslistResource = new ObjectRouterAccesslist("objectRouterAccesslistResource", ObjectRouterAccesslistArgs.builder()
    .adom("string")
    .comments("string")
    .dynamicSortSubtable("string")
    .name("string")
    .objectRouterAccesslistId("string")
    .rules(ObjectRouterAccesslistRuleArgs.builder()
        .action("string")
        .exactMatch("string")
        .flags(0)
        .id(0)
        .prefix("string")
        .wildcard("string")
        .build())
    .scopetype("string")
    .build());
Copy
object_router_accesslist_resource = fortimanager.ObjectRouterAccesslist("objectRouterAccesslistResource",
    adom="string",
    comments="string",
    dynamic_sort_subtable="string",
    name="string",
    object_router_accesslist_id="string",
    rules=[{
        "action": "string",
        "exact_match": "string",
        "flags": 0,
        "id": 0,
        "prefix": "string",
        "wildcard": "string",
    }],
    scopetype="string")
Copy
const objectRouterAccesslistResource = new fortimanager.ObjectRouterAccesslist("objectRouterAccesslistResource", {
    adom: "string",
    comments: "string",
    dynamicSortSubtable: "string",
    name: "string",
    objectRouterAccesslistId: "string",
    rules: [{
        action: "string",
        exactMatch: "string",
        flags: 0,
        id: 0,
        prefix: "string",
        wildcard: "string",
    }],
    scopetype: "string",
});
Copy
type: fortimanager:ObjectRouterAccesslist
properties:
    adom: string
    comments: string
    dynamicSortSubtable: string
    name: string
    objectRouterAccesslistId: string
    rules:
        - action: string
          exactMatch: string
          flags: 0
          id: 0
          prefix: string
          wildcard: string
    scopetype: string
Copy

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

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comments string
Comment.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Name.
ObjectRouterAccesslistId string
an identifier for the resource with format {{name}}.
Rules List<ObjectRouterAccesslistRule>
Rule. The structure of rule block is documented below.
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.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comments string
Comment.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Name.
ObjectRouterAccesslistId string
an identifier for the resource with format {{name}}.
Rules []ObjectRouterAccesslistRuleTypeArgs
Rule. The structure of rule block is documented below.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments String
Comment.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Name.
objectRouterAccesslistId String
an identifier for the resource with format {{name}}.
rules List<ObjectRouterAccesslistRule>
Rule. The structure of rule block is documented below.
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.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments string
Comment.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name string
Name.
objectRouterAccesslistId string
an identifier for the resource with format {{name}}.
rules ObjectRouterAccesslistRule[]
Rule. The structure of rule block is documented below.
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.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments str
Comment.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name str
Name.
object_router_accesslist_id str
an identifier for the resource with format {{name}}.
rules Sequence[ObjectRouterAccesslistRuleArgs]
Rule. The structure of rule block is documented below.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments String
Comment.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Name.
objectRouterAccesslistId String
an identifier for the resource with format {{name}}.
rules List<Property Map>
Rule. The structure of rule block is documented below.
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.

Outputs

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

Get an existing ObjectRouterAccesslist 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?: ObjectRouterAccesslistState, opts?: CustomResourceOptions): ObjectRouterAccesslist
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        comments: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        name: Optional[str] = None,
        object_router_accesslist_id: Optional[str] = None,
        rules: Optional[Sequence[ObjectRouterAccesslistRuleArgs]] = None,
        scopetype: Optional[str] = None) -> ObjectRouterAccesslist
func GetObjectRouterAccesslist(ctx *Context, name string, id IDInput, state *ObjectRouterAccesslistState, opts ...ResourceOption) (*ObjectRouterAccesslist, error)
public static ObjectRouterAccesslist Get(string name, Input<string> id, ObjectRouterAccesslistState? state, CustomResourceOptions? opts = null)
public static ObjectRouterAccesslist get(String name, Output<String> id, ObjectRouterAccesslistState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectRouterAccesslist    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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comments string
Comment.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Name.
ObjectRouterAccesslistId string
an identifier for the resource with format {{name}}.
Rules List<ObjectRouterAccesslistRule>
Rule. The structure of rule block is documented below.
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.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Comments string
Comment.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Name.
ObjectRouterAccesslistId string
an identifier for the resource with format {{name}}.
Rules []ObjectRouterAccesslistRuleTypeArgs
Rule. The structure of rule block is documented below.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments String
Comment.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Name.
objectRouterAccesslistId String
an identifier for the resource with format {{name}}.
rules List<ObjectRouterAccesslistRule>
Rule. The structure of rule block is documented below.
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.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments string
Comment.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name string
Name.
objectRouterAccesslistId string
an identifier for the resource with format {{name}}.
rules ObjectRouterAccesslistRule[]
Rule. The structure of rule block is documented below.
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.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments str
Comment.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name str
Name.
object_router_accesslist_id str
an identifier for the resource with format {{name}}.
rules Sequence[ObjectRouterAccesslistRuleArgs]
Rule. The structure of rule block is documented below.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
comments String
Comment.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Name.
objectRouterAccesslistId String
an identifier for the resource with format {{name}}.
rules List<Property Map>
Rule. The structure of rule block is documented below.
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.

Supporting Types

ObjectRouterAccesslistRule
, ObjectRouterAccesslistRuleArgs

Action string
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
ExactMatch string
Enable/disable exact match. Valid values: disable, enable.
Flags double
Flags.
Id double
Rule ID.
Prefix string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
Wildcard string
Wildcard to define Cisco-style wildcard filter criteria.
Action string
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
ExactMatch string
Enable/disable exact match. Valid values: disable, enable.
Flags float64
Flags.
Id float64
Rule ID.
Prefix string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
Wildcard string
Wildcard to define Cisco-style wildcard filter criteria.
action String
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
exactMatch String
Enable/disable exact match. Valid values: disable, enable.
flags Double
Flags.
id Double
Rule ID.
prefix String
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
wildcard String
Wildcard to define Cisco-style wildcard filter criteria.
action string
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
exactMatch string
Enable/disable exact match. Valid values: disable, enable.
flags number
Flags.
id number
Rule ID.
prefix string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
wildcard string
Wildcard to define Cisco-style wildcard filter criteria.
action str
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
exact_match str
Enable/disable exact match. Valid values: disable, enable.
flags float
Flags.
id float
Rule ID.
prefix str
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
wildcard str
Wildcard to define Cisco-style wildcard filter criteria.
action String
Permit or deny this IP address and netmask prefix. Valid values: permit, deny.
exactMatch String
Enable/disable exact match. Valid values: disable, enable.
flags Number
Flags.
id Number
Rule ID.
prefix String
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
wildcard String
Wildcard to define Cisco-style wildcard filter criteria.

Import

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectRouterAccesslist:ObjectRouterAccesslist labelname {{name}}
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.