meraki.networks.SwitchStacksRoutingStaticRoutes
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.networks.SwitchStacksRoutingStaticRoutes("example", {
advertiseViaOspfEnabled: false,
name: "My route",
networkId: "string",
nextHopIp: "1.2.3.4",
preferOverOspfRoutesEnabled: false,
subnet: "192.168.1.0/24",
switchStackId: "string",
});
export const merakiNetworksSwitchStacksRoutingStaticRoutesExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.SwitchStacksRoutingStaticRoutes("example",
advertise_via_ospf_enabled=False,
name="My route",
network_id="string",
next_hop_ip="1.2.3.4",
prefer_over_ospf_routes_enabled=False,
subnet="192.168.1.0/24",
switch_stack_id="string")
pulumi.export("merakiNetworksSwitchStacksRoutingStaticRoutesExample", example)
package main
import (
"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := networks.NewSwitchStacksRoutingStaticRoutes(ctx, "example", &networks.SwitchStacksRoutingStaticRoutesArgs{
AdvertiseViaOspfEnabled: pulumi.Bool(false),
Name: pulumi.String("My route"),
NetworkId: pulumi.String("string"),
NextHopIp: pulumi.String("1.2.3.4"),
PreferOverOspfRoutesEnabled: pulumi.Bool(false),
Subnet: pulumi.String("192.168.1.0/24"),
SwitchStackId: pulumi.String("string"),
})
if err != nil {
return err
}
ctx.Export("merakiNetworksSwitchStacksRoutingStaticRoutesExample", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;
return await Deployment.RunAsync(() =>
{
var example = new Meraki.Networks.SwitchStacksRoutingStaticRoutes("example", new()
{
AdvertiseViaOspfEnabled = false,
Name = "My route",
NetworkId = "string",
NextHopIp = "1.2.3.4",
PreferOverOspfRoutesEnabled = false,
Subnet = "192.168.1.0/24",
SwitchStackId = "string",
});
return new Dictionary<string, object?>
{
["merakiNetworksSwitchStacksRoutingStaticRoutesExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.SwitchStacksRoutingStaticRoutes;
import com.pulumi.meraki.networks.SwitchStacksRoutingStaticRoutesArgs;
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 SwitchStacksRoutingStaticRoutes("example", SwitchStacksRoutingStaticRoutesArgs.builder()
.advertiseViaOspfEnabled(false)
.name("My route")
.networkId("string")
.nextHopIp("1.2.3.4")
.preferOverOspfRoutesEnabled(false)
.subnet("192.168.1.0/24")
.switchStackId("string")
.build());
ctx.export("merakiNetworksSwitchStacksRoutingStaticRoutesExample", example);
}
}
resources:
example:
type: meraki:networks:SwitchStacksRoutingStaticRoutes
properties:
advertiseViaOspfEnabled: false
name: My route
networkId: string
nextHopIp: 1.2.3.4
preferOverOspfRoutesEnabled: false
subnet: 192.168.1.0/24
switchStackId: string
outputs:
merakiNetworksSwitchStacksRoutingStaticRoutesExample: ${example}
Create SwitchStacksRoutingStaticRoutes Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwitchStacksRoutingStaticRoutes(name: string, args: SwitchStacksRoutingStaticRoutesArgs, opts?: CustomResourceOptions);
@overload
def SwitchStacksRoutingStaticRoutes(resource_name: str,
args: SwitchStacksRoutingStaticRoutesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SwitchStacksRoutingStaticRoutes(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
switch_stack_id: Optional[str] = None,
advertise_via_ospf_enabled: Optional[bool] = None,
name: Optional[str] = None,
next_hop_ip: Optional[str] = None,
prefer_over_ospf_routes_enabled: Optional[bool] = None,
static_route_id: Optional[str] = None,
subnet: Optional[str] = None)
func NewSwitchStacksRoutingStaticRoutes(ctx *Context, name string, args SwitchStacksRoutingStaticRoutesArgs, opts ...ResourceOption) (*SwitchStacksRoutingStaticRoutes, error)
public SwitchStacksRoutingStaticRoutes(string name, SwitchStacksRoutingStaticRoutesArgs args, CustomResourceOptions? opts = null)
public SwitchStacksRoutingStaticRoutes(String name, SwitchStacksRoutingStaticRoutesArgs args)
public SwitchStacksRoutingStaticRoutes(String name, SwitchStacksRoutingStaticRoutesArgs args, CustomResourceOptions options)
type: meraki:networks:SwitchStacksRoutingStaticRoutes
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 SwitchStacksRoutingStaticRoutesArgs
- 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 SwitchStacksRoutingStaticRoutesArgs
- 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 SwitchStacksRoutingStaticRoutesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwitchStacksRoutingStaticRoutesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwitchStacksRoutingStaticRoutesArgs
- 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 switchStacksRoutingStaticRoutesResource = new Meraki.Networks.SwitchStacksRoutingStaticRoutes("switchStacksRoutingStaticRoutesResource", new()
{
NetworkId = "string",
SwitchStackId = "string",
AdvertiseViaOspfEnabled = false,
Name = "string",
NextHopIp = "string",
PreferOverOspfRoutesEnabled = false,
StaticRouteId = "string",
Subnet = "string",
});
example, err := networks.NewSwitchStacksRoutingStaticRoutes(ctx, "switchStacksRoutingStaticRoutesResource", &networks.SwitchStacksRoutingStaticRoutesArgs{
NetworkId: pulumi.String("string"),
SwitchStackId: pulumi.String("string"),
AdvertiseViaOspfEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
NextHopIp: pulumi.String("string"),
PreferOverOspfRoutesEnabled: pulumi.Bool(false),
StaticRouteId: pulumi.String("string"),
Subnet: pulumi.String("string"),
})
var switchStacksRoutingStaticRoutesResource = new SwitchStacksRoutingStaticRoutes("switchStacksRoutingStaticRoutesResource", SwitchStacksRoutingStaticRoutesArgs.builder()
.networkId("string")
.switchStackId("string")
.advertiseViaOspfEnabled(false)
.name("string")
.nextHopIp("string")
.preferOverOspfRoutesEnabled(false)
.staticRouteId("string")
.subnet("string")
.build());
switch_stacks_routing_static_routes_resource = meraki.networks.SwitchStacksRoutingStaticRoutes("switchStacksRoutingStaticRoutesResource",
network_id="string",
switch_stack_id="string",
advertise_via_ospf_enabled=False,
name="string",
next_hop_ip="string",
prefer_over_ospf_routes_enabled=False,
static_route_id="string",
subnet="string")
const switchStacksRoutingStaticRoutesResource = new meraki.networks.SwitchStacksRoutingStaticRoutes("switchStacksRoutingStaticRoutesResource", {
networkId: "string",
switchStackId: "string",
advertiseViaOspfEnabled: false,
name: "string",
nextHopIp: "string",
preferOverOspfRoutesEnabled: false,
staticRouteId: "string",
subnet: "string",
});
type: meraki:networks:SwitchStacksRoutingStaticRoutes
properties:
advertiseViaOspfEnabled: false
name: string
networkId: string
nextHopIp: string
preferOverOspfRoutesEnabled: false
staticRouteId: string
subnet: string
switchStackId: string
SwitchStacksRoutingStaticRoutes 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 SwitchStacksRoutingStaticRoutes resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Switch
Stack stringId - switchStackId path parameter. Switch stack ID
- Advertise
Via boolOspf Enabled - Option to advertise static routes via OSPF
- Name string
- The name or description of the layer 3 static route
- Next
Hop stringIp - The IP address of the router to which traffic for this destination network should be sent
- Prefer
Over boolOspf Routes Enabled - Option to prefer static routes over OSPF routes
- Static
Route stringId - The identifier of a layer 3 static route
- Subnet string
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- Network
Id string - networkId path parameter. Network ID
- Switch
Stack stringId - switchStackId path parameter. Switch stack ID
- Advertise
Via boolOspf Enabled - Option to advertise static routes via OSPF
- Name string
- The name or description of the layer 3 static route
- Next
Hop stringIp - The IP address of the router to which traffic for this destination network should be sent
- Prefer
Over boolOspf Routes Enabled - Option to prefer static routes over OSPF routes
- Static
Route stringId - The identifier of a layer 3 static route
- Subnet string
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- network
Id String - networkId path parameter. Network ID
- switch
Stack StringId - switchStackId path parameter. Switch stack ID
- advertise
Via BooleanOspf Enabled - Option to advertise static routes via OSPF
- name String
- The name or description of the layer 3 static route
- next
Hop StringIp - The IP address of the router to which traffic for this destination network should be sent
- prefer
Over BooleanOspf Routes Enabled - Option to prefer static routes over OSPF routes
- static
Route StringId - The identifier of a layer 3 static route
- subnet String
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- network
Id string - networkId path parameter. Network ID
- switch
Stack stringId - switchStackId path parameter. Switch stack ID
- advertise
Via booleanOspf Enabled - Option to advertise static routes via OSPF
- name string
- The name or description of the layer 3 static route
- next
Hop stringIp - The IP address of the router to which traffic for this destination network should be sent
- prefer
Over booleanOspf Routes Enabled - Option to prefer static routes over OSPF routes
- static
Route stringId - The identifier of a layer 3 static route
- subnet string
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- network_
id str - networkId path parameter. Network ID
- switch_
stack_ strid - switchStackId path parameter. Switch stack ID
- advertise_
via_ boolospf_ enabled - Option to advertise static routes via OSPF
- name str
- The name or description of the layer 3 static route
- next_
hop_ strip - The IP address of the router to which traffic for this destination network should be sent
- prefer_
over_ boolospf_ routes_ enabled - Option to prefer static routes over OSPF routes
- static_
route_ strid - The identifier of a layer 3 static route
- subnet str
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- network
Id String - networkId path parameter. Network ID
- switch
Stack StringId - switchStackId path parameter. Switch stack ID
- advertise
Via BooleanOspf Enabled - Option to advertise static routes via OSPF
- name String
- The name or description of the layer 3 static route
- next
Hop StringIp - The IP address of the router to which traffic for this destination network should be sent
- prefer
Over BooleanOspf Routes Enabled - Option to prefer static routes over OSPF routes
- static
Route StringId - The identifier of a layer 3 static route
- subnet String
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
Outputs
All input properties are implicitly available as output properties. Additionally, the SwitchStacksRoutingStaticRoutes 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 SwitchStacksRoutingStaticRoutes Resource
Get an existing SwitchStacksRoutingStaticRoutes 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?: SwitchStacksRoutingStaticRoutesState, opts?: CustomResourceOptions): SwitchStacksRoutingStaticRoutes
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
advertise_via_ospf_enabled: Optional[bool] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
next_hop_ip: Optional[str] = None,
prefer_over_ospf_routes_enabled: Optional[bool] = None,
static_route_id: Optional[str] = None,
subnet: Optional[str] = None,
switch_stack_id: Optional[str] = None) -> SwitchStacksRoutingStaticRoutes
func GetSwitchStacksRoutingStaticRoutes(ctx *Context, name string, id IDInput, state *SwitchStacksRoutingStaticRoutesState, opts ...ResourceOption) (*SwitchStacksRoutingStaticRoutes, error)
public static SwitchStacksRoutingStaticRoutes Get(string name, Input<string> id, SwitchStacksRoutingStaticRoutesState? state, CustomResourceOptions? opts = null)
public static SwitchStacksRoutingStaticRoutes get(String name, Output<String> id, SwitchStacksRoutingStaticRoutesState 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.
- Advertise
Via boolOspf Enabled - Option to advertise static routes via OSPF
- Name string
- The name or description of the layer 3 static route
- Network
Id string - networkId path parameter. Network ID
- Next
Hop stringIp - The IP address of the router to which traffic for this destination network should be sent
- Prefer
Over boolOspf Routes Enabled - Option to prefer static routes over OSPF routes
- Static
Route stringId - The identifier of a layer 3 static route
- Subnet string
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- Switch
Stack stringId - switchStackId path parameter. Switch stack ID
- Advertise
Via boolOspf Enabled - Option to advertise static routes via OSPF
- Name string
- The name or description of the layer 3 static route
- Network
Id string - networkId path parameter. Network ID
- Next
Hop stringIp - The IP address of the router to which traffic for this destination network should be sent
- Prefer
Over boolOspf Routes Enabled - Option to prefer static routes over OSPF routes
- Static
Route stringId - The identifier of a layer 3 static route
- Subnet string
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- Switch
Stack stringId - switchStackId path parameter. Switch stack ID
- advertise
Via BooleanOspf Enabled - Option to advertise static routes via OSPF
- name String
- The name or description of the layer 3 static route
- network
Id String - networkId path parameter. Network ID
- next
Hop StringIp - The IP address of the router to which traffic for this destination network should be sent
- prefer
Over BooleanOspf Routes Enabled - Option to prefer static routes over OSPF routes
- static
Route StringId - The identifier of a layer 3 static route
- subnet String
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- switch
Stack StringId - switchStackId path parameter. Switch stack ID
- advertise
Via booleanOspf Enabled - Option to advertise static routes via OSPF
- name string
- The name or description of the layer 3 static route
- network
Id string - networkId path parameter. Network ID
- next
Hop stringIp - The IP address of the router to which traffic for this destination network should be sent
- prefer
Over booleanOspf Routes Enabled - Option to prefer static routes over OSPF routes
- static
Route stringId - The identifier of a layer 3 static route
- subnet string
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- switch
Stack stringId - switchStackId path parameter. Switch stack ID
- advertise_
via_ boolospf_ enabled - Option to advertise static routes via OSPF
- name str
- The name or description of the layer 3 static route
- network_
id str - networkId path parameter. Network ID
- next_
hop_ strip - The IP address of the router to which traffic for this destination network should be sent
- prefer_
over_ boolospf_ routes_ enabled - Option to prefer static routes over OSPF routes
- static_
route_ strid - The identifier of a layer 3 static route
- subnet str
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- switch_
stack_ strid - switchStackId path parameter. Switch stack ID
- advertise
Via BooleanOspf Enabled - Option to advertise static routes via OSPF
- name String
- The name or description of the layer 3 static route
- network
Id String - networkId path parameter. Network ID
- next
Hop StringIp - The IP address of the router to which traffic for this destination network should be sent
- prefer
Over BooleanOspf Routes Enabled - Option to prefer static routes over OSPF routes
- static
Route StringId - The identifier of a layer 3 static route
- subnet String
- The IP address of the subnetwork specified in CIDR notation (ex. 1.2.3.0/24)
- switch
Stack StringId - switchStackId path parameter. Switch stack ID
Import
$ pulumi import meraki:networks/switchStacksRoutingStaticRoutes:SwitchStacksRoutingStaticRoutes example "network_id,static_route_id,switch_stack_id"
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.