meraki.networks.ApplianceWarmSpare
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.networks.ApplianceWarmSpare("example", {
enabled: true,
networkId: "string",
spareSerial: "Q234-ABCD-5678",
uplinkMode: "virtual",
virtualIp1: "1.2.3.4",
virtualIp2: "1.2.3.4",
});
export const merakiNetworksApplianceWarmSpareExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.networks.ApplianceWarmSpare("example",
enabled=True,
network_id="string",
spare_serial="Q234-ABCD-5678",
uplink_mode="virtual",
virtual_ip1="1.2.3.4",
virtual_ip2="1.2.3.4")
pulumi.export("merakiNetworksApplianceWarmSpareExample", 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.NewApplianceWarmSpare(ctx, "example", &networks.ApplianceWarmSpareArgs{
Enabled: pulumi.Bool(true),
NetworkId: pulumi.String("string"),
SpareSerial: pulumi.String("Q234-ABCD-5678"),
UplinkMode: pulumi.String("virtual"),
VirtualIp1: pulumi.String("1.2.3.4"),
VirtualIp2: pulumi.String("1.2.3.4"),
})
if err != nil {
return err
}
ctx.Export("merakiNetworksApplianceWarmSpareExample", 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.ApplianceWarmSpare("example", new()
{
Enabled = true,
NetworkId = "string",
SpareSerial = "Q234-ABCD-5678",
UplinkMode = "virtual",
VirtualIp1 = "1.2.3.4",
VirtualIp2 = "1.2.3.4",
});
return new Dictionary<string, object?>
{
["merakiNetworksApplianceWarmSpareExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.networks.ApplianceWarmSpare;
import com.pulumi.meraki.networks.ApplianceWarmSpareArgs;
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 ApplianceWarmSpare("example", ApplianceWarmSpareArgs.builder()
.enabled(true)
.networkId("string")
.spareSerial("Q234-ABCD-5678")
.uplinkMode("virtual")
.virtualIp1("1.2.3.4")
.virtualIp2("1.2.3.4")
.build());
ctx.export("merakiNetworksApplianceWarmSpareExample", example);
}
}
resources:
example:
type: meraki:networks:ApplianceWarmSpare
properties:
enabled: true
networkId: string
spareSerial: Q234-ABCD-5678
uplinkMode: virtual
virtualIp1: 1.2.3.4
virtualIp2: 1.2.3.4
outputs:
merakiNetworksApplianceWarmSpareExample: ${example}
Create ApplianceWarmSpare Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplianceWarmSpare(name: string, args: ApplianceWarmSpareArgs, opts?: CustomResourceOptions);
@overload
def ApplianceWarmSpare(resource_name: str,
args: ApplianceWarmSpareArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApplianceWarmSpare(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
enabled: Optional[bool] = None,
spare_serial: Optional[str] = None,
uplink_mode: Optional[str] = None,
virtual_ip1: Optional[str] = None,
virtual_ip2: Optional[str] = None)
func NewApplianceWarmSpare(ctx *Context, name string, args ApplianceWarmSpareArgs, opts ...ResourceOption) (*ApplianceWarmSpare, error)
public ApplianceWarmSpare(string name, ApplianceWarmSpareArgs args, CustomResourceOptions? opts = null)
public ApplianceWarmSpare(String name, ApplianceWarmSpareArgs args)
public ApplianceWarmSpare(String name, ApplianceWarmSpareArgs args, CustomResourceOptions options)
type: meraki:networks:ApplianceWarmSpare
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 ApplianceWarmSpareArgs
- 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 ApplianceWarmSpareArgs
- 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 ApplianceWarmSpareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplianceWarmSpareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplianceWarmSpareArgs
- 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 applianceWarmSpareResource = new Meraki.Networks.ApplianceWarmSpare("applianceWarmSpareResource", new()
{
NetworkId = "string",
Enabled = false,
SpareSerial = "string",
UplinkMode = "string",
VirtualIp1 = "string",
VirtualIp2 = "string",
});
example, err := networks.NewApplianceWarmSpare(ctx, "applianceWarmSpareResource", &networks.ApplianceWarmSpareArgs{
NetworkId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
SpareSerial: pulumi.String("string"),
UplinkMode: pulumi.String("string"),
VirtualIp1: pulumi.String("string"),
VirtualIp2: pulumi.String("string"),
})
var applianceWarmSpareResource = new ApplianceWarmSpare("applianceWarmSpareResource", ApplianceWarmSpareArgs.builder()
.networkId("string")
.enabled(false)
.spareSerial("string")
.uplinkMode("string")
.virtualIp1("string")
.virtualIp2("string")
.build());
appliance_warm_spare_resource = meraki.networks.ApplianceWarmSpare("applianceWarmSpareResource",
network_id="string",
enabled=False,
spare_serial="string",
uplink_mode="string",
virtual_ip1="string",
virtual_ip2="string")
const applianceWarmSpareResource = new meraki.networks.ApplianceWarmSpare("applianceWarmSpareResource", {
networkId: "string",
enabled: false,
spareSerial: "string",
uplinkMode: "string",
virtualIp1: "string",
virtualIp2: "string",
});
type: meraki:networks:ApplianceWarmSpare
properties:
enabled: false
networkId: string
spareSerial: string
uplinkMode: string
virtualIp1: string
virtualIp2: string
ApplianceWarmSpare 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 ApplianceWarmSpare resource accepts the following input properties:
- Network
Id string - networkId path parameter. Network ID
- Enabled bool
- Enable warm spare
- Spare
Serial string - Serial number of the warm spare appliance
- Uplink
Mode string - Uplink mode, either virtual or public
- Virtual
Ip1 string - The WAN 1 shared IP
- Virtual
Ip2 string - The WAN 2 shared IP
- Network
Id string - networkId path parameter. Network ID
- Enabled bool
- Enable warm spare
- Spare
Serial string - Serial number of the warm spare appliance
- Uplink
Mode string - Uplink mode, either virtual or public
- Virtual
Ip1 string - The WAN 1 shared IP
- Virtual
Ip2 string - The WAN 2 shared IP
- network
Id String - networkId path parameter. Network ID
- enabled Boolean
- Enable warm spare
- spare
Serial String - Serial number of the warm spare appliance
- uplink
Mode String - Uplink mode, either virtual or public
- virtual
Ip1 String - The WAN 1 shared IP
- virtual
Ip2 String - The WAN 2 shared IP
- network
Id string - networkId path parameter. Network ID
- enabled boolean
- Enable warm spare
- spare
Serial string - Serial number of the warm spare appliance
- uplink
Mode string - Uplink mode, either virtual or public
- virtual
Ip1 string - The WAN 1 shared IP
- virtual
Ip2 string - The WAN 2 shared IP
- network_
id str - networkId path parameter. Network ID
- enabled bool
- Enable warm spare
- spare_
serial str - Serial number of the warm spare appliance
- uplink_
mode str - Uplink mode, either virtual or public
- virtual_
ip1 str - The WAN 1 shared IP
- virtual_
ip2 str - The WAN 2 shared IP
- network
Id String - networkId path parameter. Network ID
- enabled Boolean
- Enable warm spare
- spare
Serial String - Serial number of the warm spare appliance
- uplink
Mode String - Uplink mode, either virtual or public
- virtual
Ip1 String - The WAN 1 shared IP
- virtual
Ip2 String - The WAN 2 shared IP
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplianceWarmSpare resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Serial string - Wan1
Appliance
Warm Spare Wan1 - Wan2
Appliance
Warm Spare Wan2
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Serial string - Wan1
Appliance
Warm Spare Wan1 - Wan2
Appliance
Warm Spare Wan2
- id String
- The provider-assigned unique ID for this managed resource.
- primary
Serial String - wan1
Appliance
Warm Spare Wan1 - wan2
Appliance
Warm Spare Wan2
- id string
- The provider-assigned unique ID for this managed resource.
- primary
Serial string - wan1
Appliance
Warm Spare Wan1 - wan2
Appliance
Warm Spare Wan2
- id str
- The provider-assigned unique ID for this managed resource.
- primary_
serial str - wan1
Appliance
Warm Spare Wan1 - wan2
Appliance
Warm Spare Wan2
- id String
- The provider-assigned unique ID for this managed resource.
- primary
Serial String - wan1 Property Map
- wan2 Property Map
Look up Existing ApplianceWarmSpare Resource
Get an existing ApplianceWarmSpare 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?: ApplianceWarmSpareState, opts?: CustomResourceOptions): ApplianceWarmSpare
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
network_id: Optional[str] = None,
primary_serial: Optional[str] = None,
spare_serial: Optional[str] = None,
uplink_mode: Optional[str] = None,
virtual_ip1: Optional[str] = None,
virtual_ip2: Optional[str] = None,
wan1: Optional[ApplianceWarmSpareWan1Args] = None,
wan2: Optional[ApplianceWarmSpareWan2Args] = None) -> ApplianceWarmSpare
func GetApplianceWarmSpare(ctx *Context, name string, id IDInput, state *ApplianceWarmSpareState, opts ...ResourceOption) (*ApplianceWarmSpare, error)
public static ApplianceWarmSpare Get(string name, Input<string> id, ApplianceWarmSpareState? state, CustomResourceOptions? opts = null)
public static ApplianceWarmSpare get(String name, Output<String> id, ApplianceWarmSpareState 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.
- Enabled bool
- Enable warm spare
- Network
Id string - networkId path parameter. Network ID
- Primary
Serial string - Spare
Serial string - Serial number of the warm spare appliance
- Uplink
Mode string - Uplink mode, either virtual or public
- Virtual
Ip1 string - The WAN 1 shared IP
- Virtual
Ip2 string - The WAN 2 shared IP
- Wan1
Appliance
Warm Spare Wan1 - Wan2
Appliance
Warm Spare Wan2
- Enabled bool
- Enable warm spare
- Network
Id string - networkId path parameter. Network ID
- Primary
Serial string - Spare
Serial string - Serial number of the warm spare appliance
- Uplink
Mode string - Uplink mode, either virtual or public
- Virtual
Ip1 string - The WAN 1 shared IP
- Virtual
Ip2 string - The WAN 2 shared IP
- Wan1
Appliance
Warm Spare Wan1Args - Wan2
Appliance
Warm Spare Wan2Args
- enabled Boolean
- Enable warm spare
- network
Id String - networkId path parameter. Network ID
- primary
Serial String - spare
Serial String - Serial number of the warm spare appliance
- uplink
Mode String - Uplink mode, either virtual or public
- virtual
Ip1 String - The WAN 1 shared IP
- virtual
Ip2 String - The WAN 2 shared IP
- wan1
Appliance
Warm Spare Wan1 - wan2
Appliance
Warm Spare Wan2
- enabled boolean
- Enable warm spare
- network
Id string - networkId path parameter. Network ID
- primary
Serial string - spare
Serial string - Serial number of the warm spare appliance
- uplink
Mode string - Uplink mode, either virtual or public
- virtual
Ip1 string - The WAN 1 shared IP
- virtual
Ip2 string - The WAN 2 shared IP
- wan1
Appliance
Warm Spare Wan1 - wan2
Appliance
Warm Spare Wan2
- enabled bool
- Enable warm spare
- network_
id str - networkId path parameter. Network ID
- primary_
serial str - spare_
serial str - Serial number of the warm spare appliance
- uplink_
mode str - Uplink mode, either virtual or public
- virtual_
ip1 str - The WAN 1 shared IP
- virtual_
ip2 str - The WAN 2 shared IP
- wan1
Appliance
Warm Spare Wan1Args - wan2
Appliance
Warm Spare Wan2Args
- enabled Boolean
- Enable warm spare
- network
Id String - networkId path parameter. Network ID
- primary
Serial String - spare
Serial String - Serial number of the warm spare appliance
- uplink
Mode String - Uplink mode, either virtual or public
- virtual
Ip1 String - The WAN 1 shared IP
- virtual
Ip2 String - The WAN 2 shared IP
- wan1 Property Map
- wan2 Property Map
Supporting Types
ApplianceWarmSpareWan1, ApplianceWarmSpareWan1Args
ApplianceWarmSpareWan2, ApplianceWarmSpareWan2Args
Import
$ pulumi import meraki:networks/applianceWarmSpare:ApplianceWarmSpare example "network_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.