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

meraki.networks.SwitchStacksRemove

Explore with Pulumi AI

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

    ~>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.SwitchStacksRemove("example", {
        networkId: "string",
        switchStackId: "string",
        parameters: {
            serial: "QBZY-XWVU-TSRQ",
        },
    });
    export const merakiNetworksSwitchStacksRemoveExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.SwitchStacksRemove("example",
        network_id="string",
        switch_stack_id="string",
        parameters={
            "serial": "QBZY-XWVU-TSRQ",
        })
    pulumi.export("merakiNetworksSwitchStacksRemoveExample", 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.NewSwitchStacksRemove(ctx, "example", &networks.SwitchStacksRemoveArgs{
    			NetworkId:     pulumi.String("string"),
    			SwitchStackId: pulumi.String("string"),
    			Parameters: &networks.SwitchStacksRemoveParametersArgs{
    				Serial: pulumi.String("QBZY-XWVU-TSRQ"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksSwitchStacksRemoveExample", 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.SwitchStacksRemove("example", new()
        {
            NetworkId = "string",
            SwitchStackId = "string",
            Parameters = new Meraki.Networks.Inputs.SwitchStacksRemoveParametersArgs
            {
                Serial = "QBZY-XWVU-TSRQ",
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksSwitchStacksRemoveExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.SwitchStacksRemove;
    import com.pulumi.meraki.networks.SwitchStacksRemoveArgs;
    import com.pulumi.meraki.networks.inputs.SwitchStacksRemoveParametersArgs;
    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 SwitchStacksRemove("example", SwitchStacksRemoveArgs.builder()
                .networkId("string")
                .switchStackId("string")
                .parameters(SwitchStacksRemoveParametersArgs.builder()
                    .serial("QBZY-XWVU-TSRQ")
                    .build())
                .build());
    
            ctx.export("merakiNetworksSwitchStacksRemoveExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:SwitchStacksRemove
        properties:
          networkId: string
          switchStackId: string
          parameters:
            serial: QBZY-XWVU-TSRQ
    outputs:
      merakiNetworksSwitchStacksRemoveExample: ${example}
    

    Create SwitchStacksRemove Resource

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

    Constructor syntax

    new SwitchStacksRemove(name: string, args: SwitchStacksRemoveArgs, opts?: CustomResourceOptions);
    @overload
    def SwitchStacksRemove(resource_name: str,
                           args: SwitchStacksRemoveArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def SwitchStacksRemove(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           network_id: Optional[str] = None,
                           parameters: Optional[SwitchStacksRemoveParametersArgs] = None,
                           switch_stack_id: Optional[str] = None)
    func NewSwitchStacksRemove(ctx *Context, name string, args SwitchStacksRemoveArgs, opts ...ResourceOption) (*SwitchStacksRemove, error)
    public SwitchStacksRemove(string name, SwitchStacksRemoveArgs args, CustomResourceOptions? opts = null)
    public SwitchStacksRemove(String name, SwitchStacksRemoveArgs args)
    public SwitchStacksRemove(String name, SwitchStacksRemoveArgs args, CustomResourceOptions options)
    
    type: meraki:networks:SwitchStacksRemove
    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 SwitchStacksRemoveArgs
    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 SwitchStacksRemoveArgs
    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 SwitchStacksRemoveArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SwitchStacksRemoveArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SwitchStacksRemoveArgs
    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 switchStacksRemoveResource = new Meraki.Networks.SwitchStacksRemove("switchStacksRemoveResource", new()
    {
        NetworkId = "string",
        Parameters = new Meraki.Networks.Inputs.SwitchStacksRemoveParametersArgs
        {
            Serial = "string",
        },
        SwitchStackId = "string",
    });
    
    example, err := networks.NewSwitchStacksRemove(ctx, "switchStacksRemoveResource", &networks.SwitchStacksRemoveArgs{
    	NetworkId: pulumi.String("string"),
    	Parameters: &networks.SwitchStacksRemoveParametersArgs{
    		Serial: pulumi.String("string"),
    	},
    	SwitchStackId: pulumi.String("string"),
    })
    
    var switchStacksRemoveResource = new SwitchStacksRemove("switchStacksRemoveResource", SwitchStacksRemoveArgs.builder()
        .networkId("string")
        .parameters(SwitchStacksRemoveParametersArgs.builder()
            .serial("string")
            .build())
        .switchStackId("string")
        .build());
    
    switch_stacks_remove_resource = meraki.networks.SwitchStacksRemove("switchStacksRemoveResource",
        network_id="string",
        parameters={
            "serial": "string",
        },
        switch_stack_id="string")
    
    const switchStacksRemoveResource = new meraki.networks.SwitchStacksRemove("switchStacksRemoveResource", {
        networkId: "string",
        parameters: {
            serial: "string",
        },
        switchStackId: "string",
    });
    
    type: meraki:networks:SwitchStacksRemove
    properties:
        networkId: string
        parameters:
            serial: string
        switchStackId: string
    

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

    NetworkId string
    networkId path parameter. Network ID
    Parameters SwitchStacksRemoveParameters
    SwitchStackId string
    switchStackId path parameter. Switch stack ID
    NetworkId string
    networkId path parameter. Network ID
    Parameters SwitchStacksRemoveParametersArgs
    SwitchStackId string
    switchStackId path parameter. Switch stack ID
    networkId String
    networkId path parameter. Network ID
    parameters SwitchStacksRemoveParameters
    switchStackId String
    switchStackId path parameter. Switch stack ID
    networkId string
    networkId path parameter. Network ID
    parameters SwitchStacksRemoveParameters
    switchStackId string
    switchStackId path parameter. Switch stack ID
    network_id str
    networkId path parameter. Network ID
    parameters SwitchStacksRemoveParametersArgs
    switch_stack_id str
    switchStackId path parameter. Switch stack ID
    networkId String
    networkId path parameter. Network ID
    parameters Property Map
    switchStackId String
    switchStackId path parameter. Switch stack ID

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SwitchStacksRemove resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Item SwitchStacksRemoveItem
    Id string
    The provider-assigned unique ID for this managed resource.
    Item SwitchStacksRemoveItem
    id String
    The provider-assigned unique ID for this managed resource.
    item SwitchStacksRemoveItem
    id string
    The provider-assigned unique ID for this managed resource.
    item SwitchStacksRemoveItem
    id str
    The provider-assigned unique ID for this managed resource.
    item SwitchStacksRemoveItem
    id String
    The provider-assigned unique ID for this managed resource.
    item Property Map

    Look up Existing SwitchStacksRemove Resource

    Get an existing SwitchStacksRemove 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?: SwitchStacksRemoveState, opts?: CustomResourceOptions): SwitchStacksRemove
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            item: Optional[SwitchStacksRemoveItemArgs] = None,
            network_id: Optional[str] = None,
            parameters: Optional[SwitchStacksRemoveParametersArgs] = None,
            switch_stack_id: Optional[str] = None) -> SwitchStacksRemove
    func GetSwitchStacksRemove(ctx *Context, name string, id IDInput, state *SwitchStacksRemoveState, opts ...ResourceOption) (*SwitchStacksRemove, error)
    public static SwitchStacksRemove Get(string name, Input<string> id, SwitchStacksRemoveState? state, CustomResourceOptions? opts = null)
    public static SwitchStacksRemove get(String name, Output<String> id, SwitchStacksRemoveState 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:
    Item SwitchStacksRemoveItem
    NetworkId string
    networkId path parameter. Network ID
    Parameters SwitchStacksRemoveParameters
    SwitchStackId string
    switchStackId path parameter. Switch stack ID
    Item SwitchStacksRemoveItemArgs
    NetworkId string
    networkId path parameter. Network ID
    Parameters SwitchStacksRemoveParametersArgs
    SwitchStackId string
    switchStackId path parameter. Switch stack ID
    item SwitchStacksRemoveItem
    networkId String
    networkId path parameter. Network ID
    parameters SwitchStacksRemoveParameters
    switchStackId String
    switchStackId path parameter. Switch stack ID
    item SwitchStacksRemoveItem
    networkId string
    networkId path parameter. Network ID
    parameters SwitchStacksRemoveParameters
    switchStackId string
    switchStackId path parameter. Switch stack ID
    item SwitchStacksRemoveItemArgs
    network_id str
    networkId path parameter. Network ID
    parameters SwitchStacksRemoveParametersArgs
    switch_stack_id str
    switchStackId path parameter. Switch stack ID
    item Property Map
    networkId String
    networkId path parameter. Network ID
    parameters Property Map
    switchStackId String
    switchStackId path parameter. Switch stack ID

    Supporting Types

    SwitchStacksRemoveItem, SwitchStacksRemoveItemArgs

    Id string
    ID of the Switch stack
    Name string
    Name of the Switch stack
    Serials List<string>
    Serials of the switches in the switch stack
    Id string
    ID of the Switch stack
    Name string
    Name of the Switch stack
    Serials []string
    Serials of the switches in the switch stack
    id String
    ID of the Switch stack
    name String
    Name of the Switch stack
    serials List<String>
    Serials of the switches in the switch stack
    id string
    ID of the Switch stack
    name string
    Name of the Switch stack
    serials string[]
    Serials of the switches in the switch stack
    id str
    ID of the Switch stack
    name str
    Name of the Switch stack
    serials Sequence[str]
    Serials of the switches in the switch stack
    id String
    ID of the Switch stack
    name String
    Name of the Switch stack
    serials List<String>
    Serials of the switches in the switch stack

    SwitchStacksRemoveParameters, SwitchStacksRemoveParametersArgs

    Serial string
    The serial of the switch to be removed
    Serial string
    The serial of the switch to be removed
    serial String
    The serial of the switch to be removed
    serial string
    The serial of the switch to be removed
    serial str
    The serial of the switch to be removed
    serial String
    The serial of the switch to be removed

    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