1. Packages
  2. Fortios
  3. API Docs
  4. fmg
  5. SystemNetworkInterface
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.fmg.SystemNetworkInterface

Explore with Pulumi AI

fortios logo
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

    This resource supports updating system network interface for FortiManager.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.SystemNetworkInterface("test1", {
        allowAccesses: [
            "ping",
            "ssh",
            "https",
            "http",
        ],
        description: "",
        ip: "1.1.1.3 255.255.255.0",
        serviceAccesses: [
            "webfilter",
            "fgtupdates",
        ],
        status: "up",
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.SystemNetworkInterface("test1",
        allow_accesses=[
            "ping",
            "ssh",
            "https",
            "http",
        ],
        description="",
        ip="1.1.1.3 255.255.255.0",
        service_accesses=[
            "webfilter",
            "fgtupdates",
        ],
        status="up")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/fmg"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fmg.NewSystemNetworkInterface(ctx, "test1", &fmg.SystemNetworkInterfaceArgs{
    			AllowAccesses: pulumi.StringArray{
    				pulumi.String("ping"),
    				pulumi.String("ssh"),
    				pulumi.String("https"),
    				pulumi.String("http"),
    			},
    			Description: pulumi.String(""),
    			Ip:          pulumi.String("1.1.1.3 255.255.255.0"),
    			ServiceAccesses: pulumi.StringArray{
    				pulumi.String("webfilter"),
    				pulumi.String("fgtupdates"),
    			},
    			Status: pulumi.String("up"),
    		})
    		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 test1 = new Fortios.Fmg.SystemNetworkInterface("test1", new()
        {
            AllowAccesses = new[]
            {
                "ping",
                "ssh",
                "https",
                "http",
            },
            Description = "",
            Ip = "1.1.1.3 255.255.255.0",
            ServiceAccesses = new[]
            {
                "webfilter",
                "fgtupdates",
            },
            Status = "up",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.SystemNetworkInterface;
    import com.pulumi.fortios.fmg.SystemNetworkInterfaceArgs;
    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 test1 = new SystemNetworkInterface("test1", SystemNetworkInterfaceArgs.builder()
                .allowAccesses(            
                    "ping",
                    "ssh",
                    "https",
                    "http")
                .description("")
                .ip("1.1.1.3 255.255.255.0")
                .serviceAccesses(            
                    "webfilter",
                    "fgtupdates")
                .status("up")
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:SystemNetworkInterface
        properties:
          allowAccesses:
            - ping
            - ssh
            - https
            - http
          description:
          ip: 1.1.1.3 255.255.255.0
          serviceAccesses:
            - webfilter
            - fgtupdates
          status: up
    

    Create SystemNetworkInterface Resource

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

    Constructor syntax

    new SystemNetworkInterface(name: string, args?: SystemNetworkInterfaceArgs, opts?: CustomResourceOptions);
    @overload
    def SystemNetworkInterface(resource_name: str,
                               args: Optional[SystemNetworkInterfaceArgs] = None,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemNetworkInterface(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               allow_accesses: Optional[Sequence[str]] = None,
                               description: Optional[str] = None,
                               ip: Optional[str] = None,
                               name: Optional[str] = None,
                               service_accesses: Optional[Sequence[str]] = None,
                               status: Optional[str] = None)
    func NewSystemNetworkInterface(ctx *Context, name string, args *SystemNetworkInterfaceArgs, opts ...ResourceOption) (*SystemNetworkInterface, error)
    public SystemNetworkInterface(string name, SystemNetworkInterfaceArgs? args = null, CustomResourceOptions? opts = null)
    public SystemNetworkInterface(String name, SystemNetworkInterfaceArgs args)
    public SystemNetworkInterface(String name, SystemNetworkInterfaceArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:SystemNetworkInterface
    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 SystemNetworkInterfaceArgs
    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 SystemNetworkInterfaceArgs
    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 SystemNetworkInterfaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemNetworkInterfaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemNetworkInterfaceArgs
    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 systemNetworkInterfaceResource = new Fortios.Fmg.SystemNetworkInterface("systemNetworkInterfaceResource", new()
    {
        AllowAccesses = new[]
        {
            "string",
        },
        Description = "string",
        Ip = "string",
        Name = "string",
        ServiceAccesses = new[]
        {
            "string",
        },
        Status = "string",
    });
    
    example, err := fmg.NewSystemNetworkInterface(ctx, "systemNetworkInterfaceResource", &fmg.SystemNetworkInterfaceArgs{
    	AllowAccesses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Ip:          pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	ServiceAccesses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Status: pulumi.String("string"),
    })
    
    var systemNetworkInterfaceResource = new SystemNetworkInterface("systemNetworkInterfaceResource", SystemNetworkInterfaceArgs.builder()
        .allowAccesses("string")
        .description("string")
        .ip("string")
        .name("string")
        .serviceAccesses("string")
        .status("string")
        .build());
    
    system_network_interface_resource = fortios.fmg.SystemNetworkInterface("systemNetworkInterfaceResource",
        allow_accesses=["string"],
        description="string",
        ip="string",
        name="string",
        service_accesses=["string"],
        status="string")
    
    const systemNetworkInterfaceResource = new fortios.fmg.SystemNetworkInterface("systemNetworkInterfaceResource", {
        allowAccesses: ["string"],
        description: "string",
        ip: "string",
        name: "string",
        serviceAccesses: ["string"],
        status: "string",
    });
    
    type: fortios:fmg:SystemNetworkInterface
    properties:
        allowAccesses:
            - string
        description: string
        ip: string
        name: string
        serviceAccesses:
            - string
        status: string
    

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

    AllowAccesses List<string>
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    Description string
    Description.
    Ip string
    Interface Ipaddress.
    Name string
    Interface port.
    ServiceAccesses List<string>
    Status string
    Interface status, Enum: ["down", "up"]
    AllowAccesses []string
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    Description string
    Description.
    Ip string
    Interface Ipaddress.
    Name string
    Interface port.
    ServiceAccesses []string
    Status string
    Interface status, Enum: ["down", "up"]
    allowAccesses List<String>
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    description String
    Description.
    ip String
    Interface Ipaddress.
    name String
    Interface port.
    serviceAccesses List<String>
    status String
    Interface status, Enum: ["down", "up"]
    allowAccesses string[]
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    description string
    Description.
    ip string
    Interface Ipaddress.
    name string
    Interface port.
    serviceAccesses string[]
    status string
    Interface status, Enum: ["down", "up"]
    allow_accesses Sequence[str]
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    description str
    Description.
    ip str
    Interface Ipaddress.
    name str
    Interface port.
    service_accesses Sequence[str]
    status str
    Interface status, Enum: ["down", "up"]
    allowAccesses List<String>
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    description String
    Description.
    ip String
    Interface Ipaddress.
    name String
    Interface port.
    serviceAccesses List<String>
    status String
    Interface status, Enum: ["down", "up"]

    Outputs

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

    Get an existing SystemNetworkInterface 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?: SystemNetworkInterfaceState, opts?: CustomResourceOptions): SystemNetworkInterface
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_accesses: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            ip: Optional[str] = None,
            name: Optional[str] = None,
            service_accesses: Optional[Sequence[str]] = None,
            status: Optional[str] = None) -> SystemNetworkInterface
    func GetSystemNetworkInterface(ctx *Context, name string, id IDInput, state *SystemNetworkInterfaceState, opts ...ResourceOption) (*SystemNetworkInterface, error)
    public static SystemNetworkInterface Get(string name, Input<string> id, SystemNetworkInterfaceState? state, CustomResourceOptions? opts = null)
    public static SystemNetworkInterface get(String name, Output<String> id, SystemNetworkInterfaceState 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:
    AllowAccesses List<string>
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    Description string
    Description.
    Ip string
    Interface Ipaddress.
    Name string
    Interface port.
    ServiceAccesses List<string>
    Status string
    Interface status, Enum: ["down", "up"]
    AllowAccesses []string
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    Description string
    Description.
    Ip string
    Interface Ipaddress.
    Name string
    Interface port.
    ServiceAccesses []string
    Status string
    Interface status, Enum: ["down", "up"]
    allowAccesses List<String>
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    description String
    Description.
    ip String
    Interface Ipaddress.
    name String
    Interface port.
    serviceAccesses List<String>
    status String
    Interface status, Enum: ["down", "up"]
    allowAccesses string[]
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    description string
    Description.
    ip string
    Interface Ipaddress.
    name string
    Interface port.
    serviceAccesses string[]
    status string
    Interface status, Enum: ["down", "up"]
    allow_accesses Sequence[str]
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    description str
    Description.
    ip str
    Interface Ipaddress.
    name str
    Interface port.
    service_accesses Sequence[str]
    status str
    Interface status, Enum: ["down", "up"]
    allowAccesses List<String>
    Allow managerment access to interface, Enum: ["ping", "https", "ssh", "snmp", "telnet", "http", "web"]
    description String
    Description.
    ip String
    Interface Ipaddress.
    name String
    Interface port.
    serviceAccesses List<String>
    status String
    Interface status, Enum: ["down", "up"]

    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.6 published on Tuesday, Jul 9, 2024 by pulumiverse