1. Packages
  2. Cisco Meraki
  3. API Docs
  4. devices
  5. SwitchWarmSpare
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

meraki.devices.SwitchWarmSpare

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.devices.SwitchWarmSpare("example", {
        enabled: true,
        serial: "string",
        spareSerial: "Q234-ABCD-0002",
    });
    export const merakiDevicesSwitchWarmSpareExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.devices.SwitchWarmSpare("example",
        enabled=True,
        serial="string",
        spare_serial="Q234-ABCD-0002")
    pulumi.export("merakiDevicesSwitchWarmSpareExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/devices"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := devices.NewSwitchWarmSpare(ctx, "example", &devices.SwitchWarmSpareArgs{
    			Enabled:     pulumi.Bool(true),
    			Serial:      pulumi.String("string"),
    			SpareSerial: pulumi.String("Q234-ABCD-0002"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiDevicesSwitchWarmSpareExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Devices.SwitchWarmSpare("example", new()
        {
            Enabled = true,
            Serial = "string",
            SpareSerial = "Q234-ABCD-0002",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiDevicesSwitchWarmSpareExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.devices.SwitchWarmSpare;
    import com.pulumi.meraki.devices.SwitchWarmSpareArgs;
    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 SwitchWarmSpare("example", SwitchWarmSpareArgs.builder()
                .enabled(true)
                .serial("string")
                .spareSerial("Q234-ABCD-0002")
                .build());
    
            ctx.export("merakiDevicesSwitchWarmSpareExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:devices:SwitchWarmSpare
        properties:
          enabled: true
          serial: string
          spareSerial: Q234-ABCD-0002
    outputs:
      merakiDevicesSwitchWarmSpareExample: ${example}
    

    Create SwitchWarmSpare Resource

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

    Constructor syntax

    new SwitchWarmSpare(name: string, args: SwitchWarmSpareArgs, opts?: CustomResourceOptions);
    @overload
    def SwitchWarmSpare(resource_name: str,
                        args: SwitchWarmSpareArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SwitchWarmSpare(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        serial: Optional[str] = None,
                        enabled: Optional[bool] = None,
                        spare_serial: Optional[str] = None)
    func NewSwitchWarmSpare(ctx *Context, name string, args SwitchWarmSpareArgs, opts ...ResourceOption) (*SwitchWarmSpare, error)
    public SwitchWarmSpare(string name, SwitchWarmSpareArgs args, CustomResourceOptions? opts = null)
    public SwitchWarmSpare(String name, SwitchWarmSpareArgs args)
    public SwitchWarmSpare(String name, SwitchWarmSpareArgs args, CustomResourceOptions options)
    
    type: meraki:devices:SwitchWarmSpare
    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 SwitchWarmSpareArgs
    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 SwitchWarmSpareArgs
    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 SwitchWarmSpareArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SwitchWarmSpareArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SwitchWarmSpareArgs
    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 switchWarmSpareResource = new Meraki.Devices.SwitchWarmSpare("switchWarmSpareResource", new()
    {
        Serial = "string",
        Enabled = false,
        SpareSerial = "string",
    });
    
    example, err := devices.NewSwitchWarmSpare(ctx, "switchWarmSpareResource", &devices.SwitchWarmSpareArgs{
    	Serial:      pulumi.String("string"),
    	Enabled:     pulumi.Bool(false),
    	SpareSerial: pulumi.String("string"),
    })
    
    var switchWarmSpareResource = new SwitchWarmSpare("switchWarmSpareResource", SwitchWarmSpareArgs.builder()
        .serial("string")
        .enabled(false)
        .spareSerial("string")
        .build());
    
    switch_warm_spare_resource = meraki.devices.SwitchWarmSpare("switchWarmSpareResource",
        serial="string",
        enabled=False,
        spare_serial="string")
    
    const switchWarmSpareResource = new meraki.devices.SwitchWarmSpare("switchWarmSpareResource", {
        serial: "string",
        enabled: false,
        spareSerial: "string",
    });
    
    type: meraki:devices:SwitchWarmSpare
    properties:
        enabled: false
        serial: string
        spareSerial: string
    

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

    Serial string
    serial path parameter.
    Enabled bool
    Enable or disable warm spare for a switch
    SpareSerial string
    Serial number of the warm spare switch
    Serial string
    serial path parameter.
    Enabled bool
    Enable or disable warm spare for a switch
    SpareSerial string
    Serial number of the warm spare switch
    serial String
    serial path parameter.
    enabled Boolean
    Enable or disable warm spare for a switch
    spareSerial String
    Serial number of the warm spare switch
    serial string
    serial path parameter.
    enabled boolean
    Enable or disable warm spare for a switch
    spareSerial string
    Serial number of the warm spare switch
    serial str
    serial path parameter.
    enabled bool
    Enable or disable warm spare for a switch
    spare_serial str
    Serial number of the warm spare switch
    serial String
    serial path parameter.
    enabled Boolean
    Enable or disable warm spare for a switch
    spareSerial String
    Serial number of the warm spare switch

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PrimarySerial string
    Serial number of the primary switch
    Id string
    The provider-assigned unique ID for this managed resource.
    PrimarySerial string
    Serial number of the primary switch
    id String
    The provider-assigned unique ID for this managed resource.
    primarySerial String
    Serial number of the primary switch
    id string
    The provider-assigned unique ID for this managed resource.
    primarySerial string
    Serial number of the primary switch
    id str
    The provider-assigned unique ID for this managed resource.
    primary_serial str
    Serial number of the primary switch
    id String
    The provider-assigned unique ID for this managed resource.
    primarySerial String
    Serial number of the primary switch

    Look up Existing SwitchWarmSpare Resource

    Get an existing SwitchWarmSpare 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?: SwitchWarmSpareState, opts?: CustomResourceOptions): SwitchWarmSpare
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            primary_serial: Optional[str] = None,
            serial: Optional[str] = None,
            spare_serial: Optional[str] = None) -> SwitchWarmSpare
    func GetSwitchWarmSpare(ctx *Context, name string, id IDInput, state *SwitchWarmSpareState, opts ...ResourceOption) (*SwitchWarmSpare, error)
    public static SwitchWarmSpare Get(string name, Input<string> id, SwitchWarmSpareState? state, CustomResourceOptions? opts = null)
    public static SwitchWarmSpare get(String name, Output<String> id, SwitchWarmSpareState 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:
    Enabled bool
    Enable or disable warm spare for a switch
    PrimarySerial string
    Serial number of the primary switch
    Serial string
    serial path parameter.
    SpareSerial string
    Serial number of the warm spare switch
    Enabled bool
    Enable or disable warm spare for a switch
    PrimarySerial string
    Serial number of the primary switch
    Serial string
    serial path parameter.
    SpareSerial string
    Serial number of the warm spare switch
    enabled Boolean
    Enable or disable warm spare for a switch
    primarySerial String
    Serial number of the primary switch
    serial String
    serial path parameter.
    spareSerial String
    Serial number of the warm spare switch
    enabled boolean
    Enable or disable warm spare for a switch
    primarySerial string
    Serial number of the primary switch
    serial string
    serial path parameter.
    spareSerial string
    Serial number of the warm spare switch
    enabled bool
    Enable or disable warm spare for a switch
    primary_serial str
    Serial number of the primary switch
    serial str
    serial path parameter.
    spare_serial str
    Serial number of the warm spare switch
    enabled Boolean
    Enable or disable warm spare for a switch
    primarySerial String
    Serial number of the primary switch
    serial String
    serial path parameter.
    spareSerial String
    Serial number of the warm spare switch

    Import

    $ pulumi import meraki:devices/switchWarmSpare:SwitchWarmSpare example "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.2.4 published on Friday, Jun 14, 2024 by Pulumi