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

fortios.system.Ipv6neighborcache

Explore with Pulumi AI

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

    Configure IPv6 neighbor cache table.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname = new fortios.system.Ipv6neighborcache("trname", {
        fosid: 1,
        "interface": "port2",
        ipv6: "fe80::b11a:5ae3:198:ba1c",
        mac: "00:00:00:00:00:00",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname = fortios.system.Ipv6neighborcache("trname",
        fosid=1,
        interface="port2",
        ipv6="fe80::b11a:5ae3:198:ba1c",
        mac="00:00:00:00:00:00")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := system.NewIpv6neighborcache(ctx, "trname", &system.Ipv6neighborcacheArgs{
    			Fosid:     pulumi.Int(1),
    			Interface: pulumi.String("port2"),
    			Ipv6:      pulumi.String("fe80::b11a:5ae3:198:ba1c"),
    			Mac:       pulumi.String("00:00:00:00:00:00"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fortios = Pulumiverse.Fortios;
    
    return await Deployment.RunAsync(() => 
    {
        var trname = new Fortios.System.Ipv6neighborcache("trname", new()
        {
            Fosid = 1,
            Interface = "port2",
            Ipv6 = "fe80::b11a:5ae3:198:ba1c",
            Mac = "00:00:00:00:00:00",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.system.Ipv6neighborcache;
    import com.pulumi.fortios.system.Ipv6neighborcacheArgs;
    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 Ipv6neighborcache("trname", Ipv6neighborcacheArgs.builder()        
                .fosid(1)
                .interface_("port2")
                .ipv6("fe80::b11a:5ae3:198:ba1c")
                .mac("00:00:00:00:00:00")
                .build());
    
        }
    }
    
    resources:
      trname:
        type: fortios:system:Ipv6neighborcache
        properties:
          fosid: 1
          interface: port2
          ipv6: fe80::b11a:5ae3:198:ba1c
          mac: 00:00:00:00:00:00
    

    Create Ipv6neighborcache Resource

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

    Constructor syntax

    new Ipv6neighborcache(name: string, args: Ipv6neighborcacheArgs, opts?: CustomResourceOptions);
    @overload
    def Ipv6neighborcache(resource_name: str,
                          args: Ipv6neighborcacheArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ipv6neighborcache(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          fosid: Optional[int] = None,
                          interface: Optional[str] = None,
                          ipv6: Optional[str] = None,
                          mac: Optional[str] = None,
                          vdomparam: Optional[str] = None)
    func NewIpv6neighborcache(ctx *Context, name string, args Ipv6neighborcacheArgs, opts ...ResourceOption) (*Ipv6neighborcache, error)
    public Ipv6neighborcache(string name, Ipv6neighborcacheArgs args, CustomResourceOptions? opts = null)
    public Ipv6neighborcache(String name, Ipv6neighborcacheArgs args)
    public Ipv6neighborcache(String name, Ipv6neighborcacheArgs args, CustomResourceOptions options)
    
    type: fortios:system:Ipv6neighborcache
    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 Ipv6neighborcacheArgs
    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 Ipv6neighborcacheArgs
    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 Ipv6neighborcacheArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Ipv6neighborcacheArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Ipv6neighborcacheArgs
    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 ipv6neighborcacheResource = new Fortios.System.Ipv6neighborcache("ipv6neighborcacheResource", new()
    {
        Fosid = 0,
        Interface = "string",
        Ipv6 = "string",
        Mac = "string",
        Vdomparam = "string",
    });
    
    example, err := system.NewIpv6neighborcache(ctx, "ipv6neighborcacheResource", &system.Ipv6neighborcacheArgs{
    	Fosid:     pulumi.Int(0),
    	Interface: pulumi.String("string"),
    	Ipv6:      pulumi.String("string"),
    	Mac:       pulumi.String("string"),
    	Vdomparam: pulumi.String("string"),
    })
    
    var ipv6neighborcacheResource = new Ipv6neighborcache("ipv6neighborcacheResource", Ipv6neighborcacheArgs.builder()
        .fosid(0)
        .interface_("string")
        .ipv6("string")
        .mac("string")
        .vdomparam("string")
        .build());
    
    ipv6neighborcache_resource = fortios.system.Ipv6neighborcache("ipv6neighborcacheResource",
        fosid=0,
        interface="string",
        ipv6="string",
        mac="string",
        vdomparam="string")
    
    const ipv6neighborcacheResource = new fortios.system.Ipv6neighborcache("ipv6neighborcacheResource", {
        fosid: 0,
        "interface": "string",
        ipv6: "string",
        mac: "string",
        vdomparam: "string",
    });
    
    type: fortios:system:Ipv6neighborcache
    properties:
        fosid: 0
        interface: string
        ipv6: string
        mac: string
        vdomparam: string
    

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

    Fosid int
    Unique integer ID of the entry.
    Interface string
    Select the associated interface name from available options.
    Ipv6 string
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    Mac string
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    Fosid int
    Unique integer ID of the entry.
    Interface string
    Select the associated interface name from available options.
    Ipv6 string
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    Mac string
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    fosid Integer
    Unique integer ID of the entry.
    interface_ String
    Select the associated interface name from available options.
    ipv6 String
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    mac String
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    fosid number
    Unique integer ID of the entry.
    interface string
    Select the associated interface name from available options.
    ipv6 string
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    mac string
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    fosid int
    Unique integer ID of the entry.
    interface str
    Select the associated interface name from available options.
    ipv6 str
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    mac str
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    fosid Number
    Unique integer ID of the entry.
    interface String
    Select the associated interface name from available options.
    ipv6 String
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    mac String
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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 Ipv6neighborcache 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 Ipv6neighborcache Resource

    Get an existing Ipv6neighborcache 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?: Ipv6neighborcacheState, opts?: CustomResourceOptions): Ipv6neighborcache
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            fosid: Optional[int] = None,
            interface: Optional[str] = None,
            ipv6: Optional[str] = None,
            mac: Optional[str] = None,
            vdomparam: Optional[str] = None) -> Ipv6neighborcache
    func GetIpv6neighborcache(ctx *Context, name string, id IDInput, state *Ipv6neighborcacheState, opts ...ResourceOption) (*Ipv6neighborcache, error)
    public static Ipv6neighborcache Get(string name, Input<string> id, Ipv6neighborcacheState? state, CustomResourceOptions? opts = null)
    public static Ipv6neighborcache get(String name, Output<String> id, Ipv6neighborcacheState 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:
    Fosid int
    Unique integer ID of the entry.
    Interface string
    Select the associated interface name from available options.
    Ipv6 string
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    Mac string
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    Fosid int
    Unique integer ID of the entry.
    Interface string
    Select the associated interface name from available options.
    Ipv6 string
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    Mac string
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    fosid Integer
    Unique integer ID of the entry.
    interface_ String
    Select the associated interface name from available options.
    ipv6 String
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    mac String
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    fosid number
    Unique integer ID of the entry.
    interface string
    Select the associated interface name from available options.
    ipv6 string
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    mac string
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    fosid int
    Unique integer ID of the entry.
    interface str
    Select the associated interface name from available options.
    ipv6 str
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    mac str
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.
    fosid Number
    Unique integer ID of the entry.
    interface String
    Select the associated interface name from available options.
    ipv6 String
    IPv6 address (format: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx).
    mac String
    MAC address (format: xx:xx:xx:xx:xx:xx).
    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.

    Import

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

    $ pulumi import fortios:system/ipv6neighborcache:Ipv6neighborcache labelname {{fosid}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:system/ipv6neighborcache:Ipv6neighborcache labelname {{fosid}}
    

    $ 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