meraki.networks.SwitchStacksAdd
Explore with Pulumi AI
~>Warning: This resource does not represent a real-world entity in Meraki Dashboard, therefore changing or deleting this resource on its own has no immediate effect. Instead, it is a task part of a Meraki Dashboard workflow. It is executed in Meraki without any additional verification. It does not check if it was executed before or if a similar configuration or action already existed previously.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.networks.SwitchStacksAdd("example", {
networkId: "string",
switchStackId: "string",
parameters: {
serial: "QBZY-XWVU-TSRQ",
},
});
export const merakiNetworksSwitchStacksAddExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.SwitchStacksAdd("example",
network_id="string",
switch_stack_id="string",
parameters=meraki.networks.SwitchStacksAddParametersArgs(
serial="QBZY-XWVU-TSRQ",
))
pulumi.export("merakiNetworksSwitchStacksAddExample", 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.NewSwitchStacksAdd(ctx, "example", &networks.SwitchStacksAddArgs{
NetworkId: pulumi.String("string"),
SwitchStackId: pulumi.String("string"),
Parameters: &networks.SwitchStacksAddParametersArgs{
Serial: pulumi.String("QBZY-XWVU-TSRQ"),
},
})
if err != nil {
return err
}
ctx.Export("merakiNetworksSwitchStacksAddExample", 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.SwitchStacksAdd("example", new()
{
NetworkId = "string",
SwitchStackId = "string",
Parameters = new Meraki.Networks.Inputs.SwitchStacksAddParametersArgs
{
Serial = "QBZY-XWVU-TSRQ",
},
});
return new Dictionary<string, object?>
{
["merakiNetworksSwitchStacksAddExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.SwitchStacksAdd;
import com.pulumi.meraki.networks.SwitchStacksAddArgs;
import com.pulumi.meraki.networks.inputs.SwitchStacksAddParametersArgs;
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 SwitchStacksAdd("example", SwitchStacksAddArgs.builder()
.networkId("string")
.switchStackId("string")
.parameters(SwitchStacksAddParametersArgs.builder()
.serial("QBZY-XWVU-TSRQ")
.build())
.build());
ctx.export("merakiNetworksSwitchStacksAddExample", example);
}
}
resources:
example:
type: meraki:networks:SwitchStacksAdd
properties:
networkId: string
switchStackId: string
parameters:
serial: QBZY-XWVU-TSRQ
outputs:
merakiNetworksSwitchStacksAddExample: ${example}
Create SwitchStacksAdd Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwitchStacksAdd(name: string, args: SwitchStacksAddArgs, opts?: CustomResourceOptions);
@overload
def SwitchStacksAdd(resource_name: str,
args: SwitchStacksAddArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SwitchStacksAdd(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
parameters: Optional[SwitchStacksAddParametersArgs] = None,
switch_stack_id: Optional[str] = None)
func NewSwitchStacksAdd(ctx *Context, name string, args SwitchStacksAddArgs, opts ...ResourceOption) (*SwitchStacksAdd, error)
public SwitchStacksAdd(string name, SwitchStacksAddArgs args, CustomResourceOptions? opts = null)
public SwitchStacksAdd(String name, SwitchStacksAddArgs args)
public SwitchStacksAdd(String name, SwitchStacksAddArgs args, CustomResourceOptions options)
type: meraki:networks:SwitchStacksAdd
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 SwitchStacksAddArgs
- 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 SwitchStacksAddArgs
- 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 SwitchStacksAddArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwitchStacksAddArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwitchStacksAddArgs
- 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 switchStacksAddResource = new Meraki.Networks.SwitchStacksAdd("switchStacksAddResource", new()
{
NetworkId = "string",
Parameters = new Meraki.Networks.Inputs.SwitchStacksAddParametersArgs
{
Serial = "string",
},
SwitchStackId = "string",
});
example, err := networks.NewSwitchStacksAdd(ctx, "switchStacksAddResource", &networks.SwitchStacksAddArgs{
NetworkId: pulumi.String("string"),
Parameters: &networks.SwitchStacksAddParametersArgs{
Serial: pulumi.String("string"),
},
SwitchStackId: pulumi.String("string"),
})
var switchStacksAddResource = new SwitchStacksAdd("switchStacksAddResource", SwitchStacksAddArgs.builder()
.networkId("string")
.parameters(SwitchStacksAddParametersArgs.builder()
.serial("string")
.build())
.switchStackId("string")
.build());
switch_stacks_add_resource = meraki.networks.SwitchStacksAdd("switchStacksAddResource",
network_id="string",
parameters=meraki.networks.SwitchStacksAddParametersArgs(
serial="string",
),
switch_stack_id="string")
const switchStacksAddResource = new meraki.networks.SwitchStacksAdd("switchStacksAddResource", {
networkId: "string",
parameters: {
serial: "string",
},
switchStackId: "string",
});
type: meraki:networks:SwitchStacksAdd
properties:
networkId: string
parameters:
serial: string
switchStackId: string
SwitchStacksAdd 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 SwitchStacksAdd resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Parameters
Switch
Stacks Add Parameters - Switch
Stack stringId - switchStackId path parameter. Switch stack ID
- Network
Id string - networkId path parameter. Network ID
- Parameters
Switch
Stacks Add Parameters Args - Switch
Stack stringId - switchStackId path parameter. Switch stack ID
- network
Id String - networkId path parameter. Network ID
- parameters
Switch
Stacks Add Parameters - switch
Stack StringId - switchStackId path parameter. Switch stack ID
- network
Id string - networkId path parameter. Network ID
- parameters
Switch
Stacks Add Parameters - switch
Stack stringId - switchStackId path parameter. Switch stack ID
- network_
id str - networkId path parameter. Network ID
- parameters
Switch
Stacks Add Parameters Args - switch_
stack_ strid - switchStackId path parameter. Switch stack ID
- network
Id String - networkId path parameter. Network ID
- parameters Property Map
- switch
Stack StringId - switchStackId path parameter. Switch stack ID
Outputs
All input properties are implicitly available as output properties. Additionally, the SwitchStacksAdd resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Switch
Stacks Add Item
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Switch
Stacks Add Item
- id String
- The provider-assigned unique ID for this managed resource.
- item
Switch
Stacks Add Item
- id string
- The provider-assigned unique ID for this managed resource.
- item
Switch
Stacks Add Item
- id str
- The provider-assigned unique ID for this managed resource.
- item
Switch
Stacks Add Item
- id String
- The provider-assigned unique ID for this managed resource.
- item Property Map
Look up Existing SwitchStacksAdd Resource
Get an existing SwitchStacksAdd 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?: SwitchStacksAddState, opts?: CustomResourceOptions): SwitchStacksAdd
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
item: Optional[SwitchStacksAddItemArgs] = None,
network_id: Optional[str] = None,
parameters: Optional[SwitchStacksAddParametersArgs] = None,
switch_stack_id: Optional[str] = None) -> SwitchStacksAdd
func GetSwitchStacksAdd(ctx *Context, name string, id IDInput, state *SwitchStacksAddState, opts ...ResourceOption) (*SwitchStacksAdd, error)
public static SwitchStacksAdd Get(string name, Input<string> id, SwitchStacksAddState? state, CustomResourceOptions? opts = null)
public static SwitchStacksAdd get(String name, Output<String> id, SwitchStacksAddState 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.
- Item
Switch
Stacks Add Item - Network
Id string - networkId path parameter. Network ID
- Parameters
Switch
Stacks Add Parameters - Switch
Stack stringId - switchStackId path parameter. Switch stack ID
- Item
Switch
Stacks Add Item Args - Network
Id string - networkId path parameter. Network ID
- Parameters
Switch
Stacks Add Parameters Args - Switch
Stack stringId - switchStackId path parameter. Switch stack ID
- item
Switch
Stacks Add Item - network
Id String - networkId path parameter. Network ID
- parameters
Switch
Stacks Add Parameters - switch
Stack StringId - switchStackId path parameter. Switch stack ID
- item
Switch
Stacks Add Item - network
Id string - networkId path parameter. Network ID
- parameters
Switch
Stacks Add Parameters - switch
Stack stringId - switchStackId path parameter. Switch stack ID
- item
Switch
Stacks Add Item Args - network_
id str - networkId path parameter. Network ID
- parameters
Switch
Stacks Add Parameters Args - switch_
stack_ strid - switchStackId path parameter. Switch stack ID
- item Property Map
- network
Id String - networkId path parameter. Network ID
- parameters Property Map
- switch
Stack StringId - switchStackId path parameter. Switch stack ID
Supporting Types
SwitchStacksAddItem, SwitchStacksAddItemArgs
SwitchStacksAddParameters, SwitchStacksAddParametersArgs
- Serial string
- The serial of the switch to be added
- Serial string
- The serial of the switch to be added
- serial String
- The serial of the switch to be added
- serial string
- The serial of the switch to be added
- serial str
- The serial of the switch to be added
- serial String
- The serial of the switch to be added
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.