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

fortimanager.SystemRoute6

Explore with Pulumi AI

Routing table configuration.

Example Usage

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

const trname = new fortimanager.SystemRoute6("trname", {
    device: "port1",
    dsts: ["2001::/96"],
    gateway: "2001::2",
    prio: 23,
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.SystemRoute6("trname",
    device="port1",
    dsts=["2001::/96"],
    gateway="2001::2",
    prio=23)
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.NewSystemRoute6(ctx, "trname", &fortimanager.SystemRoute6Args{
			Device: pulumi.String("port1"),
			Dsts: pulumi.StringArray{
				pulumi.String("2001::/96"),
			},
			Gateway: pulumi.String("2001::2"),
			Prio:    pulumi.Float64(23),
		})
		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.SystemRoute6("trname", new()
    {
        Device = "port1",
        Dsts = new[]
        {
            "2001::/96",
        },
        Gateway = "2001::2",
        Prio = 23,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.SystemRoute6;
import com.pulumi.fortimanager.SystemRoute6Args;
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 SystemRoute6("trname", SystemRoute6Args.builder()
            .device("port1")
            .dsts("2001::/96")
            .gateway("2001::2")
            .prio(23)
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:SystemRoute6
    properties:
      device: port1
      dsts:
        - 2001::/96
      gateway: 2001::2
      prio: 23
Copy

Create SystemRoute6 Resource

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

Constructor syntax

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

@overload
def SystemRoute6(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 device: Optional[str] = None,
                 dsts: Optional[Sequence[str]] = None,
                 gateway: Optional[str] = None,
                 prio: Optional[float] = None,
                 system_route6_id: Optional[str] = None)
func NewSystemRoute6(ctx *Context, name string, args *SystemRoute6Args, opts ...ResourceOption) (*SystemRoute6, error)
public SystemRoute6(string name, SystemRoute6Args? args = null, CustomResourceOptions? opts = null)
public SystemRoute6(String name, SystemRoute6Args args)
public SystemRoute6(String name, SystemRoute6Args args, CustomResourceOptions options)
type: fortimanager:SystemRoute6
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 SystemRoute6Args
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 SystemRoute6Args
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 SystemRoute6Args
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 SystemRoute6Args
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. SystemRoute6Args
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 systemRoute6Resource = new Fortimanager.SystemRoute6("systemRoute6Resource", new()
{
    Device = "string",
    Dsts = new[]
    {
        "string",
    },
    Gateway = "string",
    Prio = 0,
    SystemRoute6Id = "string",
});
Copy
example, err := fortimanager.NewSystemRoute6(ctx, "systemRoute6Resource", &fortimanager.SystemRoute6Args{
Device: pulumi.String("string"),
Dsts: pulumi.StringArray{
pulumi.String("string"),
},
Gateway: pulumi.String("string"),
Prio: pulumi.Float64(0),
SystemRoute6Id: pulumi.String("string"),
})
Copy
var systemRoute6Resource = new SystemRoute6("systemRoute6Resource", SystemRoute6Args.builder()
    .device("string")
    .dsts("string")
    .gateway("string")
    .prio(0)
    .systemRoute6Id("string")
    .build());
Copy
system_route6_resource = fortimanager.SystemRoute6("systemRoute6Resource",
    device="string",
    dsts=["string"],
    gateway="string",
    prio=0,
    system_route6_id="string")
Copy
const systemRoute6Resource = new fortimanager.SystemRoute6("systemRoute6Resource", {
    device: "string",
    dsts: ["string"],
    gateway: "string",
    prio: 0,
    systemRoute6Id: "string",
});
Copy
type: fortimanager:SystemRoute6
properties:
    device: string
    dsts:
        - string
    gateway: string
    prio: 0
    systemRoute6Id: string
Copy

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

Device string
Gateway out interface.
Dsts List<string>
Destination IP and mask for this route.
Gateway string
Gateway IP for this route.
Prio double
Entry number.
SystemRoute6Id string
an identifier for the resource with format {{prio}}.
Device string
Gateway out interface.
Dsts []string
Destination IP and mask for this route.
Gateway string
Gateway IP for this route.
Prio float64
Entry number.
SystemRoute6Id string
an identifier for the resource with format {{prio}}.
device String
Gateway out interface.
dsts List<String>
Destination IP and mask for this route.
gateway String
Gateway IP for this route.
prio Double
Entry number.
systemRoute6Id String
an identifier for the resource with format {{prio}}.
device string
Gateway out interface.
dsts string[]
Destination IP and mask for this route.
gateway string
Gateway IP for this route.
prio number
Entry number.
systemRoute6Id string
an identifier for the resource with format {{prio}}.
device str
Gateway out interface.
dsts Sequence[str]
Destination IP and mask for this route.
gateway str
Gateway IP for this route.
prio float
Entry number.
system_route6_id str
an identifier for the resource with format {{prio}}.
device String
Gateway out interface.
dsts List<String>
Destination IP and mask for this route.
gateway String
Gateway IP for this route.
prio Number
Entry number.
systemRoute6Id String
an identifier for the resource with format {{prio}}.

Outputs

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

Get an existing SystemRoute6 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?: SystemRoute6State, opts?: CustomResourceOptions): SystemRoute6
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        device: Optional[str] = None,
        dsts: Optional[Sequence[str]] = None,
        gateway: Optional[str] = None,
        prio: Optional[float] = None,
        system_route6_id: Optional[str] = None) -> SystemRoute6
func GetSystemRoute6(ctx *Context, name string, id IDInput, state *SystemRoute6State, opts ...ResourceOption) (*SystemRoute6, error)
public static SystemRoute6 Get(string name, Input<string> id, SystemRoute6State? state, CustomResourceOptions? opts = null)
public static SystemRoute6 get(String name, Output<String> id, SystemRoute6State state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemRoute6    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:
Device string
Gateway out interface.
Dsts List<string>
Destination IP and mask for this route.
Gateway string
Gateway IP for this route.
Prio double
Entry number.
SystemRoute6Id string
an identifier for the resource with format {{prio}}.
Device string
Gateway out interface.
Dsts []string
Destination IP and mask for this route.
Gateway string
Gateway IP for this route.
Prio float64
Entry number.
SystemRoute6Id string
an identifier for the resource with format {{prio}}.
device String
Gateway out interface.
dsts List<String>
Destination IP and mask for this route.
gateway String
Gateway IP for this route.
prio Double
Entry number.
systemRoute6Id String
an identifier for the resource with format {{prio}}.
device string
Gateway out interface.
dsts string[]
Destination IP and mask for this route.
gateway string
Gateway IP for this route.
prio number
Entry number.
systemRoute6Id string
an identifier for the resource with format {{prio}}.
device str
Gateway out interface.
dsts Sequence[str]
Destination IP and mask for this route.
gateway str
Gateway IP for this route.
prio float
Entry number.
system_route6_id str
an identifier for the resource with format {{prio}}.
device String
Gateway out interface.
dsts List<String>
Destination IP and mask for this route.
gateway String
Gateway IP for this route.
prio Number
Entry number.
systemRoute6Id String
an identifier for the resource with format {{prio}}.

Import

System Route6 can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemRoute6:SystemRoute6 labelname {{prio}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

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.