1. Packages
  2. Cisco Meraki Provider
  3. API Docs
  4. networks
  5. SwitchStacks
Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi

meraki.networks.SwitchStacks

Explore with Pulumi AI

Example Usage

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

const example = new meraki.networks.SwitchStacks("example", {
    name: "A cool stack",
    networkId: "string",
    serials: [
        "QBZY-XWVU-TSRQ",
        "QBAB-CDEF-GHIJ",
    ],
});
export const merakiNetworksSwitchStacksExample = example;
Copy
import pulumi
import pulumi_meraki as meraki

example = meraki.networks.SwitchStacks("example",
    name="A cool stack",
    network_id="string",
    serials=[
        "QBZY-XWVU-TSRQ",
        "QBAB-CDEF-GHIJ",
    ])
pulumi.export("merakiNetworksSwitchStacksExample", example)
Copy
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.NewSwitchStacks(ctx, "example", &networks.SwitchStacksArgs{
			Name:      pulumi.String("A cool stack"),
			NetworkId: pulumi.String("string"),
			Serials: pulumi.StringArray{
				pulumi.String("QBZY-XWVU-TSRQ"),
				pulumi.String("QBAB-CDEF-GHIJ"),
			},
		})
		if err != nil {
			return err
		}
		ctx.Export("merakiNetworksSwitchStacksExample", example)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Meraki = Pulumi.Meraki;

return await Deployment.RunAsync(() => 
{
    var example = new Meraki.Networks.SwitchStacks("example", new()
    {
        Name = "A cool stack",
        NetworkId = "string",
        Serials = new[]
        {
            "QBZY-XWVU-TSRQ",
            "QBAB-CDEF-GHIJ",
        },
    });

    return new Dictionary<string, object?>
    {
        ["merakiNetworksSwitchStacksExample"] = example,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.SwitchStacks;
import com.pulumi.meraki.networks.SwitchStacksArgs;
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 SwitchStacks("example", SwitchStacksArgs.builder()
            .name("A cool stack")
            .networkId("string")
            .serials(            
                "QBZY-XWVU-TSRQ",
                "QBAB-CDEF-GHIJ")
            .build());

        ctx.export("merakiNetworksSwitchStacksExample", example);
    }
}
Copy
resources:
  example:
    type: meraki:networks:SwitchStacks
    properties:
      name: A cool stack
      networkId: string
      serials:
        - QBZY-XWVU-TSRQ
        - QBAB-CDEF-GHIJ
outputs:
  merakiNetworksSwitchStacksExample: ${example}
Copy

Create SwitchStacks Resource

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

Constructor syntax

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

@overload
def SwitchStacks(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 network_id: Optional[str] = None,
                 name: Optional[str] = None,
                 serials: Optional[Sequence[str]] = None,
                 switch_stack_id: Optional[str] = None)
func NewSwitchStacks(ctx *Context, name string, args SwitchStacksArgs, opts ...ResourceOption) (*SwitchStacks, error)
public SwitchStacks(string name, SwitchStacksArgs args, CustomResourceOptions? opts = null)
public SwitchStacks(String name, SwitchStacksArgs args)
public SwitchStacks(String name, SwitchStacksArgs args, CustomResourceOptions options)
type: meraki:networks:SwitchStacks
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 This property is required. SwitchStacksArgs
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 This property is required. SwitchStacksArgs
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 This property is required. SwitchStacksArgs
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 This property is required. SwitchStacksArgs
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. SwitchStacksArgs
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 switchStacksResource = new Meraki.Networks.SwitchStacks("switchStacksResource", new()
{
    NetworkId = "string",
    Name = "string",
    Serials = new[]
    {
        "string",
    },
    SwitchStackId = "string",
});
Copy
example, err := networks.NewSwitchStacks(ctx, "switchStacksResource", &networks.SwitchStacksArgs{
	NetworkId: pulumi.String("string"),
	Name:      pulumi.String("string"),
	Serials: pulumi.StringArray{
		pulumi.String("string"),
	},
	SwitchStackId: pulumi.String("string"),
})
Copy
var switchStacksResource = new SwitchStacks("switchStacksResource", SwitchStacksArgs.builder()
    .networkId("string")
    .name("string")
    .serials("string")
    .switchStackId("string")
    .build());
Copy
switch_stacks_resource = meraki.networks.SwitchStacks("switchStacksResource",
    network_id="string",
    name="string",
    serials=["string"],
    switch_stack_id="string")
Copy
const switchStacksResource = new meraki.networks.SwitchStacks("switchStacksResource", {
    networkId: "string",
    name: "string",
    serials: ["string"],
    switchStackId: "string",
});
Copy
type: meraki:networks:SwitchStacks
properties:
    name: string
    networkId: string
    serials:
        - string
    switchStackId: string
Copy

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

NetworkId This property is required. string
networkId path parameter. Network ID
Name string
Name of the Switch stack
Serials List<string>
Serials of the switches in the switch stack
SwitchStackId string
switchStackId path parameter. Switch stack ID
NetworkId This property is required. string
networkId path parameter. Network ID
Name string
Name of the Switch stack
Serials []string
Serials of the switches in the switch stack
SwitchStackId string
switchStackId path parameter. Switch stack ID
networkId This property is required. String
networkId path parameter. Network ID
name String
Name of the Switch stack
serials List<String>
Serials of the switches in the switch stack
switchStackId String
switchStackId path parameter. Switch stack ID
networkId This property is required. string
networkId path parameter. Network ID
name string
Name of the Switch stack
serials string[]
Serials of the switches in the switch stack
switchStackId string
switchStackId path parameter. Switch stack ID
network_id This property is required. str
networkId path parameter. Network ID
name str
Name of the Switch stack
serials Sequence[str]
Serials of the switches in the switch stack
switch_stack_id str
switchStackId path parameter. Switch stack ID
networkId This property is required. String
networkId path parameter. Network ID
name String
Name of the Switch stack
serials List<String>
Serials of the switches in the switch stack
switchStackId String
switchStackId path parameter. Switch stack ID

Outputs

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

Get an existing SwitchStacks 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?: SwitchStacksState, opts?: CustomResourceOptions): SwitchStacks
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        network_id: Optional[str] = None,
        serials: Optional[Sequence[str]] = None,
        switch_stack_id: Optional[str] = None) -> SwitchStacks
func GetSwitchStacks(ctx *Context, name string, id IDInput, state *SwitchStacksState, opts ...ResourceOption) (*SwitchStacks, error)
public static SwitchStacks Get(string name, Input<string> id, SwitchStacksState? state, CustomResourceOptions? opts = null)
public static SwitchStacks get(String name, Output<String> id, SwitchStacksState state, CustomResourceOptions options)
resources:  _:    type: meraki:networks:SwitchStacks    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:
Name string
Name of the Switch stack
NetworkId string
networkId path parameter. Network ID
Serials List<string>
Serials of the switches in the switch stack
SwitchStackId string
switchStackId path parameter. Switch stack ID
Name string
Name of the Switch stack
NetworkId string
networkId path parameter. Network ID
Serials []string
Serials of the switches in the switch stack
SwitchStackId string
switchStackId path parameter. Switch stack ID
name String
Name of the Switch stack
networkId String
networkId path parameter. Network ID
serials List<String>
Serials of the switches in the switch stack
switchStackId String
switchStackId path parameter. Switch stack ID
name string
Name of the Switch stack
networkId string
networkId path parameter. Network ID
serials string[]
Serials of the switches in the switch stack
switchStackId string
switchStackId path parameter. Switch stack ID
name str
Name of the Switch stack
network_id str
networkId path parameter. Network ID
serials Sequence[str]
Serials of the switches in the switch stack
switch_stack_id str
switchStackId path parameter. Switch stack ID
name String
Name of the Switch stack
networkId String
networkId path parameter. Network ID
serials List<String>
Serials of the switches in the switch stack
switchStackId String
switchStackId path parameter. Switch stack ID

Import

$ pulumi import meraki:networks/switchStacks:SwitchStacks example "network_id,switch_stack_id"
Copy

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.