meraki.devices.ManagementInterface
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.devices.ManagementInterface;
import com.pulumi.meraki.devices.ManagementInterfaceArgs;
import com.pulumi.meraki.devices.inputs.ManagementInterfaceWan1Args;
import com.pulumi.meraki.devices.inputs.ManagementInterfaceWan2Args;
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 ManagementInterface("example", ManagementInterfaceArgs.builder()
.serial("string")
.wan1(ManagementInterfaceWan1Args.builder()
.static_dns(
"1.2.3.2",
"1.2.3.3")
.static_gateway_ip("1.2.3.1")
.static_ip("1.2.3.4")
.static_subnet_mask("255.255.255.0")
.using_static_ip(true)
.vlan(7)
.wan_enabled("not configured")
.build())
.wan2(ManagementInterfaceWan2Args.builder()
.static_dns(
"1.2.3.2",
"1.2.3.3")
.static_gateway_ip("1.2.3.1")
.static_ip("1.2.3.4")
.static_subnet_mask("255.255.255.0")
.using_static_ip(false)
.vlan(2)
.wan_enabled("enabled")
.build())
.build());
ctx.export("merakiDevicesManagementInterfaceExample", example);
}
}
resources:
example:
type: meraki:devices:ManagementInterface
properties:
serial: string
wan1:
static_dns:
- 1.2.3.2
- 1.2.3.3
static_gateway_ip: 1.2.3.1
static_ip: 1.2.3.4
static_subnet_mask: 255.255.255.0
using_static_ip: true
vlan: 7
wan_enabled: not configured
wan2:
static_dns:
- 1.2.3.2
- 1.2.3.3
static_gateway_ip: 1.2.3.1
static_ip: 1.2.3.4
static_subnet_mask: 255.255.255.0
using_static_ip: false
vlan: 2
wan_enabled: enabled
outputs:
merakiDevicesManagementInterfaceExample: ${example}
Create ManagementInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementInterface(name: string, args: ManagementInterfaceArgs, opts?: CustomResourceOptions);
@overload
def ManagementInterface(resource_name: str,
args: ManagementInterfaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
serial: Optional[str] = None,
wan1: Optional[ManagementInterfaceWan1Args] = None,
wan2: Optional[ManagementInterfaceWan2Args] = None)
func NewManagementInterface(ctx *Context, name string, args ManagementInterfaceArgs, opts ...ResourceOption) (*ManagementInterface, error)
public ManagementInterface(string name, ManagementInterfaceArgs args, CustomResourceOptions? opts = null)
public ManagementInterface(String name, ManagementInterfaceArgs args)
public ManagementInterface(String name, ManagementInterfaceArgs args, CustomResourceOptions options)
type: meraki:devices:ManagementInterface
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 ManagementInterfaceArgs
- 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 ManagementInterfaceArgs
- 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 ManagementInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementInterfaceArgs
- 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 managementInterfaceResource = new Meraki.Devices.ManagementInterface("managementInterfaceResource", new()
{
Serial = "string",
Wan1 = new Meraki.Devices.Inputs.ManagementInterfaceWan1Args
{
StaticDns = new[]
{
"string",
},
StaticGatewayIp = "string",
StaticIp = "string",
StaticSubnetMask = "string",
UsingStaticIp = false,
Vlan = 0,
WanEnabled = "string",
},
Wan2 = new Meraki.Devices.Inputs.ManagementInterfaceWan2Args
{
StaticDns = new[]
{
"string",
},
StaticGatewayIp = "string",
StaticIp = "string",
StaticSubnetMask = "string",
UsingStaticIp = false,
Vlan = 0,
WanEnabled = "string",
},
});
example, err := devices.NewManagementInterface(ctx, "managementInterfaceResource", &devices.ManagementInterfaceArgs{
Serial: pulumi.String("string"),
Wan1: &devices.ManagementInterfaceWan1Args{
StaticDns: pulumi.StringArray{
pulumi.String("string"),
},
StaticGatewayIp: pulumi.String("string"),
StaticIp: pulumi.String("string"),
StaticSubnetMask: pulumi.String("string"),
UsingStaticIp: pulumi.Bool(false),
Vlan: pulumi.Int(0),
WanEnabled: pulumi.String("string"),
},
Wan2: &devices.ManagementInterfaceWan2Args{
StaticDns: pulumi.StringArray{
pulumi.String("string"),
},
StaticGatewayIp: pulumi.String("string"),
StaticIp: pulumi.String("string"),
StaticSubnetMask: pulumi.String("string"),
UsingStaticIp: pulumi.Bool(false),
Vlan: pulumi.Int(0),
WanEnabled: pulumi.String("string"),
},
})
var managementInterfaceResource = new ManagementInterface("managementInterfaceResource", ManagementInterfaceArgs.builder()
.serial("string")
.wan1(ManagementInterfaceWan1Args.builder()
.staticDns("string")
.staticGatewayIp("string")
.staticIp("string")
.staticSubnetMask("string")
.usingStaticIp(false)
.vlan(0)
.wanEnabled("string")
.build())
.wan2(ManagementInterfaceWan2Args.builder()
.staticDns("string")
.staticGatewayIp("string")
.staticIp("string")
.staticSubnetMask("string")
.usingStaticIp(false)
.vlan(0)
.wanEnabled("string")
.build())
.build());
management_interface_resource = meraki.devices.ManagementInterface("managementInterfaceResource",
serial="string",
wan1={
"static_dns": ["string"],
"static_gateway_ip": "string",
"static_ip": "string",
"static_subnet_mask": "string",
"using_static_ip": False,
"vlan": 0,
"wan_enabled": "string",
},
wan2={
"static_dns": ["string"],
"static_gateway_ip": "string",
"static_ip": "string",
"static_subnet_mask": "string",
"using_static_ip": False,
"vlan": 0,
"wan_enabled": "string",
})
const managementInterfaceResource = new meraki.devices.ManagementInterface("managementInterfaceResource", {
serial: "string",
wan1: {
staticDns: ["string"],
staticGatewayIp: "string",
staticIp: "string",
staticSubnetMask: "string",
usingStaticIp: false,
vlan: 0,
wanEnabled: "string",
},
wan2: {
staticDns: ["string"],
staticGatewayIp: "string",
staticIp: "string",
staticSubnetMask: "string",
usingStaticIp: false,
vlan: 0,
wanEnabled: "string",
},
});
type: meraki:devices:ManagementInterface
properties:
serial: string
wan1:
staticDns:
- string
staticGatewayIp: string
staticIp: string
staticSubnetMask: string
usingStaticIp: false
vlan: 0
wanEnabled: string
wan2:
staticDns:
- string
staticGatewayIp: string
staticIp: string
staticSubnetMask: string
usingStaticIp: false
vlan: 0
wanEnabled: string
ManagementInterface 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 ManagementInterface resource accepts the following input properties:
- Serial string
- serial path parameter.
- Wan1
Management
Interface Wan1 - WAN 1 settings
- Wan2
Management
Interface Wan2 - WAN 2 settings (only for MX devices)
- Serial string
- serial path parameter.
- Wan1
Management
Interface Wan1Args - WAN 1 settings
- Wan2
Management
Interface Wan2Args - WAN 2 settings (only for MX devices)
- serial String
- serial path parameter.
- wan1
Management
Interface Wan1 - WAN 1 settings
- wan2
Management
Interface Wan2 - WAN 2 settings (only for MX devices)
- serial string
- serial path parameter.
- wan1
Management
Interface Wan1 - WAN 1 settings
- wan2
Management
Interface Wan2 - WAN 2 settings (only for MX devices)
- serial str
- serial path parameter.
- wan1
Management
Interface Wan1Args - WAN 1 settings
- wan2
Management
Interface Wan2Args - WAN 2 settings (only for MX devices)
- serial String
- serial path parameter.
- wan1 Property Map
- WAN 1 settings
- wan2 Property Map
- WAN 2 settings (only for MX devices)
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementInterface resource produces the following output properties:
- Ddns
Hostnames ManagementInterface Ddns Hostnames - Dynamic DNS hostnames.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ddns
Hostnames ManagementInterface Ddns Hostnames - Dynamic DNS hostnames.
- Id string
- The provider-assigned unique ID for this managed resource.
- ddns
Hostnames ManagementInterface Ddns Hostnames - Dynamic DNS hostnames.
- id String
- The provider-assigned unique ID for this managed resource.
- ddns
Hostnames ManagementInterface Ddns Hostnames - Dynamic DNS hostnames.
- id string
- The provider-assigned unique ID for this managed resource.
- ddns_
hostnames ManagementInterface Ddns Hostnames - Dynamic DNS hostnames.
- id str
- The provider-assigned unique ID for this managed resource.
- ddns
Hostnames Property Map - Dynamic DNS hostnames.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ManagementInterface Resource
Get an existing ManagementInterface 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?: ManagementInterfaceState, opts?: CustomResourceOptions): ManagementInterface
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ddns_hostnames: Optional[ManagementInterfaceDdnsHostnamesArgs] = None,
serial: Optional[str] = None,
wan1: Optional[ManagementInterfaceWan1Args] = None,
wan2: Optional[ManagementInterfaceWan2Args] = None) -> ManagementInterface
func GetManagementInterface(ctx *Context, name string, id IDInput, state *ManagementInterfaceState, opts ...ResourceOption) (*ManagementInterface, error)
public static ManagementInterface Get(string name, Input<string> id, ManagementInterfaceState? state, CustomResourceOptions? opts = null)
public static ManagementInterface get(String name, Output<String> id, ManagementInterfaceState 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.
- Ddns
Hostnames ManagementInterface Ddns Hostnames - Dynamic DNS hostnames.
- Serial string
- serial path parameter.
- Wan1
Management
Interface Wan1 - WAN 1 settings
- Wan2
Management
Interface Wan2 - WAN 2 settings (only for MX devices)
- Ddns
Hostnames ManagementInterface Ddns Hostnames Args - Dynamic DNS hostnames.
- Serial string
- serial path parameter.
- Wan1
Management
Interface Wan1Args - WAN 1 settings
- Wan2
Management
Interface Wan2Args - WAN 2 settings (only for MX devices)
- ddns
Hostnames ManagementInterface Ddns Hostnames - Dynamic DNS hostnames.
- serial String
- serial path parameter.
- wan1
Management
Interface Wan1 - WAN 1 settings
- wan2
Management
Interface Wan2 - WAN 2 settings (only for MX devices)
- ddns
Hostnames ManagementInterface Ddns Hostnames - Dynamic DNS hostnames.
- serial string
- serial path parameter.
- wan1
Management
Interface Wan1 - WAN 1 settings
- wan2
Management
Interface Wan2 - WAN 2 settings (only for MX devices)
- ddns_
hostnames ManagementInterface Ddns Hostnames Args - Dynamic DNS hostnames.
- serial str
- serial path parameter.
- wan1
Management
Interface Wan1Args - WAN 1 settings
- wan2
Management
Interface Wan2Args - WAN 2 settings (only for MX devices)
- ddns
Hostnames Property Map - Dynamic DNS hostnames.
- serial String
- serial path parameter.
- wan1 Property Map
- WAN 1 settings
- wan2 Property Map
- WAN 2 settings (only for MX devices)
Supporting Types
ManagementInterfaceDdnsHostnames, ManagementInterfaceDdnsHostnamesArgs
- Active
Ddns stringHostname - Active dynamic DNS hostname.
- Ddns
Hostname stringWan1 - WAN 1 dynamic DNS hostname.
- Ddns
Hostname stringWan2 - WAN 2 dynamic DNS hostname.
- Active
Ddns stringHostname - Active dynamic DNS hostname.
- Ddns
Hostname stringWan1 - WAN 1 dynamic DNS hostname.
- Ddns
Hostname stringWan2 - WAN 2 dynamic DNS hostname.
- active
Ddns StringHostname - Active dynamic DNS hostname.
- ddns
Hostname StringWan1 - WAN 1 dynamic DNS hostname.
- ddns
Hostname StringWan2 - WAN 2 dynamic DNS hostname.
- active
Ddns stringHostname - Active dynamic DNS hostname.
- ddns
Hostname stringWan1 - WAN 1 dynamic DNS hostname.
- ddns
Hostname stringWan2 - WAN 2 dynamic DNS hostname.
- active_
ddns_ strhostname - Active dynamic DNS hostname.
- ddns_
hostname_ strwan1 - WAN 1 dynamic DNS hostname.
- ddns_
hostname_ strwan2 - WAN 2 dynamic DNS hostname.
- active
Ddns StringHostname - Active dynamic DNS hostname.
- ddns
Hostname StringWan1 - WAN 1 dynamic DNS hostname.
- ddns
Hostname StringWan2 - WAN 2 dynamic DNS hostname.
ManagementInterfaceWan1, ManagementInterfaceWan1Args
- Static
Dns List<string> - Up to two DNS IPs.
- Static
Gateway stringIp - The IP of the gateway on the WAN.
- Static
Ip string - The IP the device should use on the WAN.
- Static
Subnet stringMask - The subnet mask for the WAN.
- Using
Static boolIp - Configure the interface to have static IP settings or use DHCP.
- Vlan int
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- Wan
Enabled string - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- Static
Dns []string - Up to two DNS IPs.
- Static
Gateway stringIp - The IP of the gateway on the WAN.
- Static
Ip string - The IP the device should use on the WAN.
- Static
Subnet stringMask - The subnet mask for the WAN.
- Using
Static boolIp - Configure the interface to have static IP settings or use DHCP.
- Vlan int
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- Wan
Enabled string - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- static
Dns List<String> - Up to two DNS IPs.
- static
Gateway StringIp - The IP of the gateway on the WAN.
- static
Ip String - The IP the device should use on the WAN.
- static
Subnet StringMask - The subnet mask for the WAN.
- using
Static BooleanIp - Configure the interface to have static IP settings or use DHCP.
- vlan Integer
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- wan
Enabled String - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- static
Dns string[] - Up to two DNS IPs.
- static
Gateway stringIp - The IP of the gateway on the WAN.
- static
Ip string - The IP the device should use on the WAN.
- static
Subnet stringMask - The subnet mask for the WAN.
- using
Static booleanIp - Configure the interface to have static IP settings or use DHCP.
- vlan number
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- wan
Enabled string - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- static_
dns Sequence[str] - Up to two DNS IPs.
- static_
gateway_ strip - The IP of the gateway on the WAN.
- static_
ip str - The IP the device should use on the WAN.
- static_
subnet_ strmask - The subnet mask for the WAN.
- using_
static_ boolip - Configure the interface to have static IP settings or use DHCP.
- vlan int
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- wan_
enabled str - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- static
Dns List<String> - Up to two DNS IPs.
- static
Gateway StringIp - The IP of the gateway on the WAN.
- static
Ip String - The IP the device should use on the WAN.
- static
Subnet StringMask - The subnet mask for the WAN.
- using
Static BooleanIp - Configure the interface to have static IP settings or use DHCP.
- vlan Number
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- wan
Enabled String - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
ManagementInterfaceWan2, ManagementInterfaceWan2Args
- Static
Dns List<string> - Up to two DNS IPs.
- Static
Gateway stringIp - The IP of the gateway on the WAN.
- Static
Ip string - The IP the device should use on the WAN.
- Static
Subnet stringMask - The subnet mask for the WAN.
- Using
Static boolIp - Configure the interface to have static IP settings or use DHCP.
- Vlan int
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- Wan
Enabled string - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- Static
Dns []string - Up to two DNS IPs.
- Static
Gateway stringIp - The IP of the gateway on the WAN.
- Static
Ip string - The IP the device should use on the WAN.
- Static
Subnet stringMask - The subnet mask for the WAN.
- Using
Static boolIp - Configure the interface to have static IP settings or use DHCP.
- Vlan int
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- Wan
Enabled string - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- static
Dns List<String> - Up to two DNS IPs.
- static
Gateway StringIp - The IP of the gateway on the WAN.
- static
Ip String - The IP the device should use on the WAN.
- static
Subnet StringMask - The subnet mask for the WAN.
- using
Static BooleanIp - Configure the interface to have static IP settings or use DHCP.
- vlan Integer
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- wan
Enabled String - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- static
Dns string[] - Up to two DNS IPs.
- static
Gateway stringIp - The IP of the gateway on the WAN.
- static
Ip string - The IP the device should use on the WAN.
- static
Subnet stringMask - The subnet mask for the WAN.
- using
Static booleanIp - Configure the interface to have static IP settings or use DHCP.
- vlan number
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- wan
Enabled string - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- static_
dns Sequence[str] - Up to two DNS IPs.
- static_
gateway_ strip - The IP of the gateway on the WAN.
- static_
ip str - The IP the device should use on the WAN.
- static_
subnet_ strmask - The subnet mask for the WAN.
- using_
static_ boolip - Configure the interface to have static IP settings or use DHCP.
- vlan int
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- wan_
enabled str - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
- static
Dns List<String> - Up to two DNS IPs.
- static
Gateway StringIp - The IP of the gateway on the WAN.
- static
Ip String - The IP the device should use on the WAN.
- static
Subnet StringMask - The subnet mask for the WAN.
- using
Static BooleanIp - Configure the interface to have static IP settings or use DHCP.
- vlan Number
- The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.
- wan
Enabled String - Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'.
Import
$ pulumi import meraki:devices/managementInterface:ManagementInterface 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.