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

fortimanager.SystemLocalinpolicy6

Explore with Pulumi AI

IPv6 local in policy configuration.

Example Usage

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

const trname = new fortimanager.SystemLocalinpolicy6("trname", {
    action: "accept",
    dport: 0,
    dst: "ffff:153::/24",
    fosid: 1,
    intf: "port5",
    protocol: "udp",
    src: "ffff:123::/24",
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.SystemLocalinpolicy6("trname",
    action="accept",
    dport=0,
    dst="ffff:153::/24",
    fosid=1,
    intf="port5",
    protocol="udp",
    src="ffff:123::/24")
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.NewSystemLocalinpolicy6(ctx, "trname", &fortimanager.SystemLocalinpolicy6Args{
			Action:   pulumi.String("accept"),
			Dport:    pulumi.Float64(0),
			Dst:      pulumi.String("ffff:153::/24"),
			Fosid:    pulumi.Float64(1),
			Intf:     pulumi.String("port5"),
			Protocol: pulumi.String("udp"),
			Src:      pulumi.String("ffff:123::/24"),
		})
		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.SystemLocalinpolicy6("trname", new()
    {
        Action = "accept",
        Dport = 0,
        Dst = "ffff:153::/24",
        Fosid = 1,
        Intf = "port5",
        Protocol = "udp",
        Src = "ffff:123::/24",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.SystemLocalinpolicy6;
import com.pulumi.fortimanager.SystemLocalinpolicy6Args;
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 SystemLocalinpolicy6("trname", SystemLocalinpolicy6Args.builder()
            .action("accept")
            .dport(0)
            .dst("ffff:153::/24")
            .fosid(1)
            .intf("port5")
            .protocol("udp")
            .src("ffff:123::/24")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:SystemLocalinpolicy6
    properties:
      action: accept
      dport: 0
      dst: ffff:153::/24
      fosid: 1
      intf: port5
      protocol: udp
      src: ffff:123::/24
Copy

Create SystemLocalinpolicy6 Resource

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

Constructor syntax

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

@overload
def SystemLocalinpolicy6(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         action: Optional[str] = None,
                         dport: Optional[float] = None,
                         dst: Optional[str] = None,
                         fosid: Optional[float] = None,
                         intf: Optional[str] = None,
                         protocol: Optional[str] = None,
                         src: Optional[str] = None,
                         system_localinpolicy6_id: Optional[str] = None)
func NewSystemLocalinpolicy6(ctx *Context, name string, args *SystemLocalinpolicy6Args, opts ...ResourceOption) (*SystemLocalinpolicy6, error)
public SystemLocalinpolicy6(string name, SystemLocalinpolicy6Args? args = null, CustomResourceOptions? opts = null)
public SystemLocalinpolicy6(String name, SystemLocalinpolicy6Args args)
public SystemLocalinpolicy6(String name, SystemLocalinpolicy6Args args, CustomResourceOptions options)
type: fortimanager:SystemLocalinpolicy6
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 SystemLocalinpolicy6Args
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 SystemLocalinpolicy6Args
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 SystemLocalinpolicy6Args
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 SystemLocalinpolicy6Args
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. SystemLocalinpolicy6Args
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 systemLocalinpolicy6Resource = new Fortimanager.SystemLocalinpolicy6("systemLocalinpolicy6Resource", new()
{
    Action = "string",
    Dport = 0,
    Dst = "string",
    Fosid = 0,
    Intf = "string",
    Protocol = "string",
    Src = "string",
    SystemLocalinpolicy6Id = "string",
});
Copy
example, err := fortimanager.NewSystemLocalinpolicy6(ctx, "systemLocalinpolicy6Resource", &fortimanager.SystemLocalinpolicy6Args{
Action: pulumi.String("string"),
Dport: pulumi.Float64(0),
Dst: pulumi.String("string"),
Fosid: pulumi.Float64(0),
Intf: pulumi.String("string"),
Protocol: pulumi.String("string"),
Src: pulumi.String("string"),
SystemLocalinpolicy6Id: pulumi.String("string"),
})
Copy
var systemLocalinpolicy6Resource = new SystemLocalinpolicy6("systemLocalinpolicy6Resource", SystemLocalinpolicy6Args.builder()
    .action("string")
    .dport(0)
    .dst("string")
    .fosid(0)
    .intf("string")
    .protocol("string")
    .src("string")
    .systemLocalinpolicy6Id("string")
    .build());
Copy
system_localinpolicy6_resource = fortimanager.SystemLocalinpolicy6("systemLocalinpolicy6Resource",
    action="string",
    dport=0,
    dst="string",
    fosid=0,
    intf="string",
    protocol="string",
    src="string",
    system_localinpolicy6_id="string")
Copy
const systemLocalinpolicy6Resource = new fortimanager.SystemLocalinpolicy6("systemLocalinpolicy6Resource", {
    action: "string",
    dport: 0,
    dst: "string",
    fosid: 0,
    intf: "string",
    protocol: "string",
    src: "string",
    systemLocalinpolicy6Id: "string",
});
Copy
type: fortimanager:SystemLocalinpolicy6
properties:
    action: string
    dport: 0
    dst: string
    fosid: 0
    intf: string
    protocol: string
    src: string
    systemLocalinpolicy6Id: string
Copy

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

Action string
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
Dport double
Destination port number (0 for all).
Dst string
Destination IP and prefix.
Fosid double
Entry number.
Intf string
Incoming interface name.
Protocol string
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
Src string
Source IP and prefix.
SystemLocalinpolicy6Id string
an identifier for the resource with format {{fosid}}.
Action string
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
Dport float64
Destination port number (0 for all).
Dst string
Destination IP and prefix.
Fosid float64
Entry number.
Intf string
Incoming interface name.
Protocol string
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
Src string
Source IP and prefix.
SystemLocalinpolicy6Id string
an identifier for the resource with format {{fosid}}.
action String
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
dport Double
Destination port number (0 for all).
dst String
Destination IP and prefix.
fosid Double
Entry number.
intf String
Incoming interface name.
protocol String
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
src String
Source IP and prefix.
systemLocalinpolicy6Id String
an identifier for the resource with format {{fosid}}.
action string
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
dport number
Destination port number (0 for all).
dst string
Destination IP and prefix.
fosid number
Entry number.
intf string
Incoming interface name.
protocol string
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
src string
Source IP and prefix.
systemLocalinpolicy6Id string
an identifier for the resource with format {{fosid}}.
action str
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
dport float
Destination port number (0 for all).
dst str
Destination IP and prefix.
fosid float
Entry number.
intf str
Incoming interface name.
protocol str
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
src str
Source IP and prefix.
system_localinpolicy6_id str
an identifier for the resource with format {{fosid}}.
action String
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
dport Number
Destination port number (0 for all).
dst String
Destination IP and prefix.
fosid Number
Entry number.
intf String
Incoming interface name.
protocol String
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
src String
Source IP and prefix.
systemLocalinpolicy6Id String
an identifier for the resource with format {{fosid}}.

Outputs

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

Get an existing SystemLocalinpolicy6 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?: SystemLocalinpolicy6State, opts?: CustomResourceOptions): SystemLocalinpolicy6
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        dport: Optional[float] = None,
        dst: Optional[str] = None,
        fosid: Optional[float] = None,
        intf: Optional[str] = None,
        protocol: Optional[str] = None,
        src: Optional[str] = None,
        system_localinpolicy6_id: Optional[str] = None) -> SystemLocalinpolicy6
func GetSystemLocalinpolicy6(ctx *Context, name string, id IDInput, state *SystemLocalinpolicy6State, opts ...ResourceOption) (*SystemLocalinpolicy6, error)
public static SystemLocalinpolicy6 Get(string name, Input<string> id, SystemLocalinpolicy6State? state, CustomResourceOptions? opts = null)
public static SystemLocalinpolicy6 get(String name, Output<String> id, SystemLocalinpolicy6State state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemLocalinpolicy6    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:
Action string
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
Dport double
Destination port number (0 for all).
Dst string
Destination IP and prefix.
Fosid double
Entry number.
Intf string
Incoming interface name.
Protocol string
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
Src string
Source IP and prefix.
SystemLocalinpolicy6Id string
an identifier for the resource with format {{fosid}}.
Action string
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
Dport float64
Destination port number (0 for all).
Dst string
Destination IP and prefix.
Fosid float64
Entry number.
Intf string
Incoming interface name.
Protocol string
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
Src string
Source IP and prefix.
SystemLocalinpolicy6Id string
an identifier for the resource with format {{fosid}}.
action String
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
dport Double
Destination port number (0 for all).
dst String
Destination IP and prefix.
fosid Double
Entry number.
intf String
Incoming interface name.
protocol String
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
src String
Source IP and prefix.
systemLocalinpolicy6Id String
an identifier for the resource with format {{fosid}}.
action string
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
dport number
Destination port number (0 for all).
dst string
Destination IP and prefix.
fosid number
Entry number.
intf string
Incoming interface name.
protocol string
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
src string
Source IP and prefix.
systemLocalinpolicy6Id string
an identifier for the resource with format {{fosid}}.
action str
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
dport float
Destination port number (0 for all).
dst str
Destination IP and prefix.
fosid float
Entry number.
intf str
Incoming interface name.
protocol str
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
src str
Source IP and prefix.
system_localinpolicy6_id str
an identifier for the resource with format {{fosid}}.
action String
Action performed on traffic matching this policy. drop - Drop traffic matching this policy (default). reject - Reject traffic matching this policy. accept - Allow traffic matching this policy. Valid values: drop, reject, accept.
dport Number
Destination port number (0 for all).
dst String
Destination IP and prefix.
fosid Number
Entry number.
intf String
Incoming interface name.
protocol String
Traffic protocol. tcp - TCP only. udp - UDP only. tcp_udp - Both TCP and UDP. Valid values: tcp, udp, tcp_udp.
src String
Source IP and prefix.
systemLocalinpolicy6Id String
an identifier for the resource with format {{fosid}}.

Import

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemLocalinpolicy6:SystemLocalinpolicy6 labelname {{fosid}}
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.