1. Packages
  2. Meraki Provider
  3. API Docs
  4. devices
  5. SwitchRoutingInterfaces
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.devices.SwitchRoutingInterfaces

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.devices.SwitchRoutingInterfaces;
    import com.pulumi.meraki.devices.SwitchRoutingInterfacesArgs;
    import com.pulumi.meraki.devices.inputs.SwitchRoutingInterfacesIpv6Args;
    import com.pulumi.meraki.devices.inputs.SwitchRoutingInterfacesOspfSettingsArgs;
    import com.pulumi.meraki.devices.inputs.SwitchRoutingInterfacesOspfV3Args;
    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 example = new SwitchRoutingInterfaces("example", SwitchRoutingInterfacesArgs.builder()
                .defaultGateway("192.168.1.1")
                .interfaceIp("192.168.1.2")
                .ipv6(SwitchRoutingInterfacesIpv6Args.builder()
                    .address("1:2:3:4::1")
                    .assignment_mode("static")
                    .gateway("1:2:3:4::2")
                    .prefix("1:2:3:4::/48")
                    .build())
                .multicastRouting("disabled")
                .name("L3 interface")
                .ospfSettings(SwitchRoutingInterfacesOspfSettingsArgs.builder()
                    .area("0")
                    .cost(1)
                    .is_passive_enabled(true)
                    .build())
                .ospfV3(SwitchRoutingInterfacesOspfV3Args.builder()
                    .area("1")
                    .cost(2)
                    .is_passive_enabled(true)
                    .build())
                .serial("string")
                .subnet("192.168.1.0/24")
                .vlanId(100)
                .build());
    
            ctx.export("merakiDevicesSwitchRoutingInterfacesExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:devices:SwitchRoutingInterfaces
        properties:
          defaultGateway: 192.168.1.1
          interfaceIp: 192.168.1.2
          ipv6:
            address: 1:2:3:4::1
            assignment_mode: static
            gateway: 1:2:3:4::2
            prefix: 1:2:3:4::/48
          multicastRouting: disabled
          name: L3 interface
          ospfSettings:
            area: '0'
            cost: 1
            is_passive_enabled: true
          ospfV3:
            area: '1'
            cost: 2
            is_passive_enabled: true
          serial: string
          subnet: 192.168.1.0/24
          vlanId: 100
    outputs:
      merakiDevicesSwitchRoutingInterfacesExample: ${example}
    

    Create SwitchRoutingInterfaces Resource

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

    Constructor syntax

    new SwitchRoutingInterfaces(name: string, args: SwitchRoutingInterfacesArgs, opts?: CustomResourceOptions);
    @overload
    def SwitchRoutingInterfaces(resource_name: str,
                                args: SwitchRoutingInterfacesArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def SwitchRoutingInterfaces(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                serial: Optional[str] = None,
                                default_gateway: Optional[str] = None,
                                interface_id: Optional[str] = None,
                                interface_ip: Optional[str] = None,
                                ipv6: Optional[SwitchRoutingInterfacesIpv6Args] = None,
                                multicast_routing: Optional[str] = None,
                                name: Optional[str] = None,
                                ospf_settings: Optional[SwitchRoutingInterfacesOspfSettingsArgs] = None,
                                ospf_v3: Optional[SwitchRoutingInterfacesOspfV3Args] = None,
                                subnet: Optional[str] = None,
                                vlan_id: Optional[int] = None)
    func NewSwitchRoutingInterfaces(ctx *Context, name string, args SwitchRoutingInterfacesArgs, opts ...ResourceOption) (*SwitchRoutingInterfaces, error)
    public SwitchRoutingInterfaces(string name, SwitchRoutingInterfacesArgs args, CustomResourceOptions? opts = null)
    public SwitchRoutingInterfaces(String name, SwitchRoutingInterfacesArgs args)
    public SwitchRoutingInterfaces(String name, SwitchRoutingInterfacesArgs args, CustomResourceOptions options)
    
    type: meraki:devices:SwitchRoutingInterfaces
    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 SwitchRoutingInterfacesArgs
    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 SwitchRoutingInterfacesArgs
    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 SwitchRoutingInterfacesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SwitchRoutingInterfacesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SwitchRoutingInterfacesArgs
    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 switchRoutingInterfacesResource = new Meraki.Devices.SwitchRoutingInterfaces("switchRoutingInterfacesResource", new()
    {
        Serial = "string",
        DefaultGateway = "string",
        InterfaceId = "string",
        InterfaceIp = "string",
        Ipv6 = new Meraki.Devices.Inputs.SwitchRoutingInterfacesIpv6Args
        {
            Address = "string",
            AssignmentMode = "string",
            Gateway = "string",
            Prefix = "string",
        },
        MulticastRouting = "string",
        Name = "string",
        OspfSettings = new Meraki.Devices.Inputs.SwitchRoutingInterfacesOspfSettingsArgs
        {
            Area = "string",
            Cost = 0,
            IsPassiveEnabled = false,
        },
        OspfV3 = new Meraki.Devices.Inputs.SwitchRoutingInterfacesOspfV3Args
        {
            Area = "string",
            Cost = 0,
            IsPassiveEnabled = false,
        },
        Subnet = "string",
        VlanId = 0,
    });
    
    example, err := devices.NewSwitchRoutingInterfaces(ctx, "switchRoutingInterfacesResource", &devices.SwitchRoutingInterfacesArgs{
    	Serial:         pulumi.String("string"),
    	DefaultGateway: pulumi.String("string"),
    	InterfaceId:    pulumi.String("string"),
    	InterfaceIp:    pulumi.String("string"),
    	Ipv6: &devices.SwitchRoutingInterfacesIpv6Args{
    		Address:        pulumi.String("string"),
    		AssignmentMode: pulumi.String("string"),
    		Gateway:        pulumi.String("string"),
    		Prefix:         pulumi.String("string"),
    	},
    	MulticastRouting: pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	OspfSettings: &devices.SwitchRoutingInterfacesOspfSettingsArgs{
    		Area:             pulumi.String("string"),
    		Cost:             pulumi.Int(0),
    		IsPassiveEnabled: pulumi.Bool(false),
    	},
    	OspfV3: &devices.SwitchRoutingInterfacesOspfV3Args{
    		Area:             pulumi.String("string"),
    		Cost:             pulumi.Int(0),
    		IsPassiveEnabled: pulumi.Bool(false),
    	},
    	Subnet: pulumi.String("string"),
    	VlanId: pulumi.Int(0),
    })
    
    var switchRoutingInterfacesResource = new SwitchRoutingInterfaces("switchRoutingInterfacesResource", SwitchRoutingInterfacesArgs.builder()
        .serial("string")
        .defaultGateway("string")
        .interfaceId("string")
        .interfaceIp("string")
        .ipv6(SwitchRoutingInterfacesIpv6Args.builder()
            .address("string")
            .assignmentMode("string")
            .gateway("string")
            .prefix("string")
            .build())
        .multicastRouting("string")
        .name("string")
        .ospfSettings(SwitchRoutingInterfacesOspfSettingsArgs.builder()
            .area("string")
            .cost(0)
            .isPassiveEnabled(false)
            .build())
        .ospfV3(SwitchRoutingInterfacesOspfV3Args.builder()
            .area("string")
            .cost(0)
            .isPassiveEnabled(false)
            .build())
        .subnet("string")
        .vlanId(0)
        .build());
    
    switch_routing_interfaces_resource = meraki.devices.SwitchRoutingInterfaces("switchRoutingInterfacesResource",
        serial="string",
        default_gateway="string",
        interface_id="string",
        interface_ip="string",
        ipv6={
            "address": "string",
            "assignment_mode": "string",
            "gateway": "string",
            "prefix": "string",
        },
        multicast_routing="string",
        name="string",
        ospf_settings={
            "area": "string",
            "cost": 0,
            "is_passive_enabled": False,
        },
        ospf_v3={
            "area": "string",
            "cost": 0,
            "is_passive_enabled": False,
        },
        subnet="string",
        vlan_id=0)
    
    const switchRoutingInterfacesResource = new meraki.devices.SwitchRoutingInterfaces("switchRoutingInterfacesResource", {
        serial: "string",
        defaultGateway: "string",
        interfaceId: "string",
        interfaceIp: "string",
        ipv6: {
            address: "string",
            assignmentMode: "string",
            gateway: "string",
            prefix: "string",
        },
        multicastRouting: "string",
        name: "string",
        ospfSettings: {
            area: "string",
            cost: 0,
            isPassiveEnabled: false,
        },
        ospfV3: {
            area: "string",
            cost: 0,
            isPassiveEnabled: false,
        },
        subnet: "string",
        vlanId: 0,
    });
    
    type: meraki:devices:SwitchRoutingInterfaces
    properties:
        defaultGateway: string
        interfaceId: string
        interfaceIp: string
        ipv6:
            address: string
            assignmentMode: string
            gateway: string
            prefix: string
        multicastRouting: string
        name: string
        ospfSettings:
            area: string
            cost: 0
            isPassiveEnabled: false
        ospfV3:
            area: string
            cost: 0
            isPassiveEnabled: false
        serial: string
        subnet: string
        vlanId: 0
    

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

    Serial string
    serial path parameter.
    DefaultGateway string
    IPv4 default gateway
    InterfaceId string
    The id
    InterfaceIp string
    IPv4 address
    Ipv6 SwitchRoutingInterfacesIpv6
    IPv6 addressing
    MulticastRouting string
    Multicast routing status
    Name string
    The name
    OspfSettings SwitchRoutingInterfacesOspfSettings
    IPv4 OSPF Settings
    OspfV3 SwitchRoutingInterfacesOspfV3
    IPv6 OSPF Settings
    Subnet string
    IPv4 subnet
    VlanId int
    VLAN id
    Serial string
    serial path parameter.
    DefaultGateway string
    IPv4 default gateway
    InterfaceId string
    The id
    InterfaceIp string
    IPv4 address
    Ipv6 SwitchRoutingInterfacesIpv6Args
    IPv6 addressing
    MulticastRouting string
    Multicast routing status
    Name string
    The name
    OspfSettings SwitchRoutingInterfacesOspfSettingsArgs
    IPv4 OSPF Settings
    OspfV3 SwitchRoutingInterfacesOspfV3Args
    IPv6 OSPF Settings
    Subnet string
    IPv4 subnet
    VlanId int
    VLAN id
    serial String
    serial path parameter.
    defaultGateway String
    IPv4 default gateway
    interfaceId String
    The id
    interfaceIp String
    IPv4 address
    ipv6 SwitchRoutingInterfacesIpv6
    IPv6 addressing
    multicastRouting String
    Multicast routing status
    name String
    The name
    ospfSettings SwitchRoutingInterfacesOspfSettings
    IPv4 OSPF Settings
    ospfV3 SwitchRoutingInterfacesOspfV3
    IPv6 OSPF Settings
    subnet String
    IPv4 subnet
    vlanId Integer
    VLAN id
    serial string
    serial path parameter.
    defaultGateway string
    IPv4 default gateway
    interfaceId string
    The id
    interfaceIp string
    IPv4 address
    ipv6 SwitchRoutingInterfacesIpv6
    IPv6 addressing
    multicastRouting string
    Multicast routing status
    name string
    The name
    ospfSettings SwitchRoutingInterfacesOspfSettings
    IPv4 OSPF Settings
    ospfV3 SwitchRoutingInterfacesOspfV3
    IPv6 OSPF Settings
    subnet string
    IPv4 subnet
    vlanId number
    VLAN id
    serial str
    serial path parameter.
    default_gateway str
    IPv4 default gateway
    interface_id str
    The id
    interface_ip str
    IPv4 address
    ipv6 SwitchRoutingInterfacesIpv6Args
    IPv6 addressing
    multicast_routing str
    Multicast routing status
    name str
    The name
    ospf_settings SwitchRoutingInterfacesOspfSettingsArgs
    IPv4 OSPF Settings
    ospf_v3 SwitchRoutingInterfacesOspfV3Args
    IPv6 OSPF Settings
    subnet str
    IPv4 subnet
    vlan_id int
    VLAN id
    serial String
    serial path parameter.
    defaultGateway String
    IPv4 default gateway
    interfaceId String
    The id
    interfaceIp String
    IPv4 address
    ipv6 Property Map
    IPv6 addressing
    multicastRouting String
    Multicast routing status
    name String
    The name
    ospfSettings Property Map
    IPv4 OSPF Settings
    ospfV3 Property Map
    IPv6 OSPF Settings
    subnet String
    IPv4 subnet
    vlanId Number
    VLAN id

    Outputs

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

    Get an existing SwitchRoutingInterfaces 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?: SwitchRoutingInterfacesState, opts?: CustomResourceOptions): SwitchRoutingInterfaces
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default_gateway: Optional[str] = None,
            interface_id: Optional[str] = None,
            interface_ip: Optional[str] = None,
            ipv6: Optional[SwitchRoutingInterfacesIpv6Args] = None,
            multicast_routing: Optional[str] = None,
            name: Optional[str] = None,
            ospf_settings: Optional[SwitchRoutingInterfacesOspfSettingsArgs] = None,
            ospf_v3: Optional[SwitchRoutingInterfacesOspfV3Args] = None,
            serial: Optional[str] = None,
            subnet: Optional[str] = None,
            vlan_id: Optional[int] = None) -> SwitchRoutingInterfaces
    func GetSwitchRoutingInterfaces(ctx *Context, name string, id IDInput, state *SwitchRoutingInterfacesState, opts ...ResourceOption) (*SwitchRoutingInterfaces, error)
    public static SwitchRoutingInterfaces Get(string name, Input<string> id, SwitchRoutingInterfacesState? state, CustomResourceOptions? opts = null)
    public static SwitchRoutingInterfaces get(String name, Output<String> id, SwitchRoutingInterfacesState 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:
    DefaultGateway string
    IPv4 default gateway
    InterfaceId string
    The id
    InterfaceIp string
    IPv4 address
    Ipv6 SwitchRoutingInterfacesIpv6
    IPv6 addressing
    MulticastRouting string
    Multicast routing status
    Name string
    The name
    OspfSettings SwitchRoutingInterfacesOspfSettings
    IPv4 OSPF Settings
    OspfV3 SwitchRoutingInterfacesOspfV3
    IPv6 OSPF Settings
    Serial string
    serial path parameter.
    Subnet string
    IPv4 subnet
    VlanId int
    VLAN id
    DefaultGateway string
    IPv4 default gateway
    InterfaceId string
    The id
    InterfaceIp string
    IPv4 address
    Ipv6 SwitchRoutingInterfacesIpv6Args
    IPv6 addressing
    MulticastRouting string
    Multicast routing status
    Name string
    The name
    OspfSettings SwitchRoutingInterfacesOspfSettingsArgs
    IPv4 OSPF Settings
    OspfV3 SwitchRoutingInterfacesOspfV3Args
    IPv6 OSPF Settings
    Serial string
    serial path parameter.
    Subnet string
    IPv4 subnet
    VlanId int
    VLAN id
    defaultGateway String
    IPv4 default gateway
    interfaceId String
    The id
    interfaceIp String
    IPv4 address
    ipv6 SwitchRoutingInterfacesIpv6
    IPv6 addressing
    multicastRouting String
    Multicast routing status
    name String
    The name
    ospfSettings SwitchRoutingInterfacesOspfSettings
    IPv4 OSPF Settings
    ospfV3 SwitchRoutingInterfacesOspfV3
    IPv6 OSPF Settings
    serial String
    serial path parameter.
    subnet String
    IPv4 subnet
    vlanId Integer
    VLAN id
    defaultGateway string
    IPv4 default gateway
    interfaceId string
    The id
    interfaceIp string
    IPv4 address
    ipv6 SwitchRoutingInterfacesIpv6
    IPv6 addressing
    multicastRouting string
    Multicast routing status
    name string
    The name
    ospfSettings SwitchRoutingInterfacesOspfSettings
    IPv4 OSPF Settings
    ospfV3 SwitchRoutingInterfacesOspfV3
    IPv6 OSPF Settings
    serial string
    serial path parameter.
    subnet string
    IPv4 subnet
    vlanId number
    VLAN id
    default_gateway str
    IPv4 default gateway
    interface_id str
    The id
    interface_ip str
    IPv4 address
    ipv6 SwitchRoutingInterfacesIpv6Args
    IPv6 addressing
    multicast_routing str
    Multicast routing status
    name str
    The name
    ospf_settings SwitchRoutingInterfacesOspfSettingsArgs
    IPv4 OSPF Settings
    ospf_v3 SwitchRoutingInterfacesOspfV3Args
    IPv6 OSPF Settings
    serial str
    serial path parameter.
    subnet str
    IPv4 subnet
    vlan_id int
    VLAN id
    defaultGateway String
    IPv4 default gateway
    interfaceId String
    The id
    interfaceIp String
    IPv4 address
    ipv6 Property Map
    IPv6 addressing
    multicastRouting String
    Multicast routing status
    name String
    The name
    ospfSettings Property Map
    IPv4 OSPF Settings
    ospfV3 Property Map
    IPv6 OSPF Settings
    serial String
    serial path parameter.
    subnet String
    IPv4 subnet
    vlanId Number
    VLAN id

    Supporting Types

    SwitchRoutingInterfacesIpv6, SwitchRoutingInterfacesIpv6Args

    Address string
    IPv6 address
    AssignmentMode string
    Assignment mode
    Gateway string
    IPv6 gateway
    Prefix string
    IPv6 subnet
    Address string
    IPv6 address
    AssignmentMode string
    Assignment mode
    Gateway string
    IPv6 gateway
    Prefix string
    IPv6 subnet
    address String
    IPv6 address
    assignmentMode String
    Assignment mode
    gateway String
    IPv6 gateway
    prefix String
    IPv6 subnet
    address string
    IPv6 address
    assignmentMode string
    Assignment mode
    gateway string
    IPv6 gateway
    prefix string
    IPv6 subnet
    address str
    IPv6 address
    assignment_mode str
    Assignment mode
    gateway str
    IPv6 gateway
    prefix str
    IPv6 subnet
    address String
    IPv6 address
    assignmentMode String
    Assignment mode
    gateway String
    IPv6 gateway
    prefix String
    IPv6 subnet

    SwitchRoutingInterfacesOspfSettings, SwitchRoutingInterfacesOspfSettingsArgs

    Area string
    Area id
    Cost int
    OSPF Cost
    IsPassiveEnabled bool
    Disable sending Hello packets on this interface's IPv4 area
    Area string
    Area id
    Cost int
    OSPF Cost
    IsPassiveEnabled bool
    Disable sending Hello packets on this interface's IPv4 area
    area String
    Area id
    cost Integer
    OSPF Cost
    isPassiveEnabled Boolean
    Disable sending Hello packets on this interface's IPv4 area
    area string
    Area id
    cost number
    OSPF Cost
    isPassiveEnabled boolean
    Disable sending Hello packets on this interface's IPv4 area
    area str
    Area id
    cost int
    OSPF Cost
    is_passive_enabled bool
    Disable sending Hello packets on this interface's IPv4 area
    area String
    Area id
    cost Number
    OSPF Cost
    isPassiveEnabled Boolean
    Disable sending Hello packets on this interface's IPv4 area

    SwitchRoutingInterfacesOspfV3, SwitchRoutingInterfacesOspfV3Args

    Area string
    Area id
    Cost int
    OSPF Cost
    IsPassiveEnabled bool
    Disable sending Hello packets on this interface's IPv6 area
    Area string
    Area id
    Cost int
    OSPF Cost
    IsPassiveEnabled bool
    Disable sending Hello packets on this interface's IPv6 area
    area String
    Area id
    cost Integer
    OSPF Cost
    isPassiveEnabled Boolean
    Disable sending Hello packets on this interface's IPv6 area
    area string
    Area id
    cost number
    OSPF Cost
    isPassiveEnabled boolean
    Disable sending Hello packets on this interface's IPv6 area
    area str
    Area id
    cost int
    OSPF Cost
    is_passive_enabled bool
    Disable sending Hello packets on this interface's IPv6 area
    area String
    Area id
    cost Number
    OSPF Cost
    isPassiveEnabled Boolean
    Disable sending Hello packets on this interface's IPv6 area

    Import

    $ pulumi import meraki:devices/switchRoutingInterfaces:SwitchRoutingInterfaces example "interface_id,serial"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi